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?
Create an account or sign in to comment.
1
info Note: You're viewing a single reply. View all replies
1
Unzip the mod and and find the main mod class with the @Mod annotation.
There should be a method like this:
In this method, add a line that looks something like this:
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.
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.