Build a 2D cellular automata fluid simulator inside a vertical glass tank where cyan and blue streams collide with obstacles, slide down slopes, and level out.
SimulationsWaterTechnologyCyanBlueBlackLearningDecorationMap MakingBlock displaysSmooth animation (interpolation)Summoned mobsBlock building (fill/setblock/clone)21+ commands
The Flatland Fluid Grid brings 2D cellular automata physics into Minecraft without using any mods or data packs. Inside a vertical glass tank fitted with angled blackstone deflectors, dual dispensers pour streams of glowing cyan and blue fluid blocks that fall, split around obstacles, slide diagonally down slopes, and level out as they fill the lower basin.
Each fluid droplet is tracked by a smooth-interpolating block display entity paired with real solid wool blocks in the grid. As droplets collide, they check adjacent grid spaces downward, diagonally, and sideways, producing realistic splashes, foam particles, and fluid stacking before draining and resetting for the next cycle.
/scoreboard objectives add c9_timer dummy/scoreboard objectives add c9_step dummy/fill ~-8 ~ ~-1 ~8 ~16 ~1 minecraft:glass/fill ~-7 ~1 ~ ~7 ~15 ~ minecraft:air/fill ~-8 ~ ~-1 ~8 ~ ~1 minecraft:polished_deepslate/fill ~-8 ~16 ~-1 ~8 ~16 ~1 minecraft:polished_deepslate/fill ~-5 ~12 ~ ~-2 ~12 ~ minecraft:polished_blackstone_bricks/fill ~2 ~12 ~ ~5 ~12 ~ minecraft:polished_blackstone_bricks/fill ~-2 ~8 ~ ~2 ~8 ~ minecraft:polished_blackstone_bricks/summon minecraft:marker ~ ~ ~ {Tags:["c9_ctrl","c9_root"]}/scoreboard players add @e[tag=c9_ctrl] c9_timer 1/scoreboard players add @e[tag=c9_ctrl] c9_step 1/execute if score @e[tag=c9_ctrl,limit=1] c9_step matches 4.. run scoreboard players set @e[tag=c9_ctrl] c9_step 0/execute if score @e[tag=c9_ctrl,limit=1] c9_timer matches 240.. run scoreboard players set @e[tag=c9_ctrl] c9_timer 0/execute if score @e[tag=c9_ctrl,limit=1] c9_timer matches 1..180 if score @e[tag=c9_ctrl,limit=1] c9_step matches 0 if block ~-3 ~15 ~ minecraft:air run summon minecraft:block_display ~-3 ~15 ~ {Tags:["c9_drop","c9_cyan","c9_root"],teleport_duration:2, glowing:1b,glow_color_override:65535,block_state:{Name:"minecraft:cyan_stained_glass"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.92f,0.92f,0.92f],translation:[-0.46f,-0.46f,-0.46f]}}/execute if score @e[tag=c9_ctrl,limit=1] c9_timer matches 1..180 if score @e[tag=c9_ctrl,limit=1] c9_step matches 2 if block ~3 ~15 ~ minecraft:air run summon minecraft:block_display ~3 ~15 ~ {Tags:["c9_drop","c9_blue","c9_root"],teleport_duration:2,glowing:1b,glow_color_override:33023,block_state:{Name:"minecraft:light_blue_stained_glass"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.92f,0.92f,0.92f],translation:[-0.46f,-0.46f,-0.46f]}}/execute at @e[type=minecraft:block_display,tag=c9_drop] run setblock ~ ~ ~ minecraft:air/execute as @e[type=minecraft:block_display,tag=c9_drop] at @s if block ~ ~-1 ~ minecraft:air run tp @s ~ ~-1 ~/execute as @e[type=minecraft:block_display,tag=c9_drop] at @s unless block ~ ~-1 ~ minecraft:air if block ~-1 ~-1 ~ minecraft:air run tp @s ~-1 ~-1 ~/execute as @e[type=minecraft:block_display,tag=c9_drop] at @s unless block ~ ~-1 ~ minecraft:air if block ~1 ~-1 ~ minecraft:air run tp @s ~1 ~-1 ~/execute if score @e[tag=c9_ctrl,limit=1] c9_step matches 0..1 as @e[type=minecraft:block_display,tag=c9_drop] at @s unless block ~ ~-1 ~ minecraft:air if block ~-1 ~ ~ minecraft:air run tp @s ~-1 ~ ~/execute if score @e[tag=c9_ctrl,limit=1] c9_step matches 2..3 as @e[type=minecraft:block_display,tag=c9_drop] at @s unless block ~ ~-1 ~ minecraft:air if block ~1 ~ ~ minecraft:air run tp @s ~1 ~ ~/execute as @e[type=minecraft:block_display,tag=c9_drop] at @s run setblock ~ ~ ~ minecraft:cyan_wool keep/execute at @e[type=minecraft:block_display,tag=c9_drop] run particle minecraft:dust{color:[0.2,0.9,1.0],scale:1.0} ~ ~ ~ 0.2 0.2 0.1 0 1 forcesetup #4 Carves out a 1-block-thin vertical air chamber inside the solid glass tank so the fluid blocks are constrained to a 2D plane.loop #5 Every 4 ticks (when c9_step is 0), summons a glowing cyan stained-glass block_display entity at the left nozzle if that grid cell is empty.loop #7 Clears the wool collision block at each droplet's current position right before recalculating movement for the tick.loop #8 Primary gravity rule: if the grid cell directly below a droplet is air, the droplet moves down one block.loop #9 Diagonal slide rule: if the cell below is blocked by an obstacle or another fluid block, the droplet checks down-left and slides diagonally.loop #11 Lateral leveling rule: alternates left and right checks using the 4-tick c9_step clock so resting droplets spread horizontally across basins without directional bias.loop #13 Places a solid cyan_wool block at every droplet's new coordinates so subsequent droplets collide and stack on top of each other.


Recorded on our own test server: 50 frames at about 8.2 fps. Our image check saw: Cyan and blue blocks fall through a vertical glass enclosure, deflecting around a horizontal blackstone bar before landing at the bottom.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
To let players interact with the fluid grid dynamically, give yourself polished blackstone bricks and place or break blocks inside the ~-7 ~1 ~ to ~7 ~15 ~ chamber while the simulation runs; the falling fluid streams will immediately divert around your custom obstacles.
/kill @e[tag=c9_root]/fill ~-8 ~ ~-1 ~8 ~16 ~1 minecraft:air/scoreboard objectives remove c9_timer/scoreboard objectives remove c9_stepThe wool blocks provide fast grid collision checks using standard if block commands, while the glowing block_display entities with teleport_duration provide smooth interpolated movement and colored overlays.
Yes. Lower the c9_step reset threshold in loop command 3 from 4.. to 2.. to double the spawn rate of the fluid droplets from both nozzles.
▶Monumental Dam Spillway Floodgate ReleaseSimulationsHard24 cmds
▶Atmospheric Cloud-Seeding Thunderstorm GenesisSimulationsMedium21 cmds
▶Tidal Wave Tsunami Breakwater SimulationSimulationsHard24 cmds
▶Four-Dimensional Hypercube Tesseract RotationSimulationsExpert24 cmds