Build a working falling-sand cellular automata machine in Minecraft with glowing pixel physics, flowing water, corrosive acid, and fiery reactions.
SimulationsTechnologyFireWaterYellowGreenOrangeLearningMini-gameDecorationBlock displaysSmooth animation (interpolation)Summoned mobsBlock building (fill/setblock/clone)21+ commands
The Elemental Pixel Physics Sandbox turns a giant vertical screen into a live cellular automata simulator inside vanilla Minecraft. Four overhead nozzles continuously pour glowing pixels of yellow sand, blue water, green acid, and orange fire into an illuminated glass tank with ledges.
Using block display entities and neighbor-checking rules, each pixel obeys its own physics: sand piles up into pyramids, water flows sideways off ledges, acid dissolves stone platforms, and fire ignites wooden barriers while boiling water into steam.
/scoreboard objectives add c9_tick dummy/scoreboard objectives add c9_age dummy/fill ~-9 ~ ~-1 ~9 ~16 ~1 minecraft:crying_obsidian/fill ~-8 ~1 ~-1 ~8 ~15 ~1 minecraft:air/fill ~-8 ~1 ~1 ~8 ~15 ~1 minecraft:sea_lantern/fill ~-7 ~2 ~1 ~7 ~14 ~1 minecraft:black_concrete/fill ~-6 ~10 ~ ~-2 ~10 ~ minecraft:chiseled_quartz_block/fill ~2 ~10 ~ ~6 ~10 ~ minecraft:birch_planks/fill ~-4 ~5 ~ ~4 ~5 ~ minecraft:chiseled_quartz_block/summon minecraft:marker ~ ~ ~ {Tags:["c9_sim","c9_ctrl"]}/scoreboard players add @e[type=minecraft:marker,tag=c9_ctrl] c9_tick 1/execute if score @e[type=minecraft:marker,tag=c9_ctrl,limit=1] c9_tick matches 5.. run scoreboard players set @e[type=minecraft:marker,tag=c9_ctrl] c9_tick 1/execute if score @e[type=minecraft:marker,tag=c9_ctrl,limit=1] c9_tick matches 1 positioned ~-4 ~14.5 ~ unless entity @e[tag=c9_pix,distance=..0.6] run summon minecraft:block_display ~ ~ ~ {Tags:["c9_sim","c9_pix","c9_sand"],Glowing:1b,glow_color_override:16766720,brightness:{sky:15,block:15},teleport_duration:2,block_state:{Name:"minecraft:yellow_concrete"},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[type=minecraft:marker,tag=c9_ctrl,limit=1] c9_tick matches 2 positioned ~-1 ~14.5 ~ unless entity @e[tag=c9_pix,distance=..0.6] run summon minecraft:block_display ~ ~ ~ {Tags:["c9_sim","c9_pix","c9_water"],Glowing:1b,glow_color_override:39167,brightness:{sky:15,block:15},teleport_duration:2,block_state:{Name:"minecraft:aqua_concrete",Properties:{}},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[type=minecraft:marker,tag=c9_ctrl,limit=1] c9_tick matches 3 positioned ~2 ~14.5 ~ unless entity @e[tag=c9_pix,distance=..0.6] run summon minecraft:block_display ~ ~ ~ {Tags:["c9_sim","c9_pix","c9_acid"],Glowing:1b,glow_color_override:5635925,brightness:{sky:15,block:15},teleport_duration:2,block_state:{Name:"minecraft:lime_concrete"},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[type=minecraft:marker,tag=c9_ctrl,limit=1] c9_tick matches 4 positioned ~5 ~14.5 ~ unless entity @e[tag=c9_pix,distance=..0.6] run summon minecraft:block_display ~ ~ ~ {Tags:["c9_sim","c9_pix","c9_fire"],Glowing:1b,glow_color_override:16733440,brightness:{sky:15,block:15},teleport_duration:2,block_state:{Name:"minecraft:shroomlight"},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[type=minecraft:marker,tag=c9_ctrl,limit=1] c9_tick matches 2 as @e[type=minecraft:block_display,tag=c9_pix] at @s run scoreboard players add @s c9_age 1/execute if score @e[type=minecraft:marker,tag=c9_ctrl,limit=1] c9_tick matches 2 as @e[type=minecraft:block_display,tag=c9_pix] at @s positioned ~ ~-1 ~ if block ~ ~ ~ minecraft:air unless entity @e[tag=c9_pix,distance=..0.5] run tp @s ~ ~ ~/execute if score @e[type=minecraft:marker,tag=c9_ctrl,limit=1] c9_tick matches 3 as @e[type=minecraft:block_display,tag=c9_pix] at @s unless block ~ ~-1 ~ minecraft:air positioned ~-1 ~-1 ~ if block ~ ~ ~ minecraft:air unless entity @e[tag=c9_pix,distance=..0.5] run tp @s ~ ~ ~/execute if score @e[type=minecraft:marker,tag=c9_ctrl,limit=1] c9_tick matches 3 as @e[type=minecraft:block_display,tag=c9_pix] at @s positioned ~ ~-1 ~ if entity @e[tag=c9_pix,distance=..0.5] positioned ~1 ~ ~ if block ~ ~ ~ minecraft:air unless entity @e[tag=c9_pix,distance=..0.5] run tp @s ~ ~ ~/execute if score @e[type=minecraft:marker,tag=c9_ctrl,limit=1] c9_tick matches 4 as @e[type=minecraft:block_display,tag=c9_water] at @s positioned ~-1 ~ ~ if block ~ ~ ~ minecraft:air unless entity @e[tag=c9_pix,distance=..0.5] run tp @s ~ ~ ~/execute as @e[type=minecraft:block_display,tag=c9_fire] at @s run particle minecraft:flame ~ ~ ~ 0.25 0.25 0.25 0.02 1/execute as @e[type=minecraft:block_display,tag=c9_acid] at @s if block ~ ~-1 ~ minecraft:chiseled_quartz_block run fill ~ ~-1 ~ ~ ~-1 ~ minecraft:air destroy/execute as @e[type=minecraft:block_display,tag=c9_pix,scores={c9_age=32..}] run kill @ssetup #3 Builds the outer crying obsidian frame and a bright sea lantern inner border so the screen interior and ledges are fully illuminated.loop #3 Summons a glowing yellow sand pixel as a block_display entity with full sky/block brightness and smooth teleport interpolation.loop #8 Applies downward gravity: every cycle, pixels check if the grid cell directly below is air and empty of other pixels before stepping down.loop #10 Applies cellular automata diagonal sliding: when a pixel rests on top of another pixel, it slides diagonally down-right or down-left to form piles.loop #13 Simulates acid corrosion by checking if a green acid pixel has landed on a chiseled quartz ledge and breaking the block with particles.Recorded on our own test server: 59 frames at about 9.8 fps. Our image check saw: A large vertical black screen framed by sea lanterns and crying obsidian displays falling shapes with glowing yellow, green, and orange outlines.
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 paint elements directly onto the screen, replace the fixed nozzle coordinates in loop commands 3 to 6 with raycast markers or execute at a snowballs/arrows shot by players holding named items, summoning the corresponding c9_sand, c9_water, c9_acid, or c9_fire pixel at the projectile position inside the screen plane.
/kill @e[tag=c9_sim]/fill ~-9 ~ ~-1 ~9 ~16 ~1 minecraft:air/scoreboard objectives remove c9_tick/scoreboard objectives remove c9_ageEach pixel only spawns when its nozzle cell is clear, updates on a 4-tick clock cycle, and automatically despawns once its c9_age score reaches 32 steps.
Yes! Simply re-run setup commands 7, 8, and 9 to restore the chiseled quartz and birch plank ledges inside the tank.
▶Monumental Dam Spillway Floodgate ReleaseSimulationsHard24 cmds
▶Atmospheric Cloud-Seeding Thunderstorm GenesisSimulationsMedium21 cmds
▶Autonomous Turret Defense ArenaSimulationsHard26 cmds
▶Flatland Fluid GridSimulationsExpert24 cmds
▶Kinetic Shrapnel DetonationSimulationsHard21 cmds