Build a medieval castle gatehouse over a water moat with a heavy oak drawbridge that smoothly swings down on its hinge and a rising iron portcullis.
Animated BlocksMedievalRoyalOrangeBlueWhiteAdventure MapMap MakingDecorationBlock displaysSmooth animation (interpolation)Block building (fill/setblock/clone)Sounds21+ commands
Traditional redstone piston doors are bulky and move in rigid one-block steps. By combining block_display entities with transformation matrices and smooth interpolation, this command creation builds a stone castle gatehouse over a wide moat where a large wooden drawbridge smoothly rotates 90 degrees downward on its bottom hinge while an iron portcullis slides open.
As the bridge drops across the water, heavy chain winches smoke and spark at the top of the archway, and the bridge slams down over the water with a big splash and dust cloud before raising back up to seal the fortress.
/scoreboard objectives add c9_t dummy/fill ~-6 ~-1 ~-2 ~6 ~-1 ~7 water/fill ~-6 ~ ~-2 ~6 ~9 ~1 stone_bricks/fill ~-2 ~ ~-2 ~2 ~5 ~1 air/fill ~-6 ~10 ~-2 ~6 ~10 ~1 chiseled_stone_bricks/fill ~-3 ~-1 ~-3 ~3 ~-1 ~8 cobblestone/fill ~-3 ~-1 ~2 ~3 ~-1 ~6 water/summon marker ~ ~ ~ {Tags:["c9_ent","c9_ctrl"]}/summon block_display ~ ~ ~1.1 {Tags:["c9_ent","c9_bridge"],Glowing:1b,glow_color_override:16755200,interpolation_duration:45,block_state:{Name:"minecraft:spruce_planks"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-2.5f,0f,-0.2f],scale:[5f,6f,0.4f]}}/summon block_display ~ ~ ~-0.5 {Tags:["c9_ent","c9_port"],Glowing:1b,glow_color_override:11184810,interpolation_duration:45,block_state:{Name:"minecraft:iron_bars",Properties:{east:"true",west:"true"}},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-2.5f,0f,0f],scale:[5f,6f,0.2f]}}/scoreboard players add @e[tag=c9_ctrl] c9_t 1/execute if score @e[tag=c9_ctrl,limit=1] c9_t matches 140.. run scoreboard players set @e[tag=c9_ctrl] c9_t 1/execute if score @e[tag=c9_ctrl,limit=1] c9_t matches 5 run data merge entity @e[tag=c9_bridge,limit=1] {start_interpolation:0,interpolation_duration:45,transformation:{left_rotation:[0.7071f,0f,0f,0.7071f],right_rotation:[0f,0f,0f,1f],translation:[-2.5f,0f,-0.2f],scale:[5f,6f,0.4f]}}/execute if score @e[tag=c9_ctrl,limit=1] c9_t matches 5 run data merge entity @e[tag=c9_port,limit=1] {start_interpolation:0,interpolation_duration:45,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-2.5f,4.8f,0f],scale:[5f,6f,0.2f]}}/execute if score @e[tag=c9_ctrl,limit=1] c9_t matches 75 run data merge entity @e[tag=c9_bridge,limit=1] {start_interpolation:0,interpolation_duration:45,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-2.5f,0f,-0.2f],scale:[5f,6f,0.4f]}}/execute if score @e[tag=c9_ctrl,limit=1] c9_t matches 75 run data merge entity @e[tag=c9_port,limit=1] {start_interpolation:0,interpolation_duration:45,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-2.5f,0f,0f],scale:[5f,6f,0.2f]}}/execute if score @e[tag=c9_ctrl,limit=1] c9_t matches 5..50 run particle flame ~-2.3 ~5.5 ~1.3 0.1 0.1 0.1 0.03 3/execute if score @e[tag=c9_ctrl,limit=1] c9_t matches 5..50 run particle flame ~2.3 ~5.5 ~1.3 0.1 0.1 0.1 0.03 3/execute if score @e[tag=c9_ctrl,limit=1] c9_t matches 75..120 run particle crit ~-2.3 ~5.5 ~1.3 0.2 0.2 0.2 0.15 5/execute if score @e[tag=c9_ctrl,limit=1] c9_t matches 75..120 run particle crit ~2.3 ~5.5 ~1.3 0.2 0.2 0.2 0.15 5/execute if score @e[tag=c9_ctrl,limit=1] c9_t matches 50 run particle splash ~ ~0.2 ~4.0 2.0 0.2 2.0 0.3 120/execute if score @e[tag=c9_ctrl,limit=1] c9_t matches 50 run particle cloud ~ ~0.3 ~6.5 1.8 0.2 0.5 0.05 35/execute if score @e[tag=c9_ctrl,limit=1] c9_t matches 50 run playsound minecraft:entity.zombie.break_wooden_door master @a ~ ~ ~ 1.0 0.6/execute if score @e[tag=c9_ctrl,limit=1] c9_t matches 120 run playsound minecraft:block.anvil.place master @a ~ ~ ~ 0.9 0.7setup #9 Summons the wooden drawbridge as a single scaled <code>block_display</code> entity positioned at the bottom hinge (<code>~ ~ ~1.1</code>). Its translation offsets the block geometry by <code>-2.5</code> on X so it centers on the 5-block archway while pivoting around its bottom edge.loop #3 At tick 5, applies a 90-degree X-axis quaternion rotation (<code>left_rotation:[0.7071f,0f,0f,0.7071f]</code>) with a 45-tick <code>interpolation_duration</code>, making the upright bridge smoothly swing down flat across the moat.loop #4 Simultaneously raises the inner <code>iron_bars</code> portcullis display entity by 4.8 blocks on the Y axis into the stone gatehouse wall.loop #11 On tick 50, right when the 45-tick downward swing finishes, triggers water splash particles across the moat and a dust cloud where the end of the bridge lands on the cobblestone bank.


