Seamless Mechanical Airlock with Block Displays

Build a heavy deepslate and copper airlock door that glides smoothly open and closed using block display entities and transformation interpolation.

Java EditionHolograms & Display EntitiesEasy24 commandsTested on a real 26.2 & 26.3 server
A custom copper and stone airlock door smoothly glides open with a glowing central lock. Download the GIF Video & GIF © www.9minecraft.net

Machines & MechanismsTechnologyIndustrialBlackOrangeCyanMap MakingAdventure MapDecorationBlock displaysSmooth animation (interpolation)Block building (fill/setblock/clone)21+ commands

Traditional redstone piston doors are chunky and noisy, moving only one full block at a time. Using Minecraft's block_display entities and transformation interpolation, you can build a heavy stone and copper airlock whose panels glide seamlessly into the surrounding frame.

In this setup, a five-block wide doorway is sealed by four interlocking panels and a glowing central locking core. A repeating scoreboard timer drives the cycle automatically: the central lock twists and retracts upward, steam and sparks burst from the seam, and the heavy doors slide smoothly open and closed without being killed or reset.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_timer dummy
  2. /fill ~-5 ~ ~-2 ~5 ~6 ~2 deepslate_tiles
  3. /fill ~-4 ~1 ~-2 ~4 ~5 ~2 chiseled_copper
  4. /fill ~-2 ~1 ~-2 ~2 ~4 ~2 air
  5. /fill ~-5 ~ ~-3 ~5 ~ ~3 polished_deepslate
  6. /fill ~-2 ~ ~-1 ~2 ~ ~1 iron_block
  7. /setblock ~-3 ~5 ~-2 ochre_froglight
  8. /setblock ~3 ~5 ~-2 ochre_froglight
  9. /setblock ~ ~5 ~-2 verdant_froglight
  10. /summon marker ~ ~ ~ {Tags:["c9_airlock","c9_ctrl"]}

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

  1. /execute unless entity @e[tag=c9_L1] run summon block_display ~ ~1 ~ {Tags:["c9_airlock","c9_L1"],brightness:{sky:15,block:15},interpolation_duration:30,block_state:{Name:"minecraft:polished_deepslate"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1.3f,4.0f,1.2f],translation:[-2.5f,0.0f,-0.6f]}}
  2. /execute unless entity @e[tag=c9_L2] run summon block_display ~ ~1 ~ {Tags:["c9_airlock","c9_L2"],brightness:{sky:15,block:15},interpolation_duration:30,block_state:{Name:"minecraft:waxed_copper_block"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1.3f,4.0f,0.9f],translation:[-1.3f,0.0f,-0.45f]}}
  3. /execute unless entity @e[tag=c9_R2] run summon block_display ~ ~1 ~ {Tags:["c9_airlock","c9_R2"],brightness:{sky:15,block:15},interpolation_duration:30,block_state:{Name:"minecraft:waxed_copper_block"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1.3f,4.0f,0.9f],translation:[0.0f,0.0f,-0.45f]}}
  4. /execute unless entity @e[tag=c9_R1] run summon block_display ~ ~1 ~ {Tags:["c9_airlock","c9_R1"],brightness:{sky:15,block:15},interpolation_duration:30,block_state:{Name:"minecraft:polished_deepslate"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1.3f,4.0f,1.2f],translation:[1.2f,0.0f,-0.6f]}}
  5. /execute unless entity @e[tag=c9_bolt] run summon block_display ~ ~1 ~ {Tags:["c9_airlock","c9_bolt"],Glowing:1b,glow_color_override:16755200,brightness:{sky:15,block:15},interpolation_duration:20,block_state:{Name:"minecraft:sea_lantern"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.9f,1.2f,1.4f],translation:[-0.45f,1.4f,-0.7f]}}
  6. /scoreboard players add @e[tag=c9_ctrl] c9_timer 1
  7. /execute if score @e[tag=c9_ctrl,limit=1] c9_timer matches 120.. run scoreboard players set @e[tag=c9_ctrl] c9_timer 0
  8. /execute if score @e[tag=c9_ctrl,limit=1] c9_timer matches 15 run data merge entity @e[tag=c9_L1,limit=1] {start_interpolation:0,interpolation_duration:30,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1.3f,4.0f,1.2f],translation:[-3.8f,0.0f,-0.6f]}}
  9. /execute if score @e[tag=c9_ctrl,limit=1] c9_timer matches 15 run data merge entity @e[tag=c9_L2,limit=1] {start_interpolation:0,interpolation_duration:30,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1.3f,4.0f,0.9f],translation:[-3.7f,0.0f,-0.45f]}}
  10. /execute if score @e[tag=c9_ctrl,limit=1] c9_timer matches 15 run data merge entity @e[tag=c9_R2,limit=1] {start_interpolation:0,interpolation_duration:30,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1.3f,4.0f,0.9f],translation:[2.4f,0.0f,-0.45f]}}
  11. /execute if score @e[tag=c9_ctrl,limit=1] c9_timer matches 15 run data merge entity @e[tag=c9_R1,limit=1] {start_interpolation:0,interpolation_duration:30,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1.3f,4.0f,1.2f],translation:[2.5f,0.0f,-0.6f]}}
  12. /execute if score @e[tag=c9_ctrl,limit=1] c9_timer matches 15 run data merge entity @e[tag=c9_bolt,limit=1] {start_interpolation:0,interpolation_duration:25,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.4f,0.6f,1.5f],translation:[-0.2f,3.3f,-0.75f]}}
  13. /execute if score @e[tag=c9_ctrl,limit=1] c9_timer matches 75 run kill @e[tag=c9_airlock,type=block_display]
  14. /execute if score @e[tag=c9_ctrl,limit=1] c9_timer matches 15..45 run particle cloud ~ ~2.5 ~ 0.2 1.5 0.5 0.03 3 force

