Build a cinematic sliding deepslate dungeon gate with glowing gilded locking bars that glide smoothly into heavy stone frames using display entities.
Machines & MechanismsMedievalDarkBlackGoldCyanAdventure MapMap MakingCinematicBlock displaysSmooth animation (interpolation)Block building (fill/setblock/clone)21+ commands
Traditional piston doors are blocky and noisy, but block display entities let you create cinematic sliding gates that glide smoothly into stone frames. This command creation builds a monolithic deepslate dungeon archway at the centre of the stage with two massive stone slabs and heavy gilded blackstone locking bars.
As the cycle runs, the glowing golden locks unlatch and slide outward with a burst of soul fire particles. Moments later, the heavy chiseled deepslate doors rumble open into the side pillars, kicking up clouds of stone dust and smoke before sealing shut again.
/scoreboard objectives add c9_timer dummy/scoreboard players set #gate c9_timer 0/fill ~-6 ~ ~-1 ~6 ~6 ~1 polished_deepslate/fill ~-3 ~ ~-1 ~3 ~4 ~1 air/fill ~-5 ~ ~-2 ~-5 ~6 ~2 deepslate_brick_wall/fill ~5 ~ ~-2 ~5 ~6 ~2 deepslate_brick_wall/setblock ~-4 ~5 ~-2 soul_lantern/setblock ~4 ~5 ~-2 soul_lantern/summon block_display ~ ~ ~ {Tags:["c9_gate","c9_left_door"],block_state:{Name:"minecraft:chiseled_deepslate"},transformation:{translation:[-3.0f,0.0f,-0.4f],scale:[3.0f,5.0f,0.8f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}/summon block_display ~ ~ ~ {Tags:["c9_gate","c9_right_door"],block_state:{Name:"minecraft:chiseled_deepslate"},transformation:{translation:[0.0f,0.0f,-0.4f],scale:[3.0f,5.0f,0.8f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}/execute unless entity @e[tag=c9_lock_top] run summon block_display ~ ~ ~ {Tags:["c9_gate","c9_lock_top"],Glowing:1b,glow_color_override:16755200,block_state:{Name:"minecraft:gilded_blackstone"},transformation:{translation:[-1.5f,2.8f,-0.6f],scale:[3.0f,0.6f,1.2f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}/execute unless entity @e[tag=c9_lock_bot] run summon block_display ~ ~ ~ {Tags:["c9_gate","c9_lock_bot"],Glowing:1b,glow_color_override:16755200,block_state:{Name:"minecraft:gilded_blackstone"},transformation:{translation:[-1.5f,1.2f,-0.6f],scale:[3.0f,0.6f,1.2f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}/scoreboard players add #gate c9_timer 1/execute if score #gate c9_timer matches 160.. run scoreboard players set #gate c9_timer 0/execute if score #gate c9_timer matches 10 as @e[tag=c9_lock_top] run data merge entity @s {start_interpolation:0,interpolation_duration:15,transformation:{translation:[-4.5f,2.8f,-0.6f],scale:[3.0f,0.6f,1.2f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}/execute if score #gate c9_timer matches 10 as @e[tag=c9_lock_bot] run data merge entity @s {start_interpolation:0,interpolation_duration:15,transformation:{translation:[1.5f,1.2f,-0.6f],scale:[3.0f,0.6f,1.2f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}/execute if score #gate c9_timer matches 10..25 run particle soul_fire_flame ~ ~2.3 ~-0.7 1.5 0.8 0.2 0.02 6 force/execute if score #gate c9_timer matches 28 as @e[tag=c9_left_door] run data merge entity @s {start_interpolation:0,interpolation_duration:40,transformation:{translation:[-5.9f,0.0f,-0.4f],scale:[3.0f,5.0f,0.8f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}/execute if score #gate c9_timer matches 28 as @e[tag=c9_right_door] run data merge entity @s {start_interpolation:0,interpolation_duration:40,transformation:{translation:[2.9f,0.0f,-0.4f],scale:[3.0f,5.0f,0.8f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}/execute if score #gate c9_timer matches 28..68 run particle block{block_state:{Name:"minecraft:deepslate"}} ~ ~0.2 ~ 2.5 0.2 0.6 0.1 15 force/execute if score #gate c9_timer matches 28..68 run particle campfire_cosy_smoke ~ ~0.1 ~ 2.2 0.1 0.5 0.01 4 force/execute if score #gate c9_timer matches 100 as @e[tag=c9_left_door] run data merge entity @s {start_interpolation:0,interpolation_duration:35,transformation:{translation:[-3.0f,0.0f,-0.4f],scale:[3.0f,5.0f,0.8f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}/execute if score #gate c9_timer matches 100 as @e[tag=c9_right_door] run data merge entity @s {start_interpolation:0,interpolation_duration:35,transformation:{translation:[0.0f,0.0f,-0.4f],scale:[3.0f,5.0f,0.8f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}/execute if score #gate c9_timer matches 138 run kill @e[tag=c9_lock_top,limit=1]setup #9 Summons the left half of the dungeon gate as a single <code>block_display</code> entity scaled up to 3 blocks wide, 5 blocks tall, and 0.8 blocks thick.loop #1 Ensures the top gilded blackstone locking bar is present at the start of the cycle, applying an orange glow override (<code>16755200</code>) so the locking mechanism stands out against the dark deepslate.loop #5 At 10 ticks, merges a new transformation into the top locking bar with an <code>interpolation_duration</code> of 15 ticks, sliding it smoothly to the left before the main doors begin moving.loop #8 At 28 ticks, slides the massive left door slab into the surrounding deepslate frame over 40 ticks (2 seconds) for a heavy, cinematic stone motion.loop #12 At 100 ticks, interpolates the left and right door slabs back to their closed centre positions so the animation loops seamlessly.


Recorded on our own test server: 60 frames at about 9.9 fps. Our image check saw: A deepslate stone archway has two large stone door slabs and two glowing gold-outlined blackstone bars that slide horizontally to lock and unlock the gate with smoke and soul fire particles.
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 gate open only when a player approaches instead of looping on a timer, replace the timer increment in loop command 3 with /execute if entity @a[distance=..6] if score #gate c9_timer matches ..68 run scoreboard players add #gate c9_timer 1, and add a second command that resets or reverses the timer when no player is within 6 blocks. You can also place barrier blocks inside the doorway while closed and clear them with /fill once c9_timer reaches 50.
/kill @e[tag=c9_gate]/fill ~-6 ~ ~-2 ~6 ~6 ~2 air/scoreboard objectives remove c9_timerYes, block_display entities are visual only and do not have collision boxes. If you want to block players while the gate is shut, fill the doorway with barrier blocks when the gate closes and replace them with air when it opens.
Change the interpolation_duration value in loop commands 8 and 9. Higher numbers (like 80) make the stone slabs move more slowly, while lower numbers (like 20) make them snap open quickly.
▶Gothic Cathedral Organ Pipe SymphonyMachines & MechanismsHard22 cmds
▶Animated Guillotine with Block DisplaysMachines & MechanismsMedium24 cmds
▶Automated Guillotine ExecutionMachines & MechanismsMedium26 cmds
▶Nether Drawbridge with Diagonal ChainsMachines & MechanismsMedium24 cmds
▶Animated Falling BladeMachines & MechanismsMedium26 cmds
▶Gothic Clocktower TransformationMachines & MechanismsHard24 cmds