Seamless Mechanical Gate

Build a piston-free sci-fi vault gate using block display entities that smoothly unbolt, rotate, and slide apart with steam and spark particle effects.

Java EditionHolograms & Display EntitiesEasy24 commandsTested on a real 26.2 & 26.3 server
A custom mechanical vault gate in a deepslate frame rotating its central lock and sliding open. Download the GIF Video & GIF © www.9minecraft.net

Machines & MechanismsTechnologyIndustrialDarkBlackOrangeWhiteMap MakingAdventure MapDecorationBlock displaysSmooth animation (interpolation)Summoned mobsBlock building (fill/setblock/clone)Sounds21+ commands

Traditional redstone piston doors are fun, but they are restricted to the blocky grid and move in jerky one-block steps. By using block_display entities and transformation interpolation, you can build a heavy mechanical vault gate that slides smoothly at any speed and rotates its central locking mechanism in fluid angles.

In this setup, a deepslate archway holds two massive iron doors and a central copper lock core. Every few seconds, the central lock twists 90 degrees and retracts into the ceiling while the two thick metal panels slide cleanly into the stone pillars, kicking up mechanical sparks, heavy clanks, and steam clouds along the floor.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_t dummy
  2. /fill ~-5 ~ ~-1 ~5 ~7 ~1 minecraft:polished_deepslate
  3. /fill ~-4 ~ ~-1 ~4 ~6 ~1 minecraft:chiseled_deepslate
  4. /fill ~-3 ~ ~-1 ~3 ~5 ~1 minecraft:air
  5. /fill ~-5 ~-1 ~-2 ~5 ~-1 ~2 minecraft:deepslate_tiles
  6. /setblock ~-4 ~6 ~-1 minecraft:sea_lantern
  7. /setblock ~4 ~6 ~-1 minecraft:sea_lantern
  8. /summon minecraft:block_display ~ ~ ~ {Tags:["c9_gate","c9_left"],interpolation_duration:30,block_state:{Name:"minecraft:iron_block"},transformation:{translation:[-3.0f,0.0f,-0.4f],scale:[3.0f,5.0f,0.8f],left_rotation:[0.0f,0.0f,0.0f,1.0f],right_rotation:[0.0f,0.0f,0.0f,1.0f]}}
  9. /summon minecraft:block_display ~ ~ ~ {Tags:["c9_gate","c9_right"],interpolation_duration:30,block_state:{Name:"minecraft:iron_block"},transformation:{translation:[0.0f,0.0f,-0.4f],scale:[3.0f,5.0f,0.8f],left_rotation:[0.0f,0.0f,0.0f,1.0f],right_rotation:[0.0f,0.0f,0.0f,1.0f]}}
  10. /summon minecraft:block_display ~ ~ ~ {Tags:["c9_gate","c9_core"],Glowing:1b,glow_color_override:16755200,interpolation_duration:20,block_state:{Name:"minecraft:chiseled_copper"},transformation:{translation:[-0.75f,1.75f,-0.6f],scale:[1.5f,1.5f,1.2f],left_rotation:[0.0f,0.0f,0.0f,1.0f],right_rotation:[0.0f,0.0f,0.0f,1.0f]}}

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

  1. /scoreboard players add #gate c9_t 1
  2. /execute if score #gate c9_t matches 160.. run scoreboard players set #gate c9_t 0
  3. /execute if score #gate c9_t matches 10 as @e[tag=c9_core] run data merge entity @s {start_interpolation:0,interpolation_duration:15,transformation:{translation:[-0.75f,3.25f,-0.6f],scale:[1.5f,1.5f,1.2f],left_rotation:[0.0f,0.0f,0.7071f,0.7071f],right_rotation:[0.0f,0.0f,0.0f,1.0f]}}
  4. /execute if score #gate c9_t matches 10 run playsound minecraft:block.vault.activate master @a ~ ~2.5 ~ 2 0.8
  5. /execute if score #gate c9_t matches 10 run particle minecraft:electric_spark ~ ~2.5 ~-0.7 0.5 0.5 0.2 0.1 35 force
  6. /execute if score #gate c9_t matches 25 as @e[tag=c9_left] run data merge entity @s {start_interpolation:0,interpolation_duration:30,transformation:{translation:[-4.8f,0.0f,-0.4f],scale:[2.0f,5.0f,0.8f],left_rotation:[0.0f,0.0f,0.0f,1.0f],right_rotation:[0.0f,0.0f,0.0f,1.0f]}}
  7. /execute if score #gate c9_t matches 25 as @e[tag=c9_right] run data merge entity @s {start_interpolation:0,interpolation_duration:30,transformation:{translation:[2.8f,0.0f,-0.4f],scale:[2.0f,5.0f,0.8f],left_rotation:[0.0f,0.0f,0.0f,1.0f],right_rotation:[0.0f,0.0f,0.0f,1.0f]}}
  8. /execute if score #gate c9_t matches 25 run playsound minecraft:block.iron_door.open master @a ~ ~2 ~ 2 0.5
  9. /execute if score #gate c9_t matches 25..55 run particle minecraft:campfire_cosy_smoke ~ ~0.1 ~ 2.5 0.1 0.3 0.01 3 force
  10. /execute if score #gate c9_t matches 90 as @e[tag=c9_left] run data merge entity @s {start_interpolation:0,interpolation_duration:30,transformation:{translation:[-3.0f,0.0f,-0.4f],scale:[3.0f,5.0f,0.8f],left_rotation:[0.0f,0.0f,0.0f,1.0f],right_rotation:[0.0f,0.0f,0.0f,1.0f]}}
  11. /execute if score #gate c9_t matches 90 as @e[tag=c9_right] run data merge entity @s {start_interpolation:0,interpolation_duration:30,transformation:{translation:[0.0f,0.0f,-0.4f],scale:[3.0f,5.0f,0.8f],left_rotation:[0.0f,0.0f,0.0f,1.0f],right_rotation:[0.0f,0.0f,0.0f,1.0f]}}
  12. /execute if score #gate c9_t matches 90 run playsound minecraft:block.iron_door.close master @a ~ ~2 ~ 2 0.5
  13. /execute if score #gate c9_t matches 120 as @e[tag=c9_core] run data merge entity @s {start_interpolation:0,interpolation_duration:15,transformation:{translation:[-0.75f,1.75f,-0.6f],scale:[1.5f,1.5f,1.2f],left_rotation:[0.0f,0.0f,0.0f,1.0f],right_rotation:[0.0f,0.0f,0.0f,1.0f]}}
  14. /execute if score #gate c9_t matches 120 run particle minecraft:wax_on ~ ~2.5 ~-0.7 0.5 0.5 0.2 0.1 30 force

