Ordeth Posted October 13, 2012 Posted October 13, 2012 I can't seem to find a way to have the smelting input be an item rather than a block. GameRegistry.addSmelting(Item.egg, new ItemStack(CookedEggs), 0F); I hope that it's not glaringly obvious because feeling stupid isn't fun. Quote
saintnicster Posted October 13, 2012 Posted October 13, 2012 Notice that the first parameter is an integer, not a Block object. You could look to see how they do it for something like pork or beef. Perform a reference search in the project to see that Item.porkRaw is used in the constructor of FurnaceRecipes, specifically calling the addSmelting method of FurnaceRecipes. This addSmelting method is directly the same method called by GameRegistry.addSmelting, so we can infer what to do from here. Cooking pork uses the shiftedIndex attribute inside Item.porkRaw, so you can try using that in your call. Quote
Ordeth Posted October 14, 2012 Author Posted October 14, 2012 It was indeed glaringly obvious. I'd tried shiftedIndex before, but I'd apparently done it wrong. Thanks for the help. Now, to override mob drops, should I be extending Entity<MobName>? Quote
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.