Hydro-Electric Spillway Floodgate Timer

Ten heavy iron floodgates along a concrete dam wall crank open one by one with warning sirens, releasing foaming cascades into a rising glass basin.

Java EditionMini-games & UtilitiesMedium24 commandsTested on a real 26.2 & 26.3 server
Ten iron floodgates lift along a concrete dam above a water-filled glass basin with particle effects. Download the GIF Video & GIF © www.9minecraft.net

Timers & CountdownsIndustrialWaterTechnologyWhiteBlueRedMini-gameMap MakingDecorationBlock displaysText displaysSmooth animation (interpolation)Riding & passengersBlock building (fill/setblock/clone)Sounds21+ commands

The Hydro-Electric Spillway Floodgate Timer turns a simple countdown into a massive piece of industrial engineering. Ten heavy iron floodgates sit along a towering concrete dam wall above a graduated glass basin. As the timer ticks forward, each floodgate cranks upwards one by one with flashing red warning lights and sirens.

Once the gates lift, foaming cascades of water pour down the spillway face while the water level inside the observation basin smoothly rises to the top before draining out to reset the cycle.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_tick dummy
  2. /fill ~-11 ~ ~-6 ~11 ~12 ~-4 light_gray_concrete
  3. /fill ~-11 ~13 ~-6 ~11 ~13 ~-3 stone_brick_slab
  4. /fill ~-11 ~ ~-3 ~11 ~5 ~5 cyan_stained_glass outline
  5. /fill ~-11 ~ ~-3 ~11 ~ ~5 smooth_stone
  6. /fill ~-10 ~1 ~-2 ~10 ~5 ~4 air
  7. /fill ~-11 ~1 ~5 ~-11 ~5 ~5 sea_lantern
  8. /fill ~11 ~1 ~5 ~11 ~5 ~5 sea_lantern
  9. /summon marker ~-9 ~7 ~-3.4 {Tags:["c9_spawner"]}
  10. /execute at @e[tag=c9_spawner] run summon block_display ~ ~ ~ {Tags:["c9_gate","c9_g1"],transformation:{translation:[-0.4f,0f,0f],scale:[1.2f,3.2f,0.8f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]},block_state:{Name:"minecraft:iron_block"},Passengers:[{id:"minecraft:block_display",Tags:["c9_gate","c9_g2"],transformation:{translation:[1.6f,0f,0f],scale:[1.2f,3.2f,0.8f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]},block_state:{Name:"minecraft:iron_block"}},{id:"minecraft:block_display",Tags:["c9_gate","c9_g3"],transformation:{translation:[3.6f,0f,0f],scale:[1.2f,3.2f,0.8f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]},block_state:{Name:"minecraft:iron_block"}},{id:"minecraft:block_display",Tags:["c9_gate","c9_g4"],transformation:{translation:[5.6f,0f,0f],scale:[1.2f,3.2f,0.8f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]},block_state:{Name:"minecraft:iron_block"}},{id:"minecraft:block_display",Tags:["c9_gate","c9_g5"],transformation:{translation:[7.6f,0f,0f],scale:[1.2f,3.2f,0.8f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]},block_state:{Name:"minecraft:iron_block"}}]}

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

  1. /execute unless entity @e[tag=c9_g6] at @e[tag=c9_spawner] run summon block_display ~10 ~ ~ {Tags:["c9_gate","c9_g6"],transformation:{translation:[-0.4f,0f,0f],scale:[1.2f,3.2f,0.8f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]},block_state:{Name:"minecraft:iron_block"},Passengers:[{id:"minecraft:block_display",Tags:["c9_gate","c9_g7"],transformation:{translation:[1.6f,0f,0f],scale:[1.2f,3.2f,0.8f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]},block_state:{Name:"minecraft:iron_block"}},{id:"minecraft:block_display",Tags:["c9_gate","c9_g8"],transformation:{translation:[3.6f,0f,0f],scale:[1.2f,3.2f,0.8f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]},block_state:{Name:"minecraft:iron_block"}},{id:"minecraft:block_display",Tags:["c9_gate","c9_g9"],transformation:{translation:[5.6f,0f,0f],scale:[1.2f,3.2f,0.8f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]},block_state:{Name:"minecraft:iron_block"}},{id:"minecraft:block_display",Tags:["c9_gate","c9_g10"],transformation:{translation:[7.6f,0f,0f],scale:[1.2f,3.2f,0.8f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]},block_state:{Name:"minecraft:iron_block"}}]}
  2. /execute unless entity @e[tag=c9_water] run summon block_display ~-10 ~1 ~-2 {Tags:["c9_water"],transformation:{translation:[0f,0f,0f],scale:[21f,0.1f,7f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]},block_state:{Name:"minecraft:light_blue_stained_glass"},Passengers:[{id:"minecraft:text_display",Tags:["c9_hud"],transformation:{translation:[10.5f,10.5f,-1.2f],scale:[2.8f,2.8f,2.8f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]},billboard:"fixed",background:1073741824,text:{"text":"SPILLWAY: ACTIVE","color":"aqua","bold":true}}]}
  3. /scoreboard players add #timer c9_tick 1
  4. /execute if score #timer c9_tick matches 170.. run scoreboard players set #timer c9_tick 1
  5. /execute if score #timer c9_tick matches 2 run data merge entity @e[tag=c9_water,limit=1] {interpolation_duration:135,start_interpolation:0,transformation:{translation:[0f,0f,0f],scale:[21f,4.2f,7f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  6. /execute if score #timer c9_tick matches 10..110 as @e[tag=c9_gate,tag=!c9_open,limit=1] run data merge entity @s {Tags:["c9_gate","c9_open"],interpolation_duration:15,start_interpolation:0}
  7. /execute if score #timer c9_tick matches 10..110 as @e[tag=c9_gate,tag=c9_open] run data modify entity @s transformation.translation[1] set value 2.8f
  8. /execute if score #timer c9_tick matches 10..120 run particle dust{color:[1.0,0.2,0.1],scale:2.5} ~ ~13.5 ~-3.2 8 0.1 0.1 0 15 force
  9. /execute if score #timer c9_tick matches 10..145 run particle splash ~ ~8 ~-2.8 8 1.8 0.5 0.3 80 force
  10. /execute if score #timer c9_tick matches 10..145 run particle cloud ~ ~5.5 ~-2.2 8 2.0 0.8 0.05 25 force
  11. /execute if score #timer c9_tick matches 10..145 run particle dripping_water ~ ~9.5 ~-3.0 8 0.3 0.2 0 30 force
  12. /execute if score #timer c9_tick matches 15 run playsound minecraft:block.bell.use master @a ~ ~8 ~ 2 1.8
  13. /execute if score #timer c9_tick matches 150 as @e[tag=c9_gate] run data merge entity @s {Tags:["c9_gate"],interpolation_duration:15,start_interpolation:0}
  14. /execute if score #timer c9_tick matches 151 as @e[tag=c9_gate] run data modify entity @s transformation.translation[1] set value 0.0f

