Make a lava inmune block

Started by a guy called l… on

Topic category: Help with modding (Java Edition)

Last seen on 23:35, 30. Oct 2023
Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Make a lava inmune block

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

Last seen on 00:45, 16. Apr 2022
Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Maybe you can make the block…
Thu, 03/24/2022 - 22:19

Maybe you can make the block drop an item immune to lava that can be crafted into the block you want.

Last seen on 23:35, 30. Oct 2023
Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is an option, but I still…
Fri, 03/25/2022 - 12:16

Is an option, but I still wanna now if is posible (maybe with coding?) make the block inmune

Last seen on 02:38, 6. Oct 2024
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Don't know how to make it…
Fri, 03/25/2022 - 16:35

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

Last seen on 02:38, 6. Oct 2024
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Don't forget to put the…
Fri, 03/25/2022 - 16:36

Don't forget to put the prodedure in when block destroyed by explosion.

Last seen on 23:35, 30. Oct 2023
Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yea, i'm decently good with…
Sun, 03/27/2022 - 14:30

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)