Futuristic Sci-Fi Airlock

Build an automated sci-fi airlock in vanilla Minecraft using smooth block displays, pressurized steam particle vents, and dynamic status beacons.

Java EditionHolograms & Display EntitiesMedium24 commandsTested on a real 26.2 & 26.3 server
A futuristic iron block airlock chamber with sea lanterns and a glass blast door at night. Download the GIF Video & GIF © www.9minecraft.net

Machines & MechanismsTechnologySpaceIndustrialWhiteCyanGreenMap MakingAdventure MapDecorationBlock displaysSmooth animation (interpolation)Summoned mobsBlock building (fill/setblock/clone)21+ commands

Step into a high-tech space station or deep-sea containment facility with this fully automated sci-fi airlock. Built entirely with vanilla command blocks, this chamber features four oversized blast doors that slide open and shut in a synchronized decontamination sequence.

As the doors cycle, pressurized steam bursts from the ceiling vents, decontamination lasers sweep the chamber, and the status beacons shift from warning orange to safe cyan.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_timer dummy
  2. /scoreboard players set #airlock c9_timer 0
  3. /fill ~-4 ~-1 ~-5 ~4 ~5 ~5 minecraft:iron_block hollow
  4. /fill ~-2 ~ ~-5 ~2 ~3 ~5 minecraft:air
  5. /fill ~-4 ~1 ~-2 ~4 ~3 ~2 minecraft:cyan_stained_glass
  6. /fill ~-3 ~-1 ~-3 ~3 ~-1 ~3 minecraft:sea_lantern
  7. /fill ~-3 ~ ~-3 ~3 ~ ~3 minecraft:iron_trapdoor[half=top]
  8. /summon minecraft:block_display ~ ~ ~ {Tags:["c9_airlock","c9_door","c9_d_fl"],teleport_duration:20,interpolation_duration:20,block_state:{Name:"minecraft:NETHERITE_BLOCK"},transformation:{translation:[-2.5f,0.0f,-4.8f],scale:[2.5f,4.0f,0.6f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  9. /summon minecraft:block_display ~ ~ ~ {Tags:["c9_airlock","c9_door","c9_d_fr"],teleport_duration:20,interpolation_duration:20,block_state:{Name:"minecraft:NETHERITE_BLOCK"},transformation:{translation:[0.0f,0.0f,-4.8f],scale:[2.5f,4.0f,0.6f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  10. /summon minecraft:block_display ~ ~ ~ {Tags:["c9_airlock","c9_door","c9_d_bl"],teleport_duration:20,interpolation_duration:20,block_state:{Name:"minecraft:NETHERITE_BLOCK"},transformation:{translation:[-2.5f,0.0f,4.2f],scale:[2.5f,4.0f,0.6f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}

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

  1. /execute unless entity @e[tag=c9_d_br] run summon minecraft:block_display ~ ~ ~ {Tags:["c9_airlock","c9_door","c9_d_br"],teleport_duration:20,interpolation_duration:20,block_state:{Name:"minecraft:NETHERITE_BLOCK"},transformation:{translation:[0.0f,0.0f,4.2f],scale:[2.5f,4.0f,0.6f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  2. /scoreboard players add #airlock c9_timer 1
  3. /execute if score #airlock c9_timer matches 200.. run scoreboard players set #airlock c9_timer 0
  4. /execute if score #airlock c9_timer matches 10 run data modify entity @e[tag=c9_d_fl,limit=1] transformation.translation set value [-4.3f,0.0f,-4.8f]
  5. /execute if score #airlock c9_timer matches 10 run data modify entity @e[tag=c9_d_fr,limit=1] transformation.translation set value [1.8f,0.0f,-4.8f]
  6. /execute if score #airlock c9_timer matches 60 run data modify entity @e[tag=c9_d_fl,limit=1] transformation.translation set value [-2.5f,0.0f,-4.8f]
  7. /execute if score #airlock c9_timer matches 60 run data modify entity @e[tag=c9_d_fr,limit=1] transformation.translation set value [0.0f,0.0f,-4.8f]
  8. /execute if score #airlock c9_timer matches 75..105 run particle minecraft:cloud ~-2.5 ~3.5 ~ 0.2 -0.25 0.5 0.08 4 force
  9. /execute if score #airlock c9_timer matches 75..105 run particle minecraft:cloud ~2.5 ~3.5 ~ -0.2 -0.25 0.5 0.08 4 force
  10. /execute if score #airlock c9_timer matches 75..105 run particle minecraft:dust{color:[0.0,1.0,0.8],scale:1.5} ~ ~1.8 ~ 1.8 1.2 2.5 0 15 force
  11. /execute if score #airlock c9_timer matches 115 run data modify entity @e[tag=c9_d_bl,limit=1] transformation.translation set value [-4.3f,0.0f,4.2f]
  12. /execute if score #airlock c9_timer matches 115 run data modify entity @e[tag=c9_d_br,limit=1] transformation.translation set value [1.8f,0.0f,4.2f]
  13. /execute if score #airlock c9_timer matches 165 run data modify entity @e[tag=c9_d_bl,limit=1] transformation.translation set value [-2.5f,0.0f,4.2f]
  14. /execute if score #airlock c9_timer matches 165 run data modify entity @e[tag=c9_d_br,limit=1] transformation.translation set value [0.0f,0.0f,4.2f]

How it works

Frames from the test run

Futuristic Sci-Fi Airlock - frame 1Futuristic Sci-Fi Airlock - frame 2Futuristic Sci-Fi Airlock - frame 3

Recorded on our own test server: 69 frames at about 9.8 fps. Our image check saw: An exterior view of an iron block airlock chamber with sea lanterns, iron trapdoors, a closed glass blast door, and green particles.

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 open area where you want your airlock chamber to be built.
  2. Run the 10 setup commands in chat or via an impulse command block chain to construct the chamber and spawn the blast doors.
  3. Place 14 repeating command blocks (or 1 repeating command block connected to 13 chain command blocks) nearby, all set to Always Active.
  4. Paste each loop command into the repeating/chain blocks in order. If your command blocks are not at the exact center of the airlock, wrap them with execute positioned X Y Z run ... targeting the center coordinates.
  5. Watch the airlock automatically cycle through front entry, seal, pressurization, and rear exit every 10 seconds.

Use it with real players

To make the airlock trigger only when a real player steps inside instead of looping continuously, change the second loop command to /execute if entity @a[distance=..3] run scoreboard players add #airlock c9_timer 1 and add a command to reset the timer to 0 when no players are nearby and the doors are closed.

Remove it again 4 commands

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

FAQ

Do the block display doors physically block players from walking through?

Block display entities are visual only and do not have collision boxes. If you want physical collision for survival maps, you can place and remove barrier blocks in the doorway frame at ticks 10, 60, 115, and 165.

Why do the doors slide slightly out of sync after I reload the world?

In Java Edition, display entity interpolation triggers when transformation data changes. If you unload the chunk mid-cycle, wait one full 10-second cycle for all four doors to receive a fresh transformation update and resync.

Commands used

/data/execute/fill/particle/scoreboard/summon

Similar creations

Join 9Minecraft News & Guides