Build a freestanding stone and timber doorway with a custom block display door that turns its golden handle and swings open smoothly on hinges.
Animated BlocksMedievalOrangeGoldWhiteDecorationMap MakingAdventure MapParticlesBlock displaysArmor standsSmooth animation (interpolation)Scoreboard timersExecute chainsRiding & passengersSummoned mobsBlock building (fill/setblock/clone)Sounds21+ commands
Traditional Minecraft doors snap instantaneously between open and closed states on a rigid block grid. This command creation combines real stone and timber architecture with custom block display entities to build a freestanding doorway that swings smoothly on its hinges.
Flanked by two warm hanging lanterns, the custom wooden door features a recessed spruce panel, a glowing stained-glass window, and an animated gold handle that twists downward right before the door glides open to reveal a shimmering portal aura inside the frame.
/scoreboard objectives add c9_door dummy/fill ~-2 ~-1 ~-2 ~2 ~-1 ~2 minecraft:stone_bricks/fill ~-1 ~ ~ ~-1 ~2 ~ minecraft:dark_oak_log/fill ~1 ~ ~ ~1 ~2 ~ minecraft:dark_oak_log/setblock ~-1 ~ ~ minecraft:chiseled_stone_bricks/setblock ~1 ~ ~ minecraft:chiseled_stone_bricks/fill ~-1 ~3 ~ ~1 ~3 ~ minecraft:dark_oak_log[axis=x]/fill ~-1 ~3 ~-1 ~1 ~3 ~1 minecraft:stone_brick_slab[type=bottom] keep/setblock ~-1 ~2 ~1 minecraft:lantern[hanging=true]/summon minecraft:armor_stand ~-0.5 ~ ~ {Tags:["c9_frame_root"],Invisible:1b,Marker:1b,NoGravity:1b,Passengers:[{id:"minecraft:block_display",Tags:["c9_frame"],brightness:{sky:15,block:15},block_state:{Name:"minecraft:lantern",Properties:{hanging:"true"}},transformation:{translation:[1.0f,2.0f,1.0f],left_rotation:[0f,0f,0f,1f],scale:[1.0f,1.0f,1.0f],right_rotation:[0f,0f,0f,1f]}},{id:"minecraft:block_display",Tags:["c9_door"],teleport_duration:24,block_state:{Name:"minecraft:dark_oak_planks"},transformation:{translation:[0.0f,0.0f,-0.08f],left_rotation:[0f,0f,0f,1f],scale:[1.0f,3.0f,0.16f],right_rotation:[0f,0f,0f,1f]}},{id:"minecraft:block_display",Tags:["c9_door"],teleport_duration:24,block_state:{Name:"minecraft:spruce_planks"},transformation:{translation:[0.08f,0.12f,-0.1f],left_rotation:[0f,0f,0f,1f],scale:[0.84f,2.76f,0.2f],right_rotation:[0f,0f,0f,1f]}},{id:"minecraft:block_display",Tags:["c9_door"],teleport_duration:24,brightness:{sky:15,block:15},block_state:{Name:"minecraft:orange_stained_glass"},transformation:{translation:[0.2f,1.65f,-0.12f],left_rotation:[0f,0f,0f,1f],scale:[0.6f,0.95f,0.24f],right_rotation:[0f,0f,0f,1f]}},{id:"minecraft:block_display",Tags:["c9_door","c9_knob"],teleport_duration:24,interpolation_duration:5,brightness:{sky:15,block:15},block_state:{Name:"minecraft:gold_block"},transformation:{translation:[0.76f,1.25f,-0.16f],left_rotation:[0f,0f,0f,1f],scale:[0.16f,0.1f,0.32f],right_rotation:[0f,0f,0f,1f]}}]}/execute as @e[tag=c9_door] run ride @s dismount/scoreboard players add #t c9_door 1/execute if score #t c9_door matches 101.. run scoreboard players set #t c9_door 1/execute if score #t c9_door matches 15 as @e[tag=c9_knob] run data merge entity @s {start_interpolation:0,transformation:{translation:[0.76f,1.22f,-0.16f],left_rotation:[0.0f,0.0f,-0.342f,0.9397f],scale:[0.16f,0.1f,0.32f],right_rotation:[0.0f,0.0f,0.0f,1.0f]}}/execute if score #t c9_door matches 20 as @e[tag=c9_door] at @s run tp @s ~ ~ ~ -105 0/execute if score #t c9_door matches 20 run playsound minecraft:block.wooden_door.open master @a ~ ~ ~ 1.0 0.95/execute if score #t c9_door matches 45 as @e[tag=c9_knob] run data merge entity @s {start_interpolation:0,transformation:{translation:[0.76f,1.25f,-0.16f],left_rotation:[0.0f,0.0f,0.0f,1.0f],scale:[0.16f,0.1f,0.32f],right_rotation:[0.0f,0.0f,0.0f,1.0f]}}/execute if score #t c9_door matches 65 as @e[tag=c9_door] at @s run tp @s ~ ~ ~ 0 0/execute if score #t c9_door matches 89 run playsound minecraft:block.wooden_door.close master @a ~ ~ ~ 1.0 0.95/execute if score #t c9_door matches 20..44 run particle minecraft:dust{color:[1.0,0.78,0.2],scale:1.2} ~ ~1.5 ~-0.3 0.35 0.9 0.35 0 4 normal/execute if score #t c9_door matches 65..89 run particle minecraft:dust{color:[0.3,0.85,1.0],scale:1.1} ~ ~1.5 ~-0.3 0.35 0.9 0.35 0 3 normal/execute if score #t c9_door matches 40..66 run particle minecraft:end_rod ~ ~1.5 ~ 0.3 0.9 0.25 0.01 1 normal/particle minecraft:flame ~-1.0 ~2.35 ~1.5 0.02 0.03 0.02 0.003 1 normal/particle minecraft:flame ~1.0 ~2.35 ~1.5 0.02 0.03 0.02 0.003 1 normalsetup #10 Summons an anchor armor stand at the left hinge coordinate (<code>~-0.5 ~ ~</code>) carrying the four parts of the door as passengers. Every door part has <code>teleport_duration:24</code> so rotation changes interpolate smoothly over 1.2 seconds.loop #1 Immediately dismounts the <code>c9_door</code> display entities at the exact hinge coordinate so they can rotate freely using their own entity yaw while staying anchored to the hinge point.loop #4 At tick 15, twists the gold door handle downward by applying a quaternion Z-rotation (<code>left_rotation:[0.0f,0.0f,-0.342f,0.9397f]</code>) over 5 ticks before the door begins to swing.loop #5 At tick 20, rotates all four door display entities to yaw <code>-105</code>. Because their origin sits on the left hinge and <code>teleport_duration</code> is set to 24, the entire door swings wide open as one solid piece.loop #8 At tick 65, rotates all door display parts back to yaw <code>0</code>, smoothly closing the door flush with the timber doorframe.


