Build a heavy industrial airlock door that glides open and slams shut on an automated timer with steam vents, warning beacons, and collision barriers.
Machines & MechanismsIndustrialTechnologyWhiteBlackMap MakingAdventure MapDecorationParticlesBlock displaysSmooth animation (interpolation)Summoned mobsBlock building (fill/setblock/clone)Sounds21+ commands
Step into a high-tech sci-fi base or deep-sea facility with this seamless pneumatic sliding bulkhead. Unlike standard piston doors that move block-by-block, this industrial airlock uses interpolated block display entities to glide smoothly across the floor inside a heavy deepslate and copper frame. As the door cycles, pressurized steam hisses from the pneumatic seals, mechanical locks clank into place, and an overhead beacon shifts from red to green when the passageway is clear.
Even though the moving panels are visual display entities, the system dynamically places and removes real barrier blocks inside the doorway in sync with the animation. Players and mobs are physically blocked when the heavy iron leaves slam shut and can walk right through as soon as the doors part.
/scoreboard objectives add c9_timer dummy/fill ~-5 ~-1 ~-3 ~5 ~-1 ~3 minecraft:polished_deepslate/fill ~-4 ~ ~-1 ~4 ~5 ~1 minecraft:deepslate_tiles/fill ~-2 ~ ~-1 ~2 ~3 ~1 minecraft:air/fill ~-3 ~ ~-1 ~-3 ~3 ~-1 minecraft:chiseled_copper/fill ~3 ~ ~-1 ~3 ~3 ~-1 minecraft:chiseled_copper/setblock ~ ~4 ~-1 minecraft:redstone_lamp[lit=true]/summon minecraft:marker ~ ~ ~ {Tags:["c9_Entity","c9_ctrl"]}/summon minecraft:block_display ~ ~ ~ {Tags:["c9_Entity","c9_door_l"],block_state:{Name:"minecraft:iron_block"},interpolation_duration:20,teleport_duration:20,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[2.0f,4.0f,0.8f],translation:[-2.0f,0.0f,-0.4f]}}/summon minecraft:block_display ~ ~ ~ {Tags:["c9_Entity","c9_door_r"],block_state:{Name:"minecraft:iron_block"},interpolation_duration:20,teleport_duration:20,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[2.0f,4.0f,0.8f],translation:[0.0f,0.0f,-0.4f]}}/execute as @e[type=minecraft:marker,tag=c9_ctrl] run scoreboard players add @s c9_timer 1/execute as @e[type=minecraft:marker,tag=c9_ctrl,scores={c9_timer=1}] at @s run data modify entity @e[type=minecraft:block_display,tag=c9_door_l,limit=1] transformation.translation set value [-2.0f,0.0f,-0.4f]/execute as @e[type=minecraft:marker,tag=c9_ctrl,scores={c9_timer=1}] at @s run data modify entity @e[type=minecraft:block_display,tag=c9_door_r,limit=1] transformation.translation set value [0.0f,0.0f,-0.4f]/execute as @e[type=minecraft:marker,tag=c9_ctrl,scores={c9_timer=1}] at @s run data modify entity @e[type=minecraft:block_display,tag=c9_door_l,limit=1] start_interpolation set value 0/execute as @e[type=minecraft:marker,tag=c9_ctrl,scores={c9_timer=1}] at @s run data modify entity @e[type=minecraft:block_display,tag=c9_door_r,limit=1] start_interpolation set value 0/execute as @e[type=minecraft:marker,tag=c9_ctrl,scores={c9_timer=1}] at @s run fill ~-2 ~ ~ ~1 ~3 ~ minecraft:barrier/execute as @e[type=minecraft:marker,tag=c9_ctrl,scores={c9_timer=20}] at @s run playsound minecraft:block.iron_door.close master @a ~ ~2 ~ 1.5 0.6/execute as @e[type=minecraft:marker,tag=c9_ctrl,scores={c9_timer=20}] at @s run particle minecraft:cloud ~ ~1.5 ~ 0.1 1.5 0.6 0.05 35/execute as @e[type=minecraft:marker,tag=c9_ctrl,scores={c9_timer=70}] at @s run data modify entity @e[type=minecraft:block_display,tag=c9_door_l,limit=1] transformation.translation set value [-3.85f,0.0f,-0.4f]/execute as @e[type=minecraft:marker,tag=c9_ctrl,scores={c9_timer=70}] at @s run data modify entity @e[type=minecraft:block_display,tag=c9_door_r,limit=1] transformation.translation set value [1.85f,0.0f,-0.4f]/execute as @e[type=minecraft:marker,tag=c9_ctrl,scores={c9_timer=70}] at @s run fill ~-2 ~ ~ ~1 ~3 ~ minecraft:air/execute as @e[type=minecraft:marker,tag=c9_ctrl,scores={c9_timer=70}] at @s run playsound minecraft:block.piston.contract master @a ~ ~2 ~ 1.2 0.7/execute as @e[type=minecraft:marker,tag=c9_ctrl,scores={c9_timer=70..90}] at @s run particle minecraft:poof ~-2 ~0.2 ~ 0.5 0.1 0.3 0.02 3/execute as @e[type=minecraft:marker,tag=c9_ctrl,scores={c9_timer=140..}] run scoreboard players set @s c9_timer 0setup #9 Summons the left half of the bulkhead door using a <code>block_display</code> entity scaled to 2 blocks wide, 4 blocks tall, and 0.8 blocks thick, with a 20-tick (1 second) interpolation duration.loop #2 At tick 1 of the cycle, updates the left door leaf's translation vector so it slides smoothly toward the center to seal the doorway.loop #6 Fills the doorway with invisible <code>barrier</code> blocks while the doors are closed so players and mobs cannot walk through the display entities.loop #8 At tick 20, right as the two heavy iron halves slam together in the center, bursts a vertical line of cloud particles and plays a low-pitched metallic slam sound.loop #9 At tick 70, retracts the left and right door panels into the deepslate wall housing and clears the barrier blocks so the doorway becomes passable.


