Started by
Ushank
on
Topic category: Help with Minecraft modding (Java Edition)
I am aware that there are forum topics just like this one, but I haven't been able to find a direct or up-to-date answer.
How do I make a block item immune to fire and lava (like a netherite block)? I'm fine with doing coding to achieve this.
Edited by Ushank on Fri, 05/12/2023 - 02:36
i think you are the only one ( with me ) to asking this but im afraid it's not possible the lastest version ( 2023.1 ) but if you ask for the feature on the github maybe they will add it
ah, sad to know it's not possible at the current moment but thanks for at least answering 👍
Not messed with it too much but I assume you can't change the block item itself.
For Vanilla blocks: Override the natural drop of the block (loot tables I think?) to a custom item that looks identical to the vanilla block. In the new items "properties" page tick immune to fire. Then either make a procedure that when right clicking with the item places the vanilla block and removes 1 of the custom item. Or make a recipe that turns the item into the vanilla block.
With custom blocks just do the same sort of thing. That might be a good work around for you?
That seems a bit impractical imo, especially since there may be bugs to come with that.