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.
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.
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>?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now