Make a lava inmune block

Started by a guy called l… on

Topic category: Help with Minecraft modding (Java Edition)

Active 6 months ago
Joined Jan 2021
Points:
843

User statistics:

  • Modifications: 1
  • Forum topics: 41
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 85
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

Active 3 years ago
Joined Feb 2022
Points:
497

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 39
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.

Active 6 months ago
Joined Jan 2021
Points:
843

User statistics:

  • Modifications: 1
  • Forum topics: 41
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 85
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

Active 7 months ago
Joined Mar 2022
Points:
567

User statistics:

  • Modifications: 4
  • Forum topics: 11
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 43
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

Active 7 months ago
Joined Mar 2022
Points:
567

User statistics:

  • Modifications: 4
  • Forum topics: 11
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 43
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.

Active 6 months ago
Joined Jan 2021
Points:
843

User statistics:

  • Modifications: 1
  • Forum topics: 41
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 85
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)