Minecraft show crafting recipes mod 1.7.10

broken image

Public static final String VERSION = static TutorialMod void preInit(FMLPreInitializationEvent void init(FMLInitializationEvent event) void postInit(FMLPostInitializationEvent event) Public static final String MODID = 'tutorial' Public static final String NAME = 'Tutorial Mod' Package = TutorialMod.MODID, name = TutorialMod.NAME, version = TutorialMod.VERSION) Your main mod class should look like this: Your ModRecipes code should look like this:įor the last step, you will again need to call the init() method from your main class. GameRegistry.addRecipe(new ItemStack(Items.iron_pickaxe), 'XXX', ' Y ', ' Y ', 'X', Items.iron_ingot, 'Y', Items.stick) For example, an iron pickaxe recipe will be as follows: The following parameters tell what X is, in this case a red diamond. The three “XXX” represent the crafting slots, from top to bottom. ItemStacks are simply said a group of items in Minecraft. The first parameter is a new ItemStack of the item you want outputted.

broken image

GameRegistry.addRecipe(new ItemStack(ModBlocks.red_diamond_block), 'XXX', 'XXX', 'XXX', 'X', ModItems.red_diamond) It will need nine diamonds placed in all nine slots of the crafting table. Now, I will add a recipe to make a red diamond block.

broken image

First, again to be organized, create a new class in the init package, let’s call it ModRecipes. In this tutorial I will show how you can add a shaped recipe into your mod.

broken image