Hello,I creating addon for IndustrialCraft2 1.7.10, where I would like replace Blast Furnace with more furnaces of this type named "factory furnace". But, I have some trouble with removing recipe for Blast Furnace from IndustrialCraft. How can I remove it without cracking IndustrialCraft code, using external mod or editing config ? I try to look for some methods how to do it, but I failed.
Sorry, if it's in bad section but i don't know where write this type of posts.
Thanks for all response!
//Henn
Shaped IC2 Crafting (Help) 1.7.10
-
-
IC2 will register it's recipe for it in FMLInitialisationEvent, so if you're loading after IC2 (which as an addon I'd presume you would), you can remove it from then. The actual removal code would be something along the lines of...
Code
Display MoreItemStack blastFurnace = IC2Items.getItem("te", "blast_furnace"); for (Iterator<IRecipe> it = CraftingManager.getInstance().getRecipeList().iterator(); it.hasNext(); ) { IRecipe recipe = it.next(); ItemStack output = recipe.getRecipeOutput(); if (output == null) continue; if (ItemStack.areItemStacksEqual(blastFurnace, output)) { it.remove(); break; } }
-
Thanks, Thanks! It works perfectly.
//Henn
-
I would remove the break. Because that break makes only sure that you remove 1 Recipe of the BlastFurnace.
If someone adds another recipe then it will not delete. -
That is, of course, completely disregarding the comment: "You're a mad, evil, scientist, if you ever modify this.".
-
Mehh so every modpack that uses IC2Exp + Modtweaker. Or changes the config.