How it works

Frames from the test run

Hydro-Electric Spillway Floodgate Timer - frame 1Hydro-Electric Spillway Floodgate Timer - frame 2Hydro-Electric Spillway Floodgate Timer - frame 3

Recorded on our own test server: 69 frames at about 9.8 fps. Our image check saw: A gray concrete wall with ten white iron floodgates rising sequentially above a glass basin filling with water, accompanied by red, blue, and white particle effects and text reading 'SPILLWAY: ACTIVE'.

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 at least 25x20 blocks wide.
  2. Run the 10 setup commands in order to construct the concrete dam wall, the cyan glass basin, and the first bank of iron floodgates.
  3. Place 14 repeating command blocks (set to Always Active) near the structure.
  4. Paste each of the 14 loop commands into its own repeating command block.
  5. Watch the floodgates crank upward in sequence with warning lights, splashing water particles, and a rising water basin.

Use it with real players

To trigger the floodgate timer manually or link it to a redstone countdown instead of looping automatically, remove loop command 4 and connect a button or redstone clock to set /scoreboard players set #timer c9_tick 1 whenever you want a new spillway cycle to start.

Remove it again 6 commands

  1. /kill @e[tag=c9_gate]
  2. /kill @e[tag=c9_water]
  3. /kill @e[tag=c9_hud]
  4. /kill @e[tag=c9_spawner]
  5. /scoreboard objectives remove c9_tick
  6. /fill ~-11 ~ ~-6 ~11 ~14 ~5 air

FAQ

How do I change how fast the basin fills up?

Adjust the timer reset threshold in loop command 4 and the interpolation_duration value in loop command 5 to match your desired countdown length in ticks (20 ticks = 1 second).

Why are the floodgates made of block_display entities instead of real iron blocks?

Block display entities can smoothly slide upward using transformation interpolation without needing pistons or choppy block replacements.

Commands used

/data/execute/fill/particle/playsound/scoreboard/summon

Similar creations

Join 9Minecraft News & Guides