Minecraft™ Mod Development in 24 Hours, Sams Teach Yourself

Book description

In Full Color!
In just 24 sessions of one hour or less, Sams Teach Yourself Minecraft® Mod Development in 24 Hours will help you transform Minecraft® into anything you can imagine--and share your vision with millions of players worldwide! You’ll learn all the mod development skills you need as you walk through a complete step-by-step project, complete with a mob, new tools, new armor, food, ores, and much more. Every lesson builds on what you’ve already learned, giving you a rock-solid foundation for building any mod and creating any world!

Step-by-step instructions carefully walk you through the most common Minecraft® mod development tasks.
Quizzes and exercises at the end of each chapter help you test your knowledge.
Notes present interesting information related to the discussion.
Tips offer advice or show you easier ways to perform tasks.
Cautions alert you to possible problems and give you advice on how to avoid them.

Learn how to...

  • Set up the environment where you’ll write your mod

  • Create the basics for your mod with the Forge API

  • Establish a framework that makes it easier to build complex mods

  • Work with recipes and other small modifications

  • Create multiple recipes, items, blocks, and entities at once

  • Cook up food items that heal your players

  • Make custom pickaxes, shovels, and completely original tools

  • Use Tile Entities to create complex and unique mods

  • Create interesting custom armor for players

  • Generate entire worlds, including ores and plants

  • Design and generate new structures with MCEdit

  • Understand Entities and create Entity Models with Techne

  • Code mobs with a custom Entity Model

  • Manufacture Throwables

  • Edit Minecraft® functionality without breaking other mods

  • Structure, package, and release your mod

  • Master Java programming techniques you can use far beyond Minecraft®

  • This book was not created by and is not endorsed by Notch Development AB Corporation/Mojang Synergies AB Corporation.

    Table of contents

    1. About This eBook
    2. Title Page
    3. Copyright Page
    4. Contents at a Glance
    5. Table of Contents
    6. About the Author
    7. Dedication
    8. Acknowledgments
    9. We Want to Hear from You!
    10. Reader Services
    11. Introduction
      1. Who Should Read This Book
      2. How This Book Is Organized
      3. Conventions Used
      4. Downloading the Code and Resources
    12. Part I: Introduction
      1. Hour 1. Setting Up the Minecraft Development Environment
        1. Understanding How Minecraft Is Written and What You Will Do with It
        2. Learning About Forge
        3. Setting Up the JDK
        4. Setting Up Eclipse
        5. Setting Up Forge
        6. Summary
        7. Q&A
        8. Workshop
        9. Exercises
      2. Hour 2. Creating the Basics for Forge
        1. Understanding the Java in the ExampleMod
        2. Creating Your Own Package
        3. Creating Your Own Class File
        4. Creating the Mod File
        5. Summary
        6. Q&A
        7. Workshop
        8. Exercises
      3. Hour 3. Working with Recipes and Other Small Modifications
        1. Learning About Recipes in Minecraft
        2. Crafting a Recipe
        3. Creating a Shapeless Recipe
        4. Creating a Smelting Recipe
        5. Using Special ItemStacks
        6. Changing the Mob Spawn in a Dungeon
        7. Changing Chest Items
        8. Examining the Results in the Mod File
        9. Summary
        10. Q&A
        11. Workshop
        12. Exercises
    13. Part II: Items
      1. Hour 4. Making Your First Item
        1. Understanding What an Item Is
        2. Creating a Basic Item
        3. Summary
        4. Q&A
        5. Workshop
        6. Exercises
      2. Hour 5. Creating Multiple Items in a Smart Way
        1. Adding Multiple Items Using the Same File
        2. Adding Metadata to Items
        3. Summary
        4. Q&A
        5. Workshop
        6. Exercises
      3. Hour 6. Cooking Up a Food Item
        1. Understanding Food in Minecraft
        2. Creating a Food Item
        3. Adding a Potion Effect
        4. Summary
        5. Q&A
        6. Workshop
        7. Exercises
      4. Hour 7. Making Your Own Tools
        1. Creating a ToolMaterial
        2. Creating a Pickaxe
        3. Creating Special Tools for Harvesting Different Blocks
        4. Summary
        5. Q&A
        6. Workshop
        7. Exercises
      5. Hour 8. Creating Armor
        1. Creating Your ArmorMaterial
        2. Creating the Armor
        3. Customizing Armor
        4. Summary
        5. Q&A
        6. Workshop
        7. Exercises
    14. Part III: Blocks
      1. Hour 9. Making Your First Block
        1. Understanding What a Block Is
        2. Creating a Basic Block
        3. Adding a Block Texture
        4. Summary
        5. Q&A
        6. Workshop
        7. Exercises
      2. Hour 10. Creating Multiple Blocks in a Smart Way
        1. Adding Metadata to Blocks
        2. Adding Block Textures
        3. Summary
        4. Q&A
        5. Workshop
        6. Exercises
      3. Hour 11. Making Your Blocks Unique
        1. Adding Sided Textures
        2. Making Half Blocks
        3. Creating a Plant
        4. Summary
        5. Q&A
        6. Workshop
        7. Exercises
      4. Hour 12. Creating a Tile Entity
        1. Understanding What a Tile Entity Is
        2. Creating a Tile Entity Block
        3. Creating a Tile Entity
        4. Server Synchronization
        5. Summary
        6. Q&A
        7. Workshop
        8. Exercises
    15. Part IV: World Generation
      1. Hour 13. Generating Ores
        1. Using Forge and an EventHandler
        2. Creating a SamEventHandler
        3. Using OreDictionary
        4. Summary
        5. Q&A
        6. Workshop
        7. Exercises
      2. Hour 14. Generating Plants
        1. Creating a Custom WorldGen Class
        2. Adding Code to SamEventHandler
        3. Summary
        4. Q&A
        5. Workshop
        6. Exercises
      3. Hour 15. Using MCEdit
        1. Why Use MCEdit
        2. Getting MCEdit
        3. Using MCEdit
        4. Summary
        5. Q&A
        6. Workshop
        7. Exercises
      4. Hour 16. Generating Your Structure
        1. Installing the Schematic Converter
        2. Using the Schematic Converter
        3. Adding Mobs to Your Structure
        4. Summary
        5. Q&A
        6. Workshop
        7. Exercises
    16. Part V: Entities
      1. Hour 17. Learning About Entities
        1. Understanding What an Entity Is
        2. Creating Proxies
        3. Creating a Basic Entity
        4. Summary
        5. Q&A
        6. Workshop
        7. Exercises
      2. Hour 18. Creating an Entity Model Using Techne
        1. What Are Models?
        2. Downloading and Installing Techne
        3. Using Techne
        4. Summary
        5. Q&A
        6. Workshop
        7. Exercises
      3. Hour 19. Coding a Mob
        1. Rendering the Mob
        2. Making the Mob Spawn
        3. Making EntitySamMob a Mob
        4. Summary
        5. Q&A
        6. Workshop
        7. Exercises
      4. Hour 20. Creating a Throwable
        1. Registering a Throwable Entity
        2. Creating the Entity Class
        3. Using the Entity
        4. Rendering the Entity
        5. Summary
        6. Q&A
        7. Workshop
        8. Exercises
    17. Part VI: Final Pointers
      1. Hour 21. Editing Vanilla Minecraft
        1. How to Change Minecraft Indirectly
        2. Other Events
        3. Giving Your Armor Egg-Throwing Abilities
        4. Summary
        5. Q&A
        6. Workshop
        7. Exercises
      2. Hour 22. Structuring Your Mod
        1. Why It Is Important to Structure Your Mod
        2. How to Structure Your Mod
        3. Summary
        4. Q&A
        5. Workshop
        6. Exercises
      3. Hour 23. Releasing Your Mod
        1. Exporting Your Mod with Forge
        2. Making Your Mod Public
        3. Summary
        4. Q&A
        5. Workshop
        6. Exercises
      4. Hour 24. What’s Next
        1. Using IRC
        2. Using Open Source Mods
        3. Learning Java
        4. Summary
        5. Q&A
        6. Workshop
        7. Exercises
    18. Appendix A. Additional Code Fragments
      1. Configs
      2. Rotating Blocks
      3. Custom Block Rendering
      4. Custom Tree Generation
      5. Automatic Update Checking
      6. Custom Creative Tabs
      7. Custom TNT
      8. Changing Mob Behavior
      9. Clothes
      10. Armor Effects
      11. Creating a Custom Dimension
      12. Custom Biomes
      13. Custom AI
      14. Spawning Particles
      15. Playing Sounds
      16. Using a Model for an Item
    19. Index

    Product information

    • Title: Minecraft™ Mod Development in 24 Hours, Sams Teach Yourself
    • Author(s): Jimmy Koene
    • Release date: September 2014
    • Publisher(s): Sams
    • ISBN: 9780133900552