Posted October 8, 201212 yr Hello. I have problems with my crafting recipes. They are too much. I got an idea how to solve the problem but then comes to much errors. Here is my idea Code: public String getItemDamage() { String var1 = var4; if(var2>var3) { var4 = var2; return; } if(var3>var2) { var4 = var3; return; } Modloader.addRecipe(new ItemStack(mod_Blabla.customTool, 1, var1), new Object[]{"Y", "X", Character.valueOf('Y') new ItemStack(customPick, 1, var2), Character.valueOf('X'), new ItemStack(customStick, 1, var2)});
October 9, 201212 yr can you please explain what each of the vars are, I might be able to help then... because as of now the variables are all set to null... Please put in more code The Korecraft Mod
October 12, 201212 yr Author sry that is not possibel.. i want to make it like industrialcraft lappacks when you have energie in the batpack... public class mod_blabla extends BaseMod { public static Item customStick = new ItemCustomStick(6000).setItemName("customStick"); public static Item customPickaxeHead = new ItemCustomPickaxeHead(6002).setItemName("customPickaxeHead"); public static Item metadataPickaxe = new ItemMetadataPickaxe(6003).setItemName("metadataPickaxe"); //problem Zone public void load() { ModLoader.addRecipe(new ItemStack(mod_DynamicTools.metadatapickaxe, 1, 0), new Object[]{"Y", "X", Character.valueOf('X), new ItemStack(customStick, 1, 0), Character.valueOf('Y), new ItemStack(customPickaxeHead, 1, 0)}); } } what i want is like industrialcraft bat to lap crafting recipe or vannila tool repair recipe. i dont have the variabel. The crafting recipe read the metadata and which is higher will be the metadata of the tool that was my idea but i have no idea how to do it... I read much source codes to find it out... nothing...
October 13, 201212 yr Author Forgot it i change my idea (Speigers DynamicTools mod) But all work. And Lex I made a metadata Tool And it works.... Thanks for reading. Speiger
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.