Home > Store

Sams Teach Yourself Mod Development for Minecraft in 24 Hours, 2nd Edition

Register your product to gain access to bonus material or receive a coupon.

Sams Teach Yourself Mod Development for Minecraft in 24 Hours, 2nd Edition

Book

  • Sorry, this book is no longer in print.
Not for Sale

About

Features

• An easy, clear, step-by-step introduction to Minecraft mod development - in full color!
• Completely up-to-date and practical -- unlike most of the tutorials students will find online!
• Students build their skills one step at a time, from the absolute basics to complex Minecraft mods
• Up-to-date code examples, supported by frequent online updates to reflect newer versions of Minecraft
• Teaches through practical instructions, realistic examples, Q-and-As, quizzes, exercises, tips, and more
• By Jimmy Koene, one of the world's top Minecraft modders and mod tutorial writers!

Description

  • Copyright 2016
  • Pages: 448
  • Edition: 2nd
  • Book
  • ISBN-10: 0-672-33763-0
  • ISBN-13: 978-0-672-33763-5

In just 24 sessions of one hour or less, Sams Teach Yourself Mod Development for Minecraft 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.

Minecraft is a registered trademark of Mojang Synergies / Notch Development AB. This book is not affiliated with or sponsored by Mojang Synergies / Notch Development AB.

Learn how to...

  • Set up the environment where you’ll write your mod for Minecraft 1.8
  • 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

On the Web:


Register your book at informit.com/title/9780672337635 for access to all code examples and resources from this book, as well as updates and corrections as they become available.

Downloads

Downloads

Code Files (701 KB .zip)

Schematic Converter (285 KB .zip)

Sample Content

Sample Pages

Download the sample pages (includes Hour 3 and Index)

Table of Contents

Introduction 1

Part I: Introduction

HOUR 1: Setting Up the Minecraft Development Environment 7

    Understanding How Minecraft Is Written and What You Will Do with It . . . . 7

    Learning About Forge . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

    Setting Up the JDK . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9

    Setting Up Eclipse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14

    Setting Up Forge . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14

    Troubleshooter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18

    Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21

    Q&A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21

    Workshop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22

    Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22

HOUR 2: Creating the Basics for Forge 23

    Understanding the Java in the ExampleMod . . . . . . . . . . . . . . . . . . . . . . . 23

    Creating Your Own Package . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29

    Creating Your Own Class File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32

    Creating the Mod File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35

    Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36

    Q&A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36

    Workshop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37

    Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37

HOUR 3: Working with Recipes and Other Small Modifications 39

    Learning About Recipes in Minecraft . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39

    Crafting a Recipe . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40

    Creating a Shapeless Recipe . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44

    Creating a Smelting Recipe . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44

    Using Special ItemStacks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45

    Changing the Mob Spawn in a Dungeon . . . . . . . . . . . . . . . . . . . . . . . . . . 47

    Ch

Updates

Errata

This edition of Sams Teach Yourself Mod Development for Minecraft in 24 Hours supports version 1.8 only. However, there are several ways in which you can figure out how to implement subjects covered in this book for other versions of Minecraft. Chapter 24 covers installing IRC and connecting to #minecraftforge. This channel contains a lot of people who work on mods every day and should be able to help you. There is also http://www.minecraftforge.net/forum/, which is a forum in which you can ask for help. Finally, Eclipse has very powerful search options which can help you find the relevant code in the project. Ctrl + F will open up the search menu in which you can type anything you're looking for, such as Dungeon, and it will show you all of the files which are related to the Dungeon.

Submit Errata

More Information

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.