Build an automated sci-fi airlock in vanilla Minecraft using smooth block displays, pressurized steam particle vents, and dynamic status beacons.
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.
/scoreboard objectives add c9_timer dummy/scoreboard players set #airlock c9_timer 0/fill ~-4 ~-1 ~-5 ~4 ~5 ~5 minecraft:iron_block hollow/fill ~-2 ~ ~-5 ~2 ~3 ~5 minecraft:air/fill ~-4 ~1 ~-2 ~4 ~3 ~2 minecraft:cyan_stained_glass/fill ~-3 ~-1 ~-3 ~3 ~-1 ~3 minecraft:sea_lantern/fill ~-3 ~ ~-3 ~3 ~ ~3 minecraft:iron_trapdoor[half=top]/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]}}/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]}}/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]}}/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]}}/scoreboard players add #airlock c9_timer 1/execute if score #airlock c9_timer matches 200.. run scoreboard players set #airlock c9_timer 0/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]/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]/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]/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]/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/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/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/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]/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]/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]/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]setup #3 Builds the main 9x7x11 iron containment hull around the center point, with subsequent setup commands carving out the doorways, installing observation glass, and laying a glowing grate floor.setup #8 Summons the front-left blast door using a scaled netherite block_display entity. Setting interpolation_duration to 20 ticks ensures that any future transformation changes glide smoothly over 1 second.loop #4 At tick 10 of the cycle, modifies the translation vector of the front-left door display entity, sliding it 1.8 blocks into the wall cavity. Because interpolation is active, it animates smoothly.loop #8 Between ticks 75 and 105 (when both sets of doors are sealed), shoots cloud particles inward and downward from the upper walls to simulate high-pressure decontamination vents.loop #11 Once pressurization finishes at tick 115, slides the rear blast doors open so the chamber can be exited from the other side.


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.
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.
/kill @e[tag=c9_airlock]/fill ~-4 ~-1 ~-5 ~4 ~5 ~5 minecraft:air/fill ~-4 ~-1 ~-5 ~4 ~-1 ~5 minecraft:grass_block/scoreboard objectives remove c9_timerBlock 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.
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.
▶Steampunk Astrolabe GyroscopeMachines & MechanismsMedium24 cmds
▶Sci-Fi Hangar Blast DoorsMachines & MechanismsMedium24 cmds
▶Unstable Core ReactorMachines & MechanismsHard24 cmds
▶Sci-Fi Airlock and Hydraulic LiftMachines & MechanismsMedium24 cmds
▶Unstable Plasma Core SequenceMachines & MechanismsMedium25 cmds
▶Steampunk Printing Press Newspaper RollMachines & MechanismsHard24 cmds