How it works

Frames from the test run

Seamless Mechanical Gate - frame 1Seamless Mechanical Gate - frame 2Seamless Mechanical Gate - frame 3

Recorded on our own test server: 50 frames at about 7.0 fps. Our image check saw: A deepslate archway holds two smooth iron doors with a glowing copper central lock that rotates at an angle before the doors slide open with smoke particles.

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 in the center of a flat open area where you want the gate archway to appear.
  2. Run each command from the Setup list in chat one by one to construct the deepslate frame and summon the three display panels.
  3. Place one repeating command block set to Always Active, and chain 13 chain command blocks (Always Active, Unconditional) behind it.
  4. Paste the 14 Loop commands into the command blocks in order.
  5. Watch the central copper lock twist and rise before the two iron slabs slide into the stone pillars.

Use it with real players

To make the gate open automatically when a player walks up to it instead of running on an endless loop, replace the first two timer commands with proximity checks: use /execute if entity @a[distance=..5] if score #gate c9_t matches ..54 run scoreboard players add #gate c9_t 1 to advance the opening sequence up to tick 55 when someone is near, and set the score to 90 when no player is within 5 blocks so the doors slide shut.

Remove it again 4 commands

  1. /kill @e[tag=c9_gate]
  2. /scoreboard objectives remove c9_t
  3. /fill ~-5 ~ ~-1 ~5 ~7 ~1 minecraft:air
  4. /fill ~-5 ~-1 ~-2 ~5 ~-1 ~2 minecraft:grass_block

FAQ

Can players walk through the gate when it is closed?

Block display entities do not have collision boxes of their own. If you want the closed gate to physically block players, place barrier blocks inside the doorway at tick 120 and replace them with air at tick 25.

Why do we set start_interpolation to 0 every time the door moves?

In Minecraft Java Edition, a display entity only animates smoothly to a new transformation when start_interpolation is explicitly set (usually to 0, meaning start on the current tick) in the same data merge command.

Commands used

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

Similar creations

Join 9Minecraft News & Guides