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

Adding mod compatibility (detecting furnaces from other mods)


Recommended Posts

In my mod, you can place a tea kettle block on top of any burning furnace to make it boil. However, I'm only checking if it's an instanceof AbstractFurnaceBlock, which isn't the case for some modded furnaces.

How exactly can I add compatibility with these other mods? I could check if the block is in a tag containing many modded furnaces, but how do I check if it's burning then? There must be a better alternative to this.

Link to post
Share on other sites

Mmmm there is not a really fire proof way to do such things unfortunately...i suppose you could check if the block you tagged as a furnace has some kind of blockstate property like the vanilla LIT property. You could look into the other mods that adds furnace like blocks and check which property those block defines to check wether the furnace is burning or not. Then in your mod your tea kettle would check for those properties in the block below. This is the first method that came to my mind..perhaps there is something even better

  • Thanks 1

Check out the port of the BetterEnd fabric mod (WIP): https://www.curseforge.com/minecraft/mc-mods/betterend-forge-port

Link to post
Share on other sites

Don't trust too much modded blocks to have a LIT state, you should do some research yourself and see what exactly are the properties they define, so you can add more support (at least for the mods you are interested in adding support to)

Edited by Beethoven92

Check out the port of the BetterEnd fabric mod (WIP): https://www.curseforge.com/minecraft/mc-mods/betterend-forge-port

Link to post
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.

Guest
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.