Posted March 2, 201411 yr As mentioned http://www.minecraftforge.net/forum/index.php/topic,16991.0.html I'm working my way through the mod wiki and I've come upon some issues in the Crafting & Smelting example. Once I removed the blockID, there's now an issue that the following line is invalid: FurnaceRecipes.smelting().addSmelting(Blocks.wool, 15, new ItemStack(Blocks.wool, 1, 0), 0.1f); I've checked the source (and the jars), but there's no addSmelting in FurnaceRecipes. Can someone point me at the equivalent in 1.7.x? Thanks again in advance for any help.
March 2, 201411 yr Author Thanks. I assume the 2nd parameter (int) in the old signature is not needed any more in the addSmelting method within GameRegistry? The other uses of GameRegistry.addSmelting within the Generic example don't have an int either, so maybe the assumption is correct. But it's always good to get confirmation from someone in the know :-)
March 2, 201411 yr Author Yes, that may well be the case. However, the wiki example calls out the need to use the metadata parameter explicitly and FurnaceRecipes over GameRegistry: "You may have noticed that the input does not accept a metadata or damage value. This is quite silly, but the GameRegistry doesn't have an addSmelting variant that takes metadata. For that, we will need to input FurnaceRecipes, get its instance, and then use its addSmelting method. The example here is burning black wool to get white wool. FurnaceRecipes.smelting().addSmelting(Block.cloth.blockID, 15, new ItemStack(Block.cloth, 1, 0), 0.1f);" Is there an equivalent now, or doesn't it matter? And thanks again for your help. It is much appreciated.
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.