Posted February 16, 201510 yr hi, Is there a way to make a same recipe with different items like "OreDictionary.WILDCARD_VALUE" effect? I mean, with this code the recipe shows any combination of plank block in the same shape: GameRegistry.addShapedRecipe(new ItemStack(Chest, 1), "ppp", "p p", "ppp", 'p', new ItemStack(Blocks.planks, 1, OreDictionary.WILDCARD_VALUE)); But I need to use "different" items like diamond and emerald then with different id. thanks
February 16, 201510 yr GameRegistry.addRecipe(new ItemStack(Blocks.chest, 2), "SSS", "S S", "SSS", new ItemStack(Blocks.dirt,); ' Just do this change the (Blocks.chest, 2) with what the output gonna be and change 2 with how manny it gonna be Hope it works NEWB! in java im sorry
February 16, 201510 yr Author I don't care the "Output", but I need to set multiple "Input" items for the same shape ....
February 16, 201510 yr Ah GameRegistry.addShapedRecipe(new ItemStack(Blocks.Chest), "SSS ", "B B", "PPP", 'S', Items.Iron, 'B', Items.stick, 'P', Items.Gold); Here this what you mean? NEWB! in java im sorry
February 16, 201510 yr Author Then you need to register multiple recipes. yes, but it makes multiple shapes ...
February 16, 201510 yr Author Ah GameRegistry.addShapedRecipe(new ItemStack(Blocks.Chest), "SSS ", "B B", "PPP", 'S', Items.Iron, 'B', Items.stick, 'P', Items.Gold); Here this what you mean? no, I mean like this but that works: GameRegistry.addRecipe(new ItemStack(Blocks.Chest, 1), "ddd", "d d", "ddd", "d", new ItemStack(Items.diamond), "d", new ItemStack(Items.emerald)); that makes a chest BUT using "diamonds" OR "emeralds" ....
February 16, 201510 yr Author Yes, you need two recipe registrations for that then. One with diamonds, one with emeralds. If you want to mix-and-match them you need a custom IRecipe implementation. this time I really afraid to asking you a sample link ...
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.