Posted November 22, 201410 yr 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? This is this.
November 22, 201410 yr 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. 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.
November 22, 201410 yr 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 )});
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.