Recorded on our own test server: 59 frames at about 9.8 fps. Our image check saw: A freestanding stone and wood doorway flanked by lanterns with a custom block-display door swinging open and closed while emitting white 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 door open automatically whenever a player walks near it instead of running on a timer, replace the scoreboard timer commands with proximity checks: run /execute if entity @a[distance=..3.5] as @e[tag=c9_door] at @s run tp @s ~ ~ ~ -105 0 to swing it open when a player approaches, and /execute unless entity @a[distance=..3.5] as @e[tag=c9_door] at @s run tp @s ~ ~ ~ 0 0 to close it when they walk away.
/kill @e[tag=c9_door]/kill @e[tag=c9_frame]/kill @e[tag=c9_frame_root]/fill ~-2 ~-1 ~-2 ~2 ~3 ~2 minecraft:air/fill ~-2 ~-1 ~-2 ~2 ~-1 ~2 minecraft:grass_block/scoreboard objectives remove c9_doorAll four block_display entities are summoned and dismounted at the exact same hinge coordinate (~-0.5 ~ ~) and offset outward using their transformation translation. When rotated with /tp, they pivot around that shared hinge origin.
Yes! Block display entities do not have solid collision boxes, so players can walk right through the doorway while the door swings open.
/data/execute/fill/particle/playsound/ride/scoreboard/setblock/summon/tp
▶Shattered Sword Reforging RitualAnimated BlocksMedium24 cmds
▶Ancient Shrine GateAnimated BlocksMedium26 cmds
▶Automated Blueprint to Building ExtruderAnimated BlocksExpert24 cmds
▶Automated Castle ConstructionAnimated BlocksHard19 cmds
▶Block Display MiniaturizerAnimated BlocksMedium24 cmds
▶Boss Arena Gate RevealAnimated BlocksMedium24 cmds