Automated Sterilization Airlock

Build a sci-fi decontamination chamber in vanilla Minecraft with sliding blast doors, mist nozzles, laser scanners, and warning sirens.

Java EditionParticle ArtMedium24 commandsTested on a real 26.2 & 26.3 server
An automated Minecraft sterilization chamber scans an armor stand with a green laser and chemical mist. Download the GIF Video & GIF © www.9minecraft.net

Fountains & SpraysTechnologySpaceIndustrialWhiteGreenOrangeMap MakingAdventure MapDecorationBlock displaysArmor standsSmooth animation (interpolation)Block building (fill/setblock/clone)SoundsGlowing outlines21+ commands

Step into a futuristic decontamination chamber built purely with vanilla commands. This automated airlock seals its heavy blast doors on a repeating schedule, locking an armored test subject inside while overhead nozzles flood the room with pressurized disinfectant mist and swirling chemical clouds.

During the sterilization cycle, a glowing green laser bar sweeps down from the ceiling to scan the chamber, while amber hazard beacons flash above the gateways. Every sequence is driven by a scoreboard timer and smooth block display animations, needing no mods or resource packs.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_timer dummy
  2. /scoreboard players set #airlock c9_timer 0
  3. /fill ~-3 ~ ~-4 ~3 ~5 ~4 iron_block hollow
  4. /fill ~-2 ~1 ~-4 ~2 ~4 ~4 air
  5. /fill ~-3 ~1 ~-2 ~3 ~4 ~2 cyan_stained_glass
  6. /fill ~-2 ~1 ~-3 ~2 ~4 ~3 air
  7. /fill ~-2 ~ ~-3 ~2 ~ ~3 polished_deepslate
  8. /fill ~-1 ~5 ~-2 ~1 ~5 ~2 sea_lantern
  9. /summon armor_stand ~ ~1 ~ {Tags:["c9_entity","c9_actor"],NoGravity:1b,ShowArms:1b,equipment:{head:{id:"minecraft:glass"},chest:{id:"minecraft:iron_chestplate"},legs:{id:"minecraft:iron_leggings"},feet:{id:"minecraft:iron_boots"}}}
  10. /summon block_display ~ ~1 ~ {Tags:["c9_entity","c9_scanner"],Glowing:1b,glow_color_override:65280,block_state:{Name:"minecraft:lime_stained_glass"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-2f,3.6f,-0.1f],scale:[4f,0.15f,0.2f]}}

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

  1. /scoreboard players add #airlock c9_timer 1
  2. /execute if score #airlock c9_timer matches 160.. run scoreboard players set #airlock c9_timer 0
  3. /execute if score #airlock c9_timer matches 20 run fill ~-1 ~1 ~-4 ~1 ~4 ~-4 iron_bars
  4. /execute if score #airlock c9_timer matches 20 run fill ~-1 ~1 ~4 ~1 ~4 ~4 iron_bars
  5. /execute if score #airlock c9_timer matches 20 run playsound block.iron_door.close master @a ~ ~2 ~ 1 0.7
  6. /execute if score #airlock c9_timer matches 140 run fill ~-1 ~1 ~-4 ~1 ~4 ~-4 air
  7. /execute if score #airlock c9_timer matches 140 run fill ~-1 ~1 ~4 ~1 ~4 ~4 air
  8. /execute if score #airlock c9_timer matches 140 run playsound block.iron_door.open master @a ~ ~2 ~ 1 0.7
  9. /execute if score #airlock c9_timer matches 25..135 run particle cloud ~ ~4.5 ~ 1.2 0.2 1.8 0.08 8 force
  10. /execute if score #airlock c9_timer matches 25..135 run particle dust{color:[0.2,1.0,0.8],scale:1.5} ~ ~2.5 ~ 1.4 1.2 2.0 0 12 force
  11. /execute if score #airlock c9_timer matches 20..140 run particle dust{color:[1.0,0.6,0.0],scale:2.0} ~ ~4.5 ~-4.3 0.6 0.1 0.1 0 5 force
  12. /execute if score #airlock c9_timer matches 20..140 run particle dust{color:[1.0,0.6,0.0],scale:2.0} ~ ~4.5 ~4.3 0.6 0.1 0.1 0 5 force
  13. /execute if score #airlock c9_timer matches 30 run data merge entity @e[tag=c9_scanner,limit=1] {start_interpolation:0,interpolation_duration:50,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-2f,0.2f,-0.1f],scale:[4f,0.15f,0.2f]}}
  14. /execute if score #airlock c9_timer matches 85 run data merge entity @e[tag=c9_scanner,limit=1] {start_interpolation:0,interpolation_duration:50,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-2f,3.6f,-0.1f],scale:[4f,0.15f,0.2f]}}

How it works

Frames from the test run

Automated Sterilization Airlock - frame 1Automated Sterilization Airlock - frame 2Automated Sterilization Airlock - frame 3

Recorded on our own test server: 64 frames at about 9.1 fps. Our image check saw: A white quartz chamber encloses an armored stand with iron bar doors, spraying orange, green, and white particles while a green laser bar moves down from the top.

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 the airlock chamber to be built.
  2. Run all 10 setup commands in chat or paste them into impulse command blocks powered from that center spot.
  3. Place 14 repeating command blocks in a line or stack nearby and set all of them to Always Active.
  4. Paste one loop command into each repeating command block, making sure coordinates are relative to the airlock center (or wrap them with <code>execute positioned X Y Z run ...</code>).
  5. Watch the doors automatically seal, the amber beacons flash, the mist nozzles fire, and the scanner beam sweep the room every 8 seconds.

Use it with real players

To make the airlock clear status effects and sterilize real players inside the chamber, remove the dummy armor stand with /kill @e[tag=c9_actor] and add a repeating command block running /execute if score #airlock c9_timer matches 80 run effect clear @a[x=~-2,y=~1,z=~-3,dx=4,dy=3,dz=6] along with /execute if score #airlock c9_timer matches 80 run effect give @a[x=~-2,y=~1,z=~-3,dx=4,dy=3,dz=6] regeneration 4 1 true.

Remove it again 3 commands

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

FAQ

Can I change the color of the sterilization mist and warning beacons?

Yes. Edit the RGB values inside <code>dust{color:[0.2,1.0,0.8],scale:1.5}</code> in the loop commands. The three numbers represent Red, Green, and Blue from 0.0 to 1.0.

Why does the scanner beam jump if I place the repeating command blocks far away?

The setup and loop commands use relative coordinates (<code>~ ~ ~</code>). If your repeating command blocks are not at the center of the room, prefix the block commands with <code>execute positioned X Y Z run</code> using the exact center coordinates of the chamber floor.

Commands used

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

Similar creations

Join 9Minecraft News & Guides