Modding TuT - Creating a new recipe!

Thanks to this forums post for the TuT

1. Open up CraftingManager.java 2. You should immediately see the constructor for the class and within it recipes being added using the addRecipe function. 3. Scroll to the bottom of this list of recipes and add in a new one: addRecipe(new ItemStack(Block.example, 1), new Object[] {"##", "##", Character.valueOf('#'), Block.dirt}); This will add a recipe in which when you craft four dirt is a square share will give you your new block. new ItemStack(Block.example, 1) - this specifies what item is going to be generated and the quantity. new Object[] {"##", "##", Character.valueOf('#'), Block.dirt} - this specifies how it is created.

This should allow you to now craft a very basic new block using four dirt like so: