Build a smooth spruce and gold castle gate in Minecraft Java Edition using block_display entities and transformation interpolation instead of bulky redstone.
Machines & MechanismsMedievalRoyalGoldOrangeMap MakingAdventure MapDecorationBlock displaysArmor standsSmooth animation (interpolation)Riding & passengersBlock building (fill/setblock/clone)Glowing outlines21+ commands
Traditional redstone piston doors move one rigid block at a time and need large circuits hidden behind your walls. By using block_display entities and transformation interpolation, this heavy spruce and gold castle gate parts down the middle and slides smoothly into the stone archway in a single fluid motion.
In this self-running demo, an armored guard approaches the gate, triggering the two halves to glide open with golden dust particles and sound effects before sliding shut again once the guard passes through.
/scoreboard objectives add c9_door dummy/fill ~-5 ~-1 ~-2 ~5 ~-1 ~2 stone_bricks/fill ~-5 ~ ~-1 ~5 ~5 ~1 stone_bricks/fill ~-4 ~5 ~-1 ~4 ~5 ~1 chiseled_stone_bricks/fill ~-2 ~ ~-1 ~1 ~3 ~1 air/summon marker ~ ~ ~ {Tags:["c9_door","c9_ctrl"]}/summon armor_stand ~-0.5 ~ ~3.5 {Tags:["c9_door","c9_actor"],NoGravity:1b,Glowing:1b,ShowArms:1b,Rotation:[180f,0f],equipment:{head:{id:"minecraft:golden_helmet",count:1},chest:{id:"minecraft:iron_chestplate",count:1},legs:{id:"minecraft:iron_leggings",count:1},feet:{id:"minecraft:iron_boots",count:1},mainhand:{id:"minecraft:iron_sword",count:1}}}/summon block_display ~-2 ~ ~-0.4 {Tags:["c9_door","c9_left"],interpolation_duration:25,block_state:{Name:"minecraft:stripped_spruce_wood"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[2f,4f,0.8f]},Passengers:[{id:"minecraft:block_display",Tags:["c9_door","c9_left_trim"],interpolation_duration:25,block_state:{Name:"minecraft:gold_block"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[1.55f,1.6f,-0.05f],scale:[0.35f,0.8f,0.9f]}}]}/summon block_display ~ ~ ~-0.4 {Tags:["c9_door","c9_right"],interpolation_duration:25,block_state:{Name:"minecraft:stripped_spruce_wood"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[2f,4f,0.8f]},Passengers:[{id:"minecraft:block_display",Tags:["c9_door","c9_right_trim"],interpolation_duration:25,block_state:{Name:"minecraft:gold_block"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0.1f,1.6f,-0.05f],scale:[0.35f,0.8f,0.9f]}}]}/execute as @e[tag=c9_ctrl] run scoreboard players add @s c9_door 1/execute as @e[tag=c9_ctrl,scores={c9_door=140..}] run scoreboard players set @s c9_door 0/execute if entity @e[tag=c9_ctrl,scores={c9_door=1..35}] as @e[tag=c9_actor] at @s run tp @s ~ ~ ~-0.2 180 0/execute if entity @e[tag=c9_ctrl,scores={c9_door=71..105}] as @e[tag=c9_actor] at @s run tp @s ~ ~ ~0.2 0 0/execute if entity @e[tag=c9_ctrl,scores={c9_door=8}] as @e[tag=c9_left] run data merge entity @s {start_interpolation:0,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-1.9f,0f,0f],scale:[2f,4f,0.8f]}}/execute if entity @e[tag=c9_ctrl,scores={c9_door=8}] as @e[tag=c9_left_trim] run data merge entity @s {start_interpolation:0,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.35f,1.6f,-0.05f],scale:[0.35f,0.8f,0.9f]}}/execute if entity @e[tag=c9_ctrl,scores={c9_door=8}] as @e[tag=c9_right] run data merge entity @s {start_interpolation:0,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[1.9f,0f,0f],scale:[2f,4f,0.8f]}}/execute if entity @e[tag=c9_ctrl,scores={c9_door=8}] as @e[tag=c9_right_trim] run data merge entity @s {start_interpolation:0,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[2.0f,1.6f,-0.05f],scale:[0.35f,0.8f,0.9f]}}/execute if entity @e[tag=c9_ctrl,scores={c9_door=85}] as @e[tag=c9_left] run data merge entity @s {start_interpolation:0,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[2f,4f,0.8f]}}/execute if entity @e[tag=c9_ctrl,scores={c9_door=85}] as @e[tag=c9_left_trim] run data merge entity @s {start_interpolation:0,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[1.55f,1.6f,-0.05f],scale:[0.35f,0.8f,0.9f]}}/execute if entity @e[tag=c9_ctrl,scores={c9_door=85}] as @e[tag=c9_right] run data merge entity @s {start_interpolation:0,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[2f,4f,0.8f]}}/execute if entity @e[tag=c9_ctrl,scores={c9_door=85}] as @e[tag=c9_right_trim] run data merge entity @s {start_interpolation:0,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0.1f,1.6f,-0.05f],scale:[0.35f,0.8f,0.9f]}}setup #9 Summons the left half of the gate as a stripped spruce wood block_display scaled to 2x4x0.8 blocks, carrying a gold block passenger for the handle trim. Its interpolation_duration is set to 25 ticks (1.25 seconds).loop #6 At tick 8, updates the left door panel's translation to -1.9 on the X axis and sets start_interpolation to 0, causing the client to glide the panel smoothly into the left stone wall over 25 ticks.loop #10 At tick 85, resets the translation back to 0 so the door panels smoothly slide back together to close the archway.


Recorded on our own test server: 66 frames at about 9.4 fps. Our image check saw: An armored figure walks through a stone brick archway as a spruce and gold double door slides smoothly into the surrounding walls.
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 real player walks near it instead of using the demo timer and armor stand, skip summoning c9_actor and replace the scoreboard condition if entity @e[tag=c9_ctrl,scores={c9_door=8}] with if entity @a[distance=..4] for the opening commands, and unless entity @a[distance=..4] for the closing commands. You can also place and clear barrier blocks inside the doorway so players cannot walk through while the gate is shut.
/kill @e[tag=c9_door]/fill ~-5 ~-1 ~-2 ~5 ~5 ~2 air/fill ~-5 ~-1 ~-2 ~5 ~-1 ~2 grass_block/scoreboard objectives remove c9_doorYes, block_display entities do not have collision boxes of their own. If you want physical collision in survival or adventure maps, fill the doorway with barrier blocks when the door closes and replace them with air when it opens.
Change the interpolation_duration value on the block_display entities in the setup commands. A value of 25 takes 1.25 seconds (25 ticks); lower numbers open faster and higher numbers move slower.
▶Automated Pottery Wheel Clay SculptorMachines & MechanismsMedium21 cmds
▶Giant Block Clock TowerMachines & MechanismsMedium24 cmds
▶Victorian Carousel of Mythical BeastsMachines & MechanismsHard24 cmds
▶Victorian Phonograph Soundwave VisualizerMachines & MechanismsMedium24 cmds
▶Gothic Cathedral Organ Pipe SymphonyMachines & MechanismsHard22 cmds
▶Holographic Casino Roulette Ball SpinMachines & MechanismsMedium20 cmds