Jump to content

GameRegistry.addSmelting


Ordeth

Recommended Posts

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.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...