How it works

Frames from the test run

Seamless Mechanical Airlock with Block Displays - frame 1Seamless Mechanical Airlock with Block Displays - frame 2Seamless Mechanical Airlock with Block Displays - frame 3

Recorded on our own test server: 56 frames at about 9.3 fps. Our image check saw: A deepslate and copper airlock structure with four panels and a glowing central lock smoothly sliding open across the frames.

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 area where you want the airlock frame to be built.
  2. Run each of the 10 setup commands in order to create the scoreboard objective, build the deepslate and copper frame, and summon the control marker.
  3. Place 14 repeating command blocks (set to Always Active) near the frame, or connect 1 repeating block into a chain of 13 chain command blocks.
  4. Paste one loop command into each command block. Adjust the relative coordinates if your command blocks are not at the stage center.
  5. Watch the airlock panels assemble, vent steam, and glide smoothly open and closed on a 6-second cycle.

Use it with real players

To make the airlock open only when a player approaches instead of running on a timer, replace the timer check if score @e[tag=c9_ctrl,limit=1] c9_timer matches 15 with if entity @a[distance=..4] for the open state, and use unless entity @a[distance=..4] to merge the closed translation coordinates back into each panel. If you also want physical collision when the door is closed, place and remove barrier blocks inside the doorway with /fill ~-2 ~1 ~ ~2 ~4 ~ barrier synchronized with the door state.

Remove it again 3 commands

  1. /kill @e[tag=c9_airlock]
  2. /scoreboard objectives remove c9_timer
  3. /fill ~-5 ~ ~-3 ~5 ~6 ~3 air

FAQ

Why do the door panels have brightness set to 15?

When a block_display entity slides inside a solid block wall, it normally samples the light level inside that solid block and turns pitch black. Setting sky and block brightness to 15 keeps the panels evenly lit throughout their slide.

Can players walk through block_display entities?

Yes, block_display entities are purely visual and have no hitbox. For survival doors, pair the opening animation with a /fill command that clears or places barrier blocks in the doorway.

Commands used

/data/execute/fill/kill/particle/scoreboard/setblock/summon

Similar creations

Join 9Minecraft News & Guides