larsgerrits Posted June 23, 2013 Posted June 23, 2013 So, I've made some crafting recipes, and they are crafted the opposite way. But if I craft both of them they return one and the same block. First crafting recipe: "YXX","YXX","YXX" And the second crafting recipe: "XXY","XXY","XXY" So, if I craft them like so: "YXX","YXX","YXX" and so: "XXY","XXY","XXY", they return the block of the first crafting recipe. Quote Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support. 1.12 -> 1.13 primer by williewillus. 1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support. http://www.howoldisminecraft1710.today/
larsgerrits Posted June 23, 2013 Author Posted June 23, 2013 Anyone? Quote Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support. 1.12 -> 1.13 primer by williewillus. 1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support. http://www.howoldisminecraft1710.today/
CaptainMiner Posted June 24, 2013 Posted June 24, 2013 So u want them to give different blocks? Quote
larsgerrits Posted June 24, 2013 Author Posted June 24, 2013 No, its a bit hard to understand. So, if i wanna craft a block with this recipe: "YXX","YXX","YXX" I get the proper block. But if I craft ablock with this recipe: "XXY","XXY","XXY" i get the same block as the first one. That's because the two recipes are mirrored. Quote Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support. 1.12 -> 1.13 primer by williewillus. 1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support. http://www.howoldisminecraft1710.today/
CaptainMiner Posted June 24, 2013 Posted June 24, 2013 Ok, I get the problem but what do u want it to do? Quote
larsgerrits Posted June 24, 2013 Author Posted June 24, 2013 Negating it. So that it gives me 2 different blocks instead of the same one. Quote Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support. 1.12 -> 1.13 primer by williewillus. 1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support. http://www.howoldisminecraft1710.today/
ObsequiousNewt Posted June 24, 2013 Posted June 24, 2013 That behaviour is hardcoded in ShapedRecipes. Create your own Recipe class, remove the mirroring check (line 54), and use that class for your recipes. Quote BEWARE OF GOD --- Co-author of Pentachoron Labs' SBFP Tech.
larsgerrits Posted June 25, 2013 Author Posted June 25, 2013 That behaviour is hardcoded in ShapedRecipes. Create your own Recipe class, remove the mirroring check (line 54), and use that class for your recipes. So i made a new recipes class and a new CraftingManager class, but do you know where it is called? Quote Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support. 1.12 -> 1.13 primer by williewillus. 1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support. http://www.howoldisminecraft1710.today/
ObsequiousNewt Posted June 25, 2013 Posted June 25, 2013 That behaviour is hardcoded in ShapedRecipes. Create your own Recipe class, remove the mirroring check (line 54), and use that class for your recipes. So i made a new recipes class and a new CraftingManager class, but do you know where it is called? You don't need a new CraftingManager. Just create your own class which implements IRecipe, copy the ShapedRecipe code, and remove the mirroring check. Then use GameRegistry.addRecipe(new MyRecipe(args)); Quote BEWARE OF GOD --- Co-author of Pentachoron Labs' SBFP Tech.
larsgerrits Posted June 26, 2013 Author Posted June 26, 2013 And what would i put as my arguments? If I hover over this line: GameRegistry.addRecipe(new BDShapedRecipes()); it sais: Add arguments to match 'BDShapedRecipes(int, int, ItemStack[], ItemStack)'. Quote Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support. 1.12 -> 1.13 primer by williewillus. 1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support. http://www.howoldisminecraft1710.today/
ObsequiousNewt Posted June 26, 2013 Posted June 26, 2013 And what would i put as my arguments? If I hover over this line: GameRegistry.addRecipe(new BDShapedRecipes()); it sais: Add arguments to match 'BDShapedRecipes(int, int, ItemStack[], ItemStack)'. Width, height, inputs, output. Quote BEWARE OF GOD --- Co-author of Pentachoron Labs' SBFP Tech.
Bedrock_Miner Posted April 6, 2014 Posted April 6, 2014 Here i have posted a solution for this problem: http://www.minecraftforge.net/forum/index.php/topic,17964.0.html Quote http://i.imgur.com/wNvtGZw.png[/img] MODS and MODDING TUTORIALS
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.