Recorded on our own test server: 69 frames at about 9.8 fps. Our image check saw: A deepslate frame with smooth iron doors sliding shut and opening again while releasing white smoke 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 bulkhead open automatically only when a player walks near the airlock instead of cycling on a loop, replace the first loop command with a proximity detector: /execute as @e[type=minecraft:marker,tag=c9_ctrl] at @s if entity @a[distance=..4] run scoreboard players set @s c9_timer 70, and set it back to 1 when no player is within 4 blocks (unless entity @a[distance=..4]).
/kill @e[tag=c9_Entity]/scoreboard objectives remove c9_timer/fill ~-5 ~ ~-3 ~5 ~5 ~3 minecraft:air/fill ~-5 ~-1 ~-3 ~5 ~-1 ~3 minecraft:grass_blockBlock display entities are purely visual and do not have built-in collision boxes. Instead, the system fills the doorway frame with invisible barrier blocks when the door closes and clears them when it opens.
Yes! In the final two setup commands, change minecraft:iron_block inside the block_state tag to any block you like, such as minecraft:copper_block, minecraft:NETHERITE_block, or minecraft:tinted_glass.
/data/execute/fill/particle/playsound/scoreboard/setblock/summon
▶Steampunk Astrolabe GyroscopeMachines & MechanismsMedium24 cmds
▶Steampunk Printing Press Newspaper RollMachines & MechanismsHard24 cmds
▶Holographic Magnetic Tokamak Fusion ConfinementMachines & MechanismsExpert26 cmds
▶Kinematic Radial Aircraft Engine IgnitionMachines & MechanismsExpert24 cmds
▶Kinematic V8 Engine Piston CutawayMachines & MechanismsExpert24 cmds
▶Kinetic Moiré Pattern Interference SculptureMachines & MechanismsMedium23 cmds