Build an automated sandy beach where rows of ocean water and frothy white foam rhythmically crash onto the shore and recede back into the sea.
SimulationsOceanWaterNatureBlueWhiteYellowDecorationMap MakingCinematicBlock displaysBlock building (fill/setblock/clone)Sounds21+ commands
Bring your Minecraft beaches to life with dynamic rolling ocean waves. Instead of flat, static water, this creation builds a sloped sandy shoreline where staggered rows of water and bright white sea foam surge up the beach, crash with splashing droplets, and smoothly pull back into the ocean.
The effect uses invisible marker entities driven by a scoreboard timer to simulate the natural ebb and flow of the tide, complete with block display waves, wet sand trails, and ambient seagull and wave sounds.
/scoreboard objectives add c9_wave dummy/fill ~-12 ~-1 ~-10 ~12 ~-1 ~2 prismarine_bricks/fill ~-12 ~ ~-10 ~12 ~ ~-2 water/fill ~-12 ~ ~-1 ~12 ~ ~3 sand/fill ~-12 ~1 ~4 ~12 ~1 ~8 sand/fill ~-12 ~2 ~9 ~12 ~2 ~12 sandstone/fill ~-12 ~1 ~3 ~12 ~1 ~3 sandstone_slab[type=bottom]/fill ~-12 ~2 ~8 ~12 ~2 ~8 sandstone_slab[type=bottom]/summon block_display ~-12 ~0.1 ~-2 {Tags:["c9_ent","c9_crest","c9_w1"],block_state:{Name:"minecraft:cyan_stained_glass"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[25f,0.45f,1.2f],translation:[0f,0f,0f]}}/summon block_display ~-12 ~0.1 ~-5 {Tags:["c9_ent","c9_crest","c9_w2"],block_state:{Name:"minecraft:light_blue_stained_glass"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[25f,0.35f,1.0f],translation:[0f,0f,0f]}}/scoreboard players add #c9_t c9_wave 1/execute if score #c9_t c9_wave matches 100.. run scoreboard players set #c9_t c9_wave 0/execute if score #c9_t c9_wave matches 1..45 as @e[tag=c9_w1] at @s run tp @s ~ ~0.025 ~0.13/execute if score #c9_t c9_wave matches 46..55 as @e[tag=c9_w1] at @s run tp @s ~ ~ ~0.03/execute if score #c9_t c9_wave matches 56..99 as @e[tag=c9_w1] at @s run tp @s ~ ~-0.025 ~-0.13/execute if score #c9_t c9_wave matches 0 as @e[tag=c9_w1] run tp @s ~-12 ~0.1 ~-2/execute if score #c9_t c9_wave matches 1..45 as @e[tag=c9_w2] at @s run tp @s ~ ~0.02 ~0.12/execute if score #c9_t c9_wave matches 56..99 as @e[tag=c9_w2] at @s run tp @s ~ ~-0.02 ~-0.12/execute if score #c9_t c9_wave matches 0 as @e[tag=c9_w2] run tp @s ~-12 ~0.1 ~-5/execute at @e[tag=c9_crest] run particle dust{color:[0.95,0.98,1.0],scale:1.6} ~12.5 ~0.4 ~1.0 6.5 0.1 0.2 0 25 force/execute at @e[tag=c9_crest] run particle dust{color:[0.1,0.65,0.95],scale:1.5} ~12.5 ~0.2 ~0.4 6.5 0.15 0.3 0 20 force/execute at @e[tag=c9_w1] run particle splash ~12.5 ~0.5 ~1.1 6.5 0.1 0.2 0.1 18 force/execute if score #c9_t c9_wave matches 45 at @e[tag=c9_w1] run particle cloud ~12.5 ~0.5 ~1.2 6.5 0.15 0.3 0.03 35 force/execute if score #c9_t c9_wave matches 5 at @e[tag=c9_w1] run playsound entity.boat.paddle_water ambient @a ~12.5 ~ ~ 3.0 0.6setup #9 Summons a wide <code>block_display</code> stretched 25 blocks across the beach using <code>cyan_stained_glass</code> to act as the main translucent body of the primary rolling wave.loop #3 During ticks 1 to 45 of the 100-tick cycle, the primary wave surges forward and slightly upward so it climbs the sloped sandstone slabs and sand levels smoothly.loop #5 During ticks 56 to 99, the wave reverses direction, sliding back down the beach slope into the ocean before resetting neatly at tick 0.loop #10 Draws a thick line of bright white foam particles along the leading edge of both wave crests as they move up and down the shore.loop #13 Triggers a burst of frothy cloud spray right at tick 45 when the wave hits its highest point on the beach.


Recorded on our own test server: 55 frames at about 9.2 fps. Our image check saw: A tiered sandy beach has water and blue-and-white splash particles surging up the shoreline in waves and then receding back toward the pool.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
To make the waves push players and boats up the beach as they surge, add one extra repeating command block with: /execute if score #c9_t c9_wave matches 1..45 at @e[tag=c9_w1] as @a[dx=24,dy=2,dz=2] at @s run tp @s ~ ~0.05 ~0.13.
/kill @e[tag=c9_ent]/scoreboard objectives remove c9_wave/fill ~-12 ~ ~-10 ~12 ~3 ~12 air/fill ~-12 ~-1 ~-10 ~12 ~-1 ~12 grass_blockYes! Increase the first number in the scale array of the two block_display summon commands (currently 25f) and increase the X spread value (currently 6.5) and X offset (currently ~12.5) in the particle commands.
No. It only uses two persistent block_display entities that move back and forth on a 100-tick loop, so entity counts never grow.
▶Tidal Wave Tsunami Breakwater SimulationSimulationsHard24 cmds
▶Volcanic Caldera Eruption & Pyroclastic FlowSimulationsHard24 cmds
▶Microscopic Bacteriophage Viral InjectionSimulationsHard24 cmds
▶Monumental Dam Spillway Floodgate ReleaseSimulationsHard24 cmds
▶Atmospheric Cloud-Seeding Thunderstorm GenesisSimulationsMedium21 cmds