How do i make a block explode when it comes in contact with water?

Started by amazingkeller on

Topic category: Help with Minecraft modding (Java Edition)

Joined Dec 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do i make a block explode when it comes in contact with water?

I checked and there were posts asking this question but it used outdated blocks that dont exist anymore so... how would you do it now? 

Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
if "get block at X Y (Z - 1)…
Sun, 12/08/2024 - 21:24

if "get block at X Y (Z - 1)" = water or "get block at X Y (Z - 1)" = flowing water

explode with what ever power you want

if "get block at X Y (Z + 1)" = water or "get block at X Y (Z + 1)" = flowing water

explode with what ever power you want

if "get block at (X - 1) Y Z" = water or "get block at (X - 1) Y Z" = flowing water

explode with what ever power you want

if "get block at (X + 1) Y Z" = water or "get block at (X + 1) Y Z" = flowing water

explode with what ever power you want

if "get block at X (Y +1) Z" = water or "get block at X (Y +1) Z" = flowing water

explode with what ever power you want

 

Use procedures and replace the x y z in the get block at location with a +/- math equation. Make it execute per tick, and make sure to set the tick rate.

This might seem confusing, but with some fiddling it should work.