Fluid Flood — Intelligent Pathfinding Liquid Wave

Create an intelligent, self-expanding liquid flood that navigates around walls and tight corners using marker entities and animated block displays.

Java EditionMini-games & UtilitiesHard24 commandsTested on a real 26.2 & 26.3 server
Cyan liquid flows through a dark deepslate labyrinth bordered by glowing sea lanterns. Download the GIF Video & GIF © www.9minecraft.net

Spawners & GeneratorsWaterTechnologyCyanBlackMap MakingAdventure MapLearningBlock displaysSmooth animation (interpolation)Block building (fill/setblock/clone)21+ commands

Normal Minecraft water stops flowing after just eight blocks, leaving large rooms and winding corridors completely dry. Fluid Flood solves this by turning a single source point into an intelligent, expanding wave of glowing cyan liquid that checks adjacent air spaces and snakes around every wall and corner.

In this setup, a dark deepslate labyrinth is built at the centre of the stage. Every few ticks, the flood wavefront advances into all neighbouring open tiles, sending up glowing block display surges, splashes, and soul flames until the entire maze is filled from end to end.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_timer dummy
  2. /scoreboard players set #tick c9_timer 0
  3. /fill ~-9 ~ ~-9 ~9 ~1 ~9 deepslate_bricks
  4. /fill ~-8 ~ ~-8 ~8 ~1 ~8 air
  5. /fill ~-9 ~-1 ~-9 ~9 ~-1 ~9 prismarine_bricks
  6. /fill ~-9 ~1 ~-9 ~9 ~1 ~9 sea_lantern replace deepslate_bricks
  7. /fill ~-4 ~ ~-8 ~-4 ~1 ~4 deepslate_bricks
  8. /fill ~ ~ ~-4 ~ ~1 ~8 deepslate_bricks
  9. /fill ~4 ~ ~-8 ~4 ~1 ~4 deepslate_bricks
  10. /summon marker ~-6 ~ ~-6 {Tags:["c9_flood","c9_new"]}

2. Loop - one repeating command block each (Always Active) 14 commands

  1. /scoreboard players add #tick c9_timer 1
  2. /execute if score #tick c9_timer matches 3.. run scoreboard players set #tick c9_timer 0
  3. /execute if score #tick c9_timer matches 0 as @e[type=marker,tag=c9_new] run tag @s add c9_active
  4. /execute if score #tick c9_timer matches 0 as @e[type=marker,tag=c9_active] at @s if block ~ ~ ~ air run setblock ~ ~ ~ cyan_stained_glass
  5. /execute if score #tick c9_timer matches 0 as @e[type=marker,tag=c9_active] at @s run particle splash ~ ~1.0 ~ 0.3 0.2 0.3 0.1 12 force
  6. /execute if score #tick c9_timer matches 0 as @e[type=marker,tag=c9_active] at @s run particle soul_fire_flame ~ ~0.9 ~ 0.2 0.15 0.2 0.02 4 force
  7. /execute if score #tick c9_timer matches 0 as @e[type=marker,tag=c9_active,limit=24] at @s run summon block_display ~-0.45 ~ ~-0.45 {Tags:["c9_flood","c9_vis"],Glowing:1b,glow_color_override:65535,block_state:{Name:"minecraft:light_blue_stained_glass"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[0.9f,0.2f,0.9f]},interpolation_duration:8,start_interpolation:0}
  8. /execute as @e[type=block_display,tag=c9_vis] run data merge entity @s {transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0.85f,0f],scale:[0.9f,0.25f,0.9f]},start_interpolation:0}
  9. /execute as @e[type=block_display,tag=c9_vis] run scoreboard players add @s c9_timer 1
  10. /kill @e[type=block_display,tag=c9_vis,scores={c9_timer=10..}]
  11. /execute if score #tick c9_timer matches 0 as @e[type=marker,tag=c9_active,limit=20] at @s positioned ~1 ~ ~ if block ~ ~ ~ air unless entity @e[type=marker,tag=c9_new,distance=..0.5] run summon marker ~ ~ ~ {Tags:["c9_flood","c9_new"]}
  12. /execute if score #tick c9_timer matches 0 as @e[type=marker,tag=c9_active,limit=20] at @s positioned ~-1 ~ ~ if block ~ ~ ~ air unless entity @e[type=marker,tag=c9_new,distance=..0.5] run summon marker ~ ~ ~ {Tags:["c9_flood","c9_new"]}
  13. /execute if score #tick c9_timer matches 0 as @e[type=marker,tag=c9_active,limit=20] at @s positioned ~ ~ ~1 if block ~ ~ ~ air unless entity @e[type=marker,tag=c9_new,distance=..0.5] run summon marker ~ ~ ~ {Tags:["c9_flood","c9_new"]}
  14. /execute if score #tick c9_timer matches 0 as @e[type=marker,tag=c9_active,limit=20] at @s run kill @s

How it works

Frames from the test run

Fluid Flood — Intelligent Pathfinding Liquid Wave - frame 1Fluid Flood — Intelligent Pathfinding Liquid Wave - frame 2Fluid Flood — Intelligent Pathfinding Liquid Wave - frame 3

Recorded on our own test server: 60 frames at about 9.9 fps. Our image check saw: A deepslate labyrinth bordered by sea lanterns is partially filled with cyan stained glass representing a snaking liquid flood.

Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.

Build it in your world

  1. Stand at the centre of a flat open area where you want the flood basin to appear.
  2. Run each of the 10 setup commands in order to create the scoreboard, build the deepslate maze, and place the starter marker.
  3. Place a repeating command block (Always Active) for the first loop command, and chain 13 chain command blocks (Always Active, Unconditional) to it for the remaining loop commands.
  4. Watch the glowing cyan flood wave expand from the corner, round the interior walls, and fill the entire labyrinth.
  5. To reset and replay, run the remove commands or clear the cyan stained glass back to air and summon a new marker with tags c9_flood and c9_new.

Use it with real players

To let a player trigger a flood anywhere by dropping a water bucket item, replace the setup marker summon with a repeating detector: /execute at @e[type=item,nbt={Item:{id:"minecraft:water_bucket"}}] if block ~ ~ ~ air run summon marker ~ ~ ~ {Tags:["c9_flood","c9_new"]} followed by killing the dropped bucket item. If you want four-way open-world spreading, add a fourth directional check for ~ ~ ~-1 in a chain command block before killing c9_active, and always enclose the target room so the flood does not expand forever.

Remove it again 4 commands

  1. /kill @e[tag=c9_flood]
  2. /fill ~-9 ~-1 ~-9 ~9 ~2 ~9 air
  3. /fill ~-9 ~-1 ~-9 ~9 ~-1 ~9 grass_block
  4. /scoreboard objectives remove c9_timer

FAQ

Why does the flood use cyan stained glass instead of real water blocks?

Real water triggers vanilla fluid flow updates into adjacent blocks automatically, which interferes with the custom step-by-step pathfinding visual. Cyan stained glass with glowing block display crests shows the exact algorithm cleanly.

Will this lag the server if I run it in an open field?

The commands use an entity limit on the active markers per cycle and only fill air blocks inside the enclosed basin. Always run flood algorithms inside walled rooms or add a maximum distance selector like distance=..18 so it stops automatically.

Commands used

/data/execute/fill/kill/particle/scoreboard/setblock/summon/tag

Similar creations

Join 9Minecraft News & Guides