Replace tall vertical sand pillars with realistic cellular automata physics that make sand and red sand tumble outward into sloped pyramid dunes.
SimulationsNatureYellowOrangeLearningMap MakingBuilding ToolBlock displaysFalling blocksBlock building (fill/setblock/clone)21+ commands
In vanilla Minecraft, dropping sand from a single point stacks into a tall vertical tower. This command creation applies cellular automata physics to falling sand and red sand, causing unstable columns to slide outward and settle at a natural 45-degree angle of repose.
Watch as an overhead emitter pours alternating streams of sand and red sand onto the sandstone basin. Every time a block lands on a peak with open space beside it, it immediately tumbles down the slope in a dusty avalanche until a layered desert pyramid forms.
/scoreboard objectives add c9_timer dummy/scoreboard objectives add c9_dir dummy/fill ~-9 ~-1 ~-9 ~9 ~-1 ~9 smooth_sandstone/fill ~-9 ~ ~-9 ~9 ~ ~9 chiseled_sandstone/fill ~-8 ~ ~-8 ~8 ~15 ~8 air/summon marker ~ ~ ~ {Tags:["c9_ctrl"]}/scoreboard players set @e[tag=c9_ctrl] c9_timer 0/summon block_display ~-0.5 ~11.5 ~-0.5 {Tags:["c9_spawner"],Glowing:1b,glow_color_override:16755200,block_state:{Name:"minecraft:chiseled_red_sandstone"}}/scoreboard players add @e[tag=c9_ctrl] c9_timer 1/execute if score @e[tag=c9_ctrl,limit=1] c9_timer matches 150.. run scoreboard players set @e[tag=c9_ctrl] c9_timer 0/execute if score @e[tag=c9_ctrl,limit=1] c9_timer matches 1 run fill ~-8 ~ ~-8 ~8 ~10 ~8 air/execute if score @e[tag=c9_ctrl,limit=1] c9_timer matches 1 run kill @e[type=falling_block,tag=c9_sand]/execute if score @e[tag=c9_ctrl,limit=1] c9_timer matches 1 run kill @e[type=item,distance=..15]/execute if score @e[tag=c9_ctrl,limit=1] c9_timer matches 2 run fill ~-1 ~ ~-1 ~1 ~1 ~1 sand/execute if score @e[tag=c9_ctrl,limit=1] c9_timer matches 5..65 run summon falling_block ~ ~11 ~ {BlockState:{Name:"minecraft:sand"},Time:1,DropItem:0b,Tags:["c9_sand"]}/execute if score @e[tag=c9_ctrl,limit=1] c9_timer matches 66..115 run summon falling_block ~ ~11 ~ {BlockState:{Name:"minecraft:red_sand"},Time:1,DropItem:0b,Tags:["c9_sand"]}/execute as @e[type=falling_block,tag=c9_sand] unless score @s c9_dir matches 0..3 store result score @s c9_dir run random value 0..3/execute as @e[type=falling_block,tag=c9_sand,scores={c9_dir=0}] at @s unless block ~ ~-0.3 ~ air if block ~1 ~-0.3 ~ air if block ~1 ~-1.3 ~ air run tp @s ~1 ~ ~/execute as @e[type=falling_block,tag=c9_sand,scores={c9_dir=1}] at @s unless block ~ ~-0.3 ~ air if block ~-1 ~-0.3 ~ air if block ~-1 ~-1.3 ~ air run tp @s ~-1 ~ ~/execute as @e[type=falling_block,tag=c9_sand,scores={c9_dir=2}] at @s unless block ~ ~-0.3 ~ air if block ~ ~-0.3 ~1 air if block ~ ~-1.3 ~1 air run tp @s ~ ~ ~1/execute as @e[type=falling_block,tag=c9_sand,scores={c9_dir=3}] at @s unless block ~ ~-0.3 ~ air if block ~ ~-0.3 ~-1 air if block ~ ~-1.3 ~-1 air run tp @s ~ ~ ~-1/execute at @e[type=falling_block,tag=c9_sand] run particle dust{color:[0.92,0.75,0.45],scale:1.3} ~ ~0.3 ~ 0.35 0.2 0.35 0.02 2loop #9 Assigns each newly summoned falling sand entity a random cardinal slide direction from 0 to 3 using the <code>/random</code> command so the sand spreads evenly on all four sides.loop #10 Implements the cellular automata rule for the +X direction: right before a falling sand entity lands on a solid block (<code>~ ~-0.3 ~</code>), if both the adjacent space and the space one block below that are air, the sand shifts sideways by 1 full block to continue tumbling down the slope.loop #7 Streams falling sand blocks with <code>DropItem:0b</code> from the glowing overhead emitter, followed by red sand in the next command to create visible geological layers in the dune.


Recorded on our own test server: 47 frames at about 9.3 fps. Our image check saw: An overhead emitter drops sand and red sand into a sandstone basin, forming a spreading pyramid-like mound with dust particles.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
To apply this avalanche physics to any sand or red sand placed by players across your area, replace the two timed /summon falling_block loop commands with /execute as @e[type=falling_block,distance=..50] run tag @s add c9_sand and remove the 150-tick reset commands.
/kill @e[tag=c9_ctrl]/kill @e[tag=c9_spawner]/kill @e[tag=c9_sand]/scoreboard objectives remove c9_timer/scoreboard objectives remove c9_dir/fill ~-9 ~ ~-9 ~9 ~15 ~9 air/fill ~-9 ~-1 ~-9 ~9 ~-1 ~9 grass_blockIn Minecraft, if a falling block lands while off-center from the block grid, it breaks into a dropped item instead of placing a solid block. Shifting by exactly 1 block keeps every grain aligned with the grid.
Yes. Right now it checks <code>~1 ~-1.3 ~ air</code> for a 1:1 slope (45 degrees). Checking two blocks down (<code>~1 ~-2.3 ~ air</code>) creates steeper cliffs, while checking only horizontally creates flatter dunes.
▶Tidal Wave Tsunami Breakwater SimulationSimulationsHard24 cmds
▶Volcanic Caldera Eruption & Pyroclastic FlowSimulationsHard24 cmds
▶Microscopic Bacteriophage Viral InjectionSimulationsHard24 cmds
▶Aurora Borealis & Magnetic Pole ShiftSimulationsHard24 cmds
▶Bioluminescent Mycelium Spore Network PulseSimulationsMedium24 cmds