Hallway Phantom Ambush

A dark stone brick hallway where overhead redstone lamps flicker and shatter as a shrieking phantom vortex rushes down the corridor to ambush a lone guard.

Java EditionMagic & SpellsMedium24 commandsTested on a real 26.2 & 26.3 server
A dark phantom vortex of smoke and particles charges toward an armored guard inside a dark corridor. Download the GIF Video & GIF © www.9minecraft.net

Dark & Shadow MagicHorrorDarkMedievalBlackWhiteAdventure MapCinematicMap MakingArmor standsRiding & passengersBlock building (fill/setblock/clone)21+ commands

The Hallway Phantom Ambush creates a dramatic horror scene inside a stone brick corridor with viewing windows and three overhead redstone lamps. An armored guard stands watch at the end of the hall while the ceiling lights begin to spark and flicker in the dark.

Moments later, a glowing phantom vortex of black smoke, soul fire, and shrieking particles bursts down the hallway. As it charges toward the guard, it shatters each overhead lamp into glowing shards in a repeatable cinematic loop.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_t dummy
  2. /fill ~-12 ~-1 ~-3 ~12 ~5 ~3 stone_bricks outline
  3. /fill ~-12 ~ ~-2 ~12 ~4 ~2 air
  4. /fill ~-10 ~1 ~-3 ~10 ~3 ~-3 iron_bars
  5. /fill ~-10 ~1 ~3 ~10 ~3 ~3 tinted_glass
  6. /fill ~-10 ~ ~-1 ~10 ~ ~1 red_carpet
  7. /setblock ~-6 ~5 ~0 redstone_lamp[lit=true]
  8. /setblock ~0 ~5 ~0 redstone_lamp[lit=true]
  9. /setblock ~6 ~5 ~0 redstone_lamp[lit=true]
  10. /summon armor_stand ~8 ~ ~0 {Tags:["c9_actor","c9_all"],Rotation:[90f,0f],ShowArms:1b,Glowing:1b,equipment:{head:{id:"minecraft:iron_helmet",count:1},chest:{id:"minecraft:iron_chestplate",count:1},legs:{id:"minecraft:iron_leggings",count:1},feet:{id:"minecraft:iron_boots",count:1},mainhand:{id:"minecraft:shield",count:1},offhand:{id:"minecraft:lantern",count:1}},Passengers:[{id:"minecraft:Phantom",Tags:["c9_vortex","c9_all"],NoAI:1b,Silent:1b,Invulnerable:1b,Glowing:1b,Size:5}]}

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

  1. /execute if entity @e[tag=c9_vortex,distance=..3] at @e[tag=c9_actor] run tp @e[tag=c9_vortex] ~-18 ~1.8 ~0 -90 0
  2. /scoreboard players add #tick c9_t 1
  3. /execute if score #tick c9_t matches 1..25 run particle electric_spark ~0 ~4.4 ~0 6 0.15 0.2 0.15 35 force
  4. /execute if score #tick c9_t matches 5..9 run fill ~-6 ~5 ~0 ~6 ~5 ~0 redstone_lamp[lit=false]
  5. /execute if score #tick c9_t matches 10..14 run fill ~-6 ~5 ~0 ~6 ~5 ~0 redstone_lamp[lit=true]
  6. /execute if score #tick c9_t matches 15..19 run fill ~-6 ~5 ~0 ~6 ~5 ~0 redstone_lamp[lit=false]
  7. /execute if score #tick c9_t matches 20..24 run fill ~-6 ~5 ~0 ~6 ~5 ~0 redstone_lamp[lit=true]
  8. /execute if score #tick c9_t matches 25..70 as @e[tag=c9_vortex] at @s run tp @s ~0.4 ~ ~ -90 0
  9. /execute if score #tick c9_t matches 25..75 at @e[tag=c9_vortex] run particle soul_fire_flame ~ ~0.4 ~ 0.8 0.9 0.8 0.06 35 force
  10. /execute if score #tick c9_t matches 25..75 at @e[tag=c9_vortex] run particle squid_ink ~ ~0.4 ~ 0.9 1.1 0.9 0.04 45 force
  11. /execute if score #tick c9_t matches 25..75 at @e[tag=c9_vortex] run particle sculk_soul ~ ~0.5 ~ 0.7 0.8 0.7 0.05 20 force
  12. /execute if score #tick c9_t matches 25..70 at @e[tag=c9_vortex] if block ~ ~3.2 ~ redstone_lamp[lit=true] run particle block{block_state:{Name:"minecraft:glowstone"}} ~ ~2.9 ~ 0.5 0.3 0.5 0.2 90 force
  13. /execute if score #tick c9_t matches 25..70 at @e[tag=c9_vortex] if block ~ ~3.2 ~ redstone_lamp[lit=true] run setblock ~ ~3.2 ~ redstone_lamp[lit=false]
  14. /execute if score #tick c9_t matches 70 at @e[tag=c9_actor] run particle sonic_boom ~ ~1.2 ~ 0.3 0.3 0.3 1 4 force

How it works

Frames from the test run

Hallway Phantom Ambush - frame 1Hallway Phantom Ambush - frame 2Hallway Phantom Ambush - frame 3

Recorded on our own test server: 33 frames at about 8.2 fps. Our image check saw: A stone brick corridor with glass windows containing a glowing outlined armored figure while a dark particle vortex charges down the hall toward it.

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 in the center of a flat open area and run each of the 10 setup commands in order to build the hallway, lamps, guardian, and phantom.
  2. Notice that the front wall uses tinted glass so you can watch the ambush clearly from outside while keeping the interior dark.
  3. Place 14 repeating command blocks (or 1 repeating command block connected to 13 chain command blocks), all set to Always Active.
  4. Paste the 14 loop commands into the command blocks in order.
  5. Watch the overhead lights spark and flicker before the shrieking phantom vortex sweeps down the corridor and extinguishes each lamp.
  6. To replay the ambush at any time, run /scoreboard players set #tick c9_t 0 and teleport the phantom back to the start.

Use it with real players

To trigger this ambush when a real player enters the corridor, replace the #tick timer trigger with /execute if entity @a[distance=..8] run scoreboard players add #tick c9_t 1, and replace @e[tag=c9_actor] in the final sonic boom command with @p plus an instant damage effect.

Remove it again 4 commands

  1. /kill @e[tag=c9_all]
  2. /scoreboard objectives remove c9_t
  3. /fill ~-12 ~-1 ~-3 ~12 ~5 ~3 air
  4. /fill ~-12 ~-1 ~-3 ~12 ~-1 ~3 grass_block

FAQ

Why did a previous command block setup show aleading space error in the loop?

A leading space after the slash (like '/ scoreboard') causes Minecraft's command parser to reject the command. All commands must start directly with '/command' without a space.

Can I make the ambush loop automatically forever?

Yes! Add one extra chain command block at the end with: /execute if score #tick c9_t matches 90.. run scoreboard players set #tick c9_t 0.

Commands used

/execute/fill/particle/scoreboard/setblock/summon/tp

Similar creations

Join 9Minecraft News & Guides