Started by
a guy called l…
on
Topic category: Help with Minecraft modding (Java Edition)
I want to do a block that has X chance to generate lava when broken, so, how can I make the drop (drop itself) like netherite? I see the option on items, but not on blocks
Maybe you can make the block drop an item immune to lava that can be crafted into the block you want.
Is an option, but I still wanna now if is posible (maybe with coding?) make the block inmune
Don't know how to make it immune without the item immune to lava check, but here's how to make it have a chance of spawning lava:
Make a new prodedure for when the block is destroyed by player
If random [0, 1) < 0.2 (20%)
Place [] (lava) at x: x y: y z: z
Don't forget to put the prodedure in when block destroyed by explosion.
Yea, i'm decently good with procedures, so is not to hard to me that, but I need the block being inmune to lava for not instantally burns
I repeat, maybe with coding (My only idea is to place the code line that make items on floor inmune to lava on the block drop, but I don't know how)