Build a smooth-gliding medieval portcullis gate in vanilla Minecraft using scaled block display entities, stone brick arches, and impact particle effects.
Machines & MechanismsMedievalBlackWhiteAdventure MapMap MakingDecorationBlock displaysSmooth animation (interpolation)Riding & passengersBlock building (fill/setblock/clone)Sounds21+ commands
Traditional redstone piston gates are limited to clunky one-block steps, but block display entities allow structures to glide smoothly through the air. This creation constructs a stone brick castle archway with a detailed iron portcullis made of heavy horizontal crossbars, thick vertical bars, suspended chains, and bottom spikes.
Driven by a continuous scoreboard timer, the entire gate rises smoothly into the upper wall pocket with metallic grinding particles and slams back down to the ground with a cloud of smoke and debris.
/scoreboard objectives add c9_timer dummy/scoreboard players set #gate c9_timer 0/fill ~-5 ~ ~-2 ~5 ~11 ~2 stone_bricks/fill ~-4 ~9 ~-3 ~4 ~11 ~3 chiseled_stone_bricks/fill ~-3 ~ ~-3 ~3 ~6 ~3 air/fill ~-3 ~6 ~ ~3 ~10 ~ air/summon block_display ~ ~ ~ {Tags:["c9_gate"],teleport_duration:2,block_state:{Name:"minecraft:iron_block"},transformation:{translation:[-3.0f,1.2f,-0.25f],scale:[6.0f,0.45f,0.5f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]},Passengers:[{id:"minecraft:block_display",Tags:["c9_gate_part"],block_state:{Name:"minecraft:iron_block"},transformation:{translation:[-3.0f,3.2f,-0.25f],scale:[6.0f,0.45f,0.5f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}},{id:"minecraft:block_display",Tags:["c9_gate_part"],block_state:{Name:"minecraft:iron_block"},transformation:{translation:[-3.0f,5.2f,-0.25f],scale:[6.0f,0.45f,0.5f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}]}/summon block_display ~ ~ ~ {Tags:["c9_gate"],teleport_duration:2,block_state:{Name:"minecraft:anvil"},transformation:{translation:[-2.6f,0.5f,-0.2f],scale:[0.4f,5.6f,0.4f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]},Passengers:[{id:"minecraft:block_display",Tags:["c9_gate_part"],block_state:{Name:"minecraft:anvil"},transformation:{translation:[-1.4f,0.5f,-0.2f],scale:[0.4f,5.6f,0.4f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}},{id:"minecraft:block_display",Tags:["c9_gate_part"],block_state:{Name:"minecraft:anvil"},transformation:{translation:[-0.2f,0.5f,-0.2f],scale:[0.4f,5.6f,0.4f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}},{id:"minecraft:block_display",Tags:["c9_gate_part"],block_state:{Name:"minecraft:anvil"},transformation:{translation:[1.0f,0.5f,-0.2f],scale:[0.4f,5.6f,0.4f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}},{id:"minecraft:block_display",Tags:["c9_gate_part"],block_state:{Name:"minecraft:anvil"},transformation:{translation:[2.2f,0.5f,-0.2f],scale:[0.4f,5.6f,0.4f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}]}/summon block_display ~ ~ ~ {Tags:["c9_gate"],teleport_duration:2,block_state:{Name:"minecraft:hopper"},transformation:{translation:[-2.7f,0.0f,-0.3f],scale:[0.6f,0.7f,0.6f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]},Passengers:[{id:"minecraft:block_display",Tags:["c9_gate_part"],block_state:{Name:"minecraft:hopper"},transformation:{translation:[-1.5f,0.0f,-0.3f],scale:[0.6f,0.7f,0.6f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}},{id:"minecraft:block_display",Tags:["c9_gate_part"],block_state:{Name:"minecraft:hopper"},transformation:{translation:[-0.3f,0.0f,-0.3f],scale:[0.6f,0.7f,0.6f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}},{id:"minecraft:block_display",Tags:["c9_gate_part"],block_state:{Name:"minecraft:hopper"},transformation:{translation:[0.9f,0.0f,-0.3f],scale:[0.6f,0.7f,0.6f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}},{id:"minecraft:block_display",Tags:["c9_gate_part"],block_state:{Name:"minecraft:hopper"},transformation:{translation:[2.1f,0.0f,-0.3f],scale:[0.6f,0.7f,0.6f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}]}/summon block_display ~ ~ ~ {Tags:["c9_gate"],teleport_duration:2,block_state:{Name:"minecraft:iron_bars",Properties:{east:"true",west:"true"}},transformation:{translation:[-2.55f,5.6f,-0.15f],scale:[0.3f,4.5f,0.3f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]},Passengers:[{id:"minecraft:block_display",Tags:["c9_gate_part"],block_state:{Name:"minecraft:iron_bars",Properties:{east:"true",west:"true"}},transformation:{translation:[2.25f,5.6f,-0.15f],scale:[0.3f,4.5f,0.3f],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 140.. run scoreboard players set #gate c9_timer 0/execute if score #gate c9_timer matches 5..65 as @e[tag=c9_gate] at @s run tp @s ~ ~0.075 ~/execute if score #gate c9_timer matches 75..135 as @e[tag=c9_gate] at @s run tp @s ~ ~-0.075 ~/execute if score #gate c9_timer matches 136 as @e[tag=c9_gate] run tp @s ~ ~ ~/execute if score #gate c9_timer matches 5..65 run particle block{block_state:{Name:"minecraft:stone_bricks"}} ~ ~6 ~ 2.5 0.1 0.2 0.05 5/execute if score #gate c9_timer matches 75..135 run particle dust{color:[0.6,0.6,0.65],scale:1.5} ~ ~6 ~ 2.5 0.2 0.2 0.01 5/execute if score #gate c9_timer matches 5..65 at @e[tag=c9_gate,limit=1] run particle crit ~ ~1.2 ~ 2.2 0.5 0.1 0.05 4/execute if score #gate c9_timer matches 15 run playsound minecraft:block.iron_trapdoor.open block @a ~ ~5 ~ 1.2 0.5/execute if score #gate c9_timer matches 45 run playsound minecraft:block.anvil.step block @a ~ ~5 ~ 1.5 0.6/execute if score #gate c9_timer matches 85 run playsound minecraft:block.iron_trapdoor.open block @a ~ ~5 ~ 1.2 0.5/execute if score #gate c9_timer matches 135 run playsound minecraft:block.anvil.land block @a ~ ~1 ~ 1.2 0.6/execute if score #gate c9_timer matches 135 run particle campfire_cosy_smoke ~ ~0.2 ~ 2.5 0.1 0.3 0.02 35/execute if score #gate c9_timer matches 135 run particle block{block_state:{Name:"minecraft:stone_bricks"}} ~ ~0.2 ~ 2.5 0.1 0.2 0.1 40setup #6 Carves a narrow 1-block thick vertical slot inside the upper stone brick archway so the portcullis has a realistic recess to slide into when raised.setup #7 Summons the three horizontal iron crossbars using a root block_display entity and two passengers. Setting teleport_duration to 2 makes their movement interpolate smoothly between ticks.setup #8 Summons five tall, stretched anvil display entities as the heavy vertical bars of the portcullis.setup #9 Adds five scaled hopper display entities along the bottom edge to act as the pointed iron spikes of the gate.loop #3 During ticks 5 to 65, teleports the four root display entities upward by 0.075 blocks per tick (raising the gate 4.5 blocks in 3 seconds). Passengers follow automatically.loop #5 Snaps the root entities back to the exact origin coordinates at the end of the lowering cycle so floating-point drift never accumulates over time.


