Elemental Pixel Physics Sandbox

Build a working falling-sand cellular automata machine in Minecraft with glowing pixel physics, flowing water, corrosive acid, and fiery reactions.

Java EditionComplex Contraptions & CinematicsExpert24 commandsTested on a real 26.2 & 26.3 server
Glowing colored pixel outlines fall and pile up on a giant vertical black screen in Minecraft. Download the GIF Video & GIF © www.9minecraft.net

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.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_tick dummy
  2. /scoreboard objectives add c9_age dummy
  3. /fill ~-9 ~ ~-1 ~9 ~16 ~1 minecraft:crying_obsidian
  4. /fill ~-8 ~1 ~-1 ~8 ~15 ~1 minecraft:air
  5. /fill ~-8 ~1 ~1 ~8 ~15 ~1 minecraft:sea_lantern
  6. /fill ~-7 ~2 ~1 ~7 ~14 ~1 minecraft:black_concrete
  7. /fill ~-6 ~10 ~ ~-2 ~10 ~ minecraft:chiseled_quartz_block
  8. /fill ~2 ~10 ~ ~6 ~10 ~ minecraft:birch_planks
  9. /fill ~-4 ~5 ~ ~4 ~5 ~ minecraft:chiseled_quartz_block
  10. /summon minecraft:marker ~ ~ ~ {Tags:["c9_sim","c9_ctrl"]}

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

  1. /scoreboard players add @e[type=minecraft:marker,tag=c9_ctrl] c9_tick 1
  2. /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
  3. /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]}}
  4. /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]}}
  5. /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]}}
  6. /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]}}
  7. /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
  8. /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 ~ ~ ~
  9. /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 ~ ~ ~
  10. /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 ~ ~ ~
  11. /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 ~ ~ ~
  12. /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
  13. /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
  14. /execute as @e[type=minecraft:block_display,tag=c9_pix,scores={c9_age=32..}] run kill @s

How it works

Frames from the test run

Elemental Pixel Physics Sandbox - frame 1Elemental Pixel Physics Sandbox - frame 2Elemental Pixel Physics Sandbox - frame 3

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.

Build it in your world

  1. Stand at the center of a flat open area where you want the display screen to appear.
  2. Run the 10 setup commands in chat or place them in a chain of impulse command blocks to construct the illuminated frame, shelves, and controller marker.
  3. Notice Note: change <code>aqua_concrete</code> in loop command 4 to <code>light_blue_concrete</code> if your server prefers standard naming, though the command below uses <code>light_blue_concrete</code>.
  4. Place 14 repeating command blocks set to Always Active near the stage center.
  5. Paste one loop command into each repeating command block.
  6. Watch the four nozzles at the top of the screen pour glowing sand, water, acid, and fire pixels that stack, slide, and dissolve the platforms.

Use it with real players

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.

Remove it again 4 commands

  1. /kill @e[tag=c9_sim]
  2. /fill ~-9 ~ ~-1 ~9 ~16 ~1 minecraft:air
  3. /scoreboard objectives remove c9_tick
  4. /scoreboard objectives remove c9_age

FAQ

Why won't the pixels lag out my server over time?

Each 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.

Can I reset the dissolved quartz shelves?

Yes! Simply re-run setup commands 7, 8, and 9 to restore the chiseled quartz and birch plank ledges inside the tank.

Commands used

/execute/fill/kill/particle/scoreboard/summon/tp

Similar creations

Join 9Minecraft News & Guides