Errata

Minecraft Modding with Forge

Errata for Minecraft Modding with Forge

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.

Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted by Date submitted
Printed Page A lot of places
Image

A lot of the pictures of Eclipse have "Minecraft" as the name of the big project folder, but it should be "MDKExample" because a new version of the forge zip file came out. The images will need to be retaken with the new version.

AdityaGupta1  Feb 22, 2016 
Other Digital Version multiple
Examples 3-1, 3-2, 3-4, & 3-5

In 1.9.4, some variables have become private,and to access the same info you must use accessor functions. Specifically, "event.minecart" must be replaced by "event.getMinecart()", and "event.source" must be replaced by "event.getSource()".

Ron Steedman  Jun 30, 2016 
Printed Page 4
first paragraph -- text should note that all versions after 1.8.? keep the "src" kit in a file ending in "mdk.zip"

Most versions of MinecraftForge after 1.8 have no "src" kit. This kit has been replaced by the "mdk.zip" file.

Anonymous  Jan 01, 2017 
Other Digital Version 30
Example 2-5, Example 2-6

In Forge 1.9.4, the code for text has changed significantly. The existing code fails to compile, and references now non-existent libraries. Here is the change: FROM event.getPlayer().addChatMessage(new ChatComponentText(EnumChatFormatting.GOLD + "You broke a block!")); TO TextComponentString str = new TextComponentString("You broke a block!"); str.getStyle().setColor(TextFormatting.GOLD); event.getPlayer().addChatMessage(str);

Ron Steedman  Jun 30, 2016 
PDF Page 81
bottom, just before last paragraph

After clicking in two physical places with wooden axe, I issue /fillblocks 46 command and receive "You do not have permission to use this command". This happens in Single World creative mode with cheats on (whether opened to LAN or not). I've searched the book and can't find what I'm missing.

Note from the Author or Editor:
The command should work in creative mode, regardless of whether cheats are on or off. I just verified it, and in creative mode I could use it, but in all other modes it didn't work. Also, in my experience, it is impossible to get a "You do not have permission to use this command" message, because if you aren't in creative mode you won't be able to select the blocks in the first place. My only advice would be to check that you are in creative mode, because it should work there.

Anonymous  Aug 24, 2015