Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[1.16.5] Custom Recipe Type using fuel


Recommended Posts

Hi, I want to create a new Recipe Type for my mod. It should use the same fuel as a furnace. I already did some research but got more and more confused. So I decided to ask for help here.

It would be nice if someone could fork my code and do a pull request: https://github.com/DasHeinzchen/MoreOres/tree/v._1.1 

The recipe itself should work like the one of the furnace, just for the Crusher. Explanations how it works to create Recipe Types can be posted down below, too. (Or as comments at the code)

Link to comment
Share on other sites

To get an Item's burn time, call ForgeHooks.getBurnTime(stack)

You could check if an item has burn time and if it doesn't, you can prevent it from being placed in the Fuel slot.

I recommend checking the AbstractFurnaceTileEntity class fore more information. Also, creating Recipes is pretty difficult to explain in a short text. I recommend you taking a closer look at abstractCookingRecipe as well as CookingRecipe since they work pretty much the way you need. Maybe it'll even be possible to simply create another instance of abstractCookingRecipe and use it in another instance of AbstractFurnaceBlock. 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.