Lumberstock Posted November 22, 2014 Share Posted November 22, 2014 This is what the crafting recipe is supposed to be: The thing in the bottom-middle is a donut. I know, I know. Right, I have a problem with that. @EventHandler public void Init(FMLInitializationEvent event){ GameRegistry.addShapelessRecipe(new ItemStack(foodNiceDonut), new Object[] { new ItemStack(Items.dye, 1, 9), (Items.dye, 1, 12), foodDonut, Items.sugar }); I get an error at the second dye. It wants me to rename it for some reason. Help please? Quote This is this. Link to comment Share on other sites More sharing options...
shieldbug1 Posted November 22, 2014 Share Posted November 22, 2014 Why are you constructing an Object array? It's varargs for a reason... Other than that, you forgot to instantiate the ItemStack of the metadata 12 dye. Quote BEFORE ASKING FOR HELP READ THE EAQ! I'll help if I can. Apologies if I do something obviously stupid. If you don't know basic Java yet, go and follow these tutorials. Link to comment Share on other sites More sharing options...
perromercenary00 Posted November 22, 2014 Share Posted November 22, 2014 yap you are lossin the second new ItemStack i t must be like GameRegistry.addShapelessRecipe(new ItemStack(modItems.suspensionderedstone,1,2), new Object[] {new ItemStack(modItems.suspensionderedstone,1,0), new ItemStack(Items.redstone ), new ItemStack(Items.redstone )}); 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.