Recorded on our own test server: 67 frames at about 9.6 fps. Our image check saw: A custom iron portcullis gate made of display entities with horizontal bars, vertical bars, and bottom spikes smoothly rises into a stone brick archway.
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 gate with a lever instead of running on an automatic loop, remove the first two timer loop commands and replace them with a check for a powered block, such as /execute if block ~-4 ~1 ~-2 lever[powered=true] if score #gate c9_timer matches ..59 run scoreboard players add #gate c9_timer 1 to raise it, and decrement the score when unpowered to lower it.
/kill @e[tag=c9_gate]/kill @e[tag=c9_gate_part]/fill ~-5 ~ ~-3 ~5 ~11 ~3 air/scoreboard objectives remove c9_timerGrouping the gate parts as Passengers on four root entities means we only have to teleport four entities each tick, and all child bars and spikes move in sync without separating.
Block display entities are visual only and have no hitbox. If you want physical collision in survival, you can use /fill to place and remove barrier blocks in the doorway when the timer crosses tick 35 and tick 105.
▶Gothic Cathedral Organ Pipe SymphonyMachines & MechanismsHard22 cmds
▶Self-Folding Damask Steel Katana ForgeMachines & MechanismsHard24 cmds
▶Self-Playing Hurdy-Gurdy Wheel CrankingMachines & MechanismsMedium23 cmds
▶Animated Guillotine with Block DisplaysMachines & MechanismsMedium24 cmds
▶Automated Guillotine ExecutionMachines & MechanismsMedium26 cmds
▶Automated Guillotine TrapMachines & MechanismsMedium24 cmds