Animated Medieval Portcullis Gate with Display Entities

Build a smooth-gliding medieval portcullis gate in vanilla Minecraft using scaled block display entities, stone brick arches, and impact particle effects.

Java EditionHolograms & Display EntitiesEasy24 commandsTested on a real 26.2 & 26.3 server
A custom iron portcullis gate smoothly rises upward inside a stone brick castle archway. Download the GIF Video & GIF © www.9minecraft.net

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.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_timer dummy
  2. /scoreboard players set #gate c9_timer 0
  3. /fill ~-5 ~ ~-2 ~5 ~11 ~2 stone_bricks
  4. /fill ~-4 ~9 ~-3 ~4 ~11 ~3 chiseled_stone_bricks
  5. /fill ~-3 ~ ~-3 ~3 ~6 ~3 air
  6. /fill ~-3 ~6 ~ ~3 ~10 ~ air
  7. /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]}}]}
  8. /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]}}]}
  9. /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]}}]}
  10. /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]}}]}

2. Loop - one repeating command block each (Always Active) 14 commands

  1. /scoreboard players add #gate c9_timer 1
  2. /execute if score #gate c9_timer matches 140.. run scoreboard players set #gate c9_timer 0
  3. /execute if score #gate c9_timer matches 5..65 as @e[tag=c9_gate] at @s run tp @s ~ ~0.075 ~
  4. /execute if score #gate c9_timer matches 75..135 as @e[tag=c9_gate] at @s run tp @s ~ ~-0.075 ~
  5. /execute if score #gate c9_timer matches 136 as @e[tag=c9_gate] run tp @s ~ ~ ~
  6. /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
  7. /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
  8. /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
  9. /execute if score #gate c9_timer matches 15 run playsound minecraft:block.iron_trapdoor.open block @a ~ ~5 ~ 1.2 0.5
  10. /execute if score #gate c9_timer matches 45 run playsound minecraft:block.anvil.step block @a ~ ~5 ~ 1.5 0.6
  11. /execute if score #gate c9_timer matches 85 run playsound minecraft:block.iron_trapdoor.open block @a ~ ~5 ~ 1.2 0.5
  12. /execute if score #gate c9_timer matches 135 run playsound minecraft:block.anvil.land block @a ~ ~1 ~ 1.2 0.6
  13. /execute if score #gate c9_timer matches 135 run particle campfire_cosy_smoke ~ ~0.2 ~ 2.5 0.1 0.3 0.02 35
  14. /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 40

How it works

Frames from the test run

Animated Medieval Portcullis Gate with Display Entities - frame 1Animated Medieval Portcullis Gate with Display Entities - frame 2Animated Medieval Portcullis Gate with Display Entities - frame 3

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.

Build it in your world

  1. Stand at the center of a flat building area where you want your castle gatehouse to appear.
  2. Run the 10 setup commands in order to build the stone brick archway and summon the multi-part display entity portcullis.
  3. Place a repeating command block set to Always Active at the exact same center position (or wrap your loop commands with execute positioned at the gate center).
  4. Chain the 14 loop commands into repeating or chain command blocks so they run every single tick.
  5. Watch the portcullis smoothly winch up into the stone recess and slam shut with dust and sound effects.

Use it with real players

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.

Remove it again 4 commands

  1. /kill @e[tag=c9_gate]
  2. /kill @e[tag=c9_gate_part]
  3. /fill ~-5 ~ ~-3 ~5 ~11 ~3 air
  4. /scoreboard objectives remove c9_timer

FAQ

Why use Passengers on the block display entities?

Grouping 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.

Can players walk through the portcullis when it is closed?

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.

Commands used

/execute/fill/particle/playsound/scoreboard/summon/tp

Similar creations

Join 9Minecraft News & Guides