1

Need help with recipes

evldmon's Avatar evldmon11/26/14 10:03 am
1 emeralds 225 1
2/27/2015 12:40 pm
Taker314's Avatar Taker314
ok so im making a mod pack and there's an item in one of the mods i use that does not have a crafting recipe... how do i go about giving it one and distributing the modpack with that custom recipe?
Posted by evldmon's Avatar
evldmon
Level 14 : Journeyman Engineer
3

Create an account or sign in to comment.

1

info Note: You're viewing a single reply. View all replies
1
02/27/2015 12:40 pm
Level 1 : New Crafter
Taker314
Taker314's Avatar
Unzip the mod and and find the main mod class with the @Mod annotation.
There should be a method like this:
@EventHandler
public void preInit (FMLPreInitializationEvent e)
{
}

In this method, add a line that looks something like this:
GameRegistry.addShapedRecipe(new ItemStack(Items.diamond_pickaxe, 1), "XXX", " I ", " I ", 'X', Items.diamond, 'I', Items.stick);
You have to change the parameters so that it does what you want.
If you don't know what I mean, give me the recipe and I tell you exactly what to type.
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome