hihellobyeoh Posted November 5, 2014 Share Posted November 5, 2014 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? Quote Link to comment Share on other sites More sharing options...
Draco18s Posted November 5, 2014 Share Posted November 5, 2014 GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(yItems.tIngot, 9), true, new Object[]{"F",'F', "blockTitanium"})); Quote 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. Link to comment Share on other sites More sharing options...
hihellobyeoh Posted November 6, 2014 Author Share Posted November 6, 2014 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! Quote Link to comment Share on other sites More sharing options...
Draco18s Posted November 6, 2014 Share Posted November 6, 2014 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. Quote 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. Link to comment Share on other sites More sharing options...
hihellobyeoh Posted November 8, 2014 Author Share Posted November 8, 2014 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.