Recorded on our own test server: 67 frames at about 9.4 fps. Our image check saw: A wooden drawbridge smoothly rotates down across a water moat from a stone brick wall while an iron portcullis slides upward.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
To let players control the drawbridge with a lever instead of running on an automatic loop, remove the c9_t timer reset and split the loop into two impulse command block chains wired to a lever: trigger the tick 5 data merge commands when the lever turns on to lower the bridge, and trigger the tick 75 data merge commands when the lever turns off to raise it back up. If you want players to actually walk across the lowered display bridge, add /fill ~-2 ~-1 ~2 ~2 ~-1 ~6 barrier when the bridge hits tick 50 and replace the barriers with water when raising begins at tick 75.
/kill @e[tag=c9_ent]/scoreboard objectives remove c9_t/fill ~-6 ~ ~-3 ~6 ~10 ~8 air/fill ~-6 ~-1 ~-3 ~6 ~-1 ~8 grass_blockA block_display rotates around its entity origin. Because the entity is summoned at the bottom floor level (~ ~ ~1.1) and its translation leaves Y at 0 while scaling Y to 6, the entire 6-block tall bridge extends upward from the pivot point and swings down like a real hinge when left_rotation is applied.
Display entities are purely visual and do not have collision boxes of their own. To walk across, either place invisible barrier blocks at water level when the bridge finishes lowering or summon shulkers riding markers along the bridge span.
▶Castle Gate Opening SequenceAnimated BlocksEasy24 cmds
▶Colossal Loot Chest Display FountainAnimated BlocksMedium23 cmds
▶Crystal Chandelier Domino ShatterAnimated BlocksHard22 cmds
▶Morphing Banquet HallAnimated BlocksHard23 cmds
▶Waving Tricolor Banner DisplayAnimated BlocksEasy24 cmds
▶Plummeting Colossal ChandelierAnimated BlocksMedium24 cmds