Posted November 5, 201410 yr i have a block in my mod that i want to use the ore dict shaped recipe to turn it into 9 of the ingot it is made out of. the code i am using to craft them is GameRegistry.addRecipe(new ShapedOreRecipe(MyItems.tIngot, true, new Object[]{"F",'F', "blockTitanium"})); i want 9 of those ingots to be given, but when i do GameRegistry.addRecipe(new ShapedOreRecipe(MyItems.tIngot,9, true, new Object[]{"F",'F', "blockTitanium"})); The mod crashes due to that int i inserted. can someone please help me figure this out?
November 5, 201410 yr GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(yItems.tIngot, 9), true, new Object[]{"F",'F', "blockTitanium"})); Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
November 6, 201410 yr Author ok i'll try it now, although i can't believe i didn't think of it, as it seems obvious, thanks man, you helped me out of a tight spot!
November 6, 201410 yr Why does everyone use the stupid new Object[]? It's a varargs method for a reason. I don't know. I gave up a long time ago trying to correct it. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
November 8, 201410 yr Author Why does everyone use the stupid new Object[]? It's a varargs method for a reason. I don't know. I gave up a long time ago trying to correct it. i am new to coding and i didn't know about that, i have done it now to all my recipes, thank you you shortened the size of all of my recipes EDIT: i am not new to coding, but i am new to modding minecraft, which is what i meant.
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.