Tactical Laser Skirmish

Two armored squads sprint between cover barriers, crouch to dodge incoming shots, and trade glowing cyan and crimson laser beam volleys.

Java EditionMobs & PetsExpert25 commandsTested on a real 26.2 & 26.3 server
Glowing armored squads battle around a central sea lantern cube with cyan and red particle lasers. Download the GIF Video & GIF © www.9minecraft.net

Custom MobsTechnologyLightningCyanRedWhiteMini-gamePvPMap MakingParticlesArmor standsScoreboard timersExecute chainsBlock building (fill/setblock/clone)Glowing outlinesRotation math21+ commands

Two glowing armored squads face off across a sci-fi battlefield with concrete barriers and central energy pylons. Soldiers autonomously strafe between cover points, duck behind barriers to evade fire, and lock onto opposing targets to fire glowing cyan and crimson particle laser beams.

Using scoreboard state timers and directional teleport steps, the armor stands mimic tactical combat AI without needing complex data packs or mods.

1. Setup - type these once 11 commands

  1. /scoreboard objectives add c9_t dummy
  2. /fill ~-12 ~-1 ~-10 ~12 ~-1 ~10 polished_deepslate
  3. /fill ~-9 ~ ~-8 ~-8 ~1 ~8 iron_block
  4. /fill ~8 ~ ~-8 ~9 ~1 ~8 iron_block
  5. /fill ~-9 ~ ~-3 ~9 ~1 ~-2 air
  6. /fill ~-9 ~ ~2 ~9 ~1 ~3 air
  7. /fill ~-2 ~ ~-1 ~2 ~2 ~1 sea_lantern
  8. /summon armor_stand ~-7 ~ ~-6 {Tags:["c9_s","c9_b","c9_g1"],NoGravity:1b,ShowArms:1b,Glowing:1b,equipment:{head:{id:"minecraft:diamond_helmet"},chest:{id:"minecraft:diamond_chestplate"},legs:{id:"minecraft:iron_leggings"},feet:{id:"minecraft:iron_boots"},mainhand:{id:"minecraft:crossbow"}}}
  9. /summon armor_stand ~-7 ~ ~6 {Tags:["c9_s","c9_b","c9_g2"],NoGravity:1b,ShowArms:1b,Glowing:1b,equipment:{head:{id:"minecraft:diamond_helmet"},chest:{id:"minecraft:diamond_chestplate"},legs:{id:"minecraft:iron_leggings"},feet:{id:"minecraft:iron_boots"},mainhand:{id:"minecraft:crossbow"}}}
  10. /summon armor_stand ~7 ~ ~-6 {Tags:["c9_s","c9_r","c9_g2"],NoGravity:1b,ShowArms:1b,Glowing:1b,equipment:{head:{id:"minecraft:golden_helmet"},chest:{id:"minecraft:netherite_chestplate"},legs:{id:"minecraft:netherite_leggings"},feet:{id:"minecraft:golden_boots"},mainhand:{id:"minecraft:crossbow"}}}
  11. /summon armor_stand ~7 ~ ~6 {Tags:["c9_s","c9_r","c9_g1"],NoGravity:1b,ShowArms:1b,Glowing:1b,equipment:{head:{id:"minecraft:golden_helmet"},chest:{id:"minecraft:netherite_chestplate"},legs:{id:"minecraft:netherite_leggings"},feet:{id:"minecraft:golden_boots"},mainhand:{id:"minecraft:crossbow"}}}

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

  1. /scoreboard players add @e[tag=c9_s] c9_t 1
  2. /scoreboard players set @e[tag=c9_s,scores={c9_t=80..}] c9_t 0
  3. /execute as @e[tag=c9_s,tag=c9_g1,scores={c9_t=1..25}] at @s run tp @s ~ ~ ~0.2
  4. /execute as @e[tag=c9_s,tag=c9_g1,scores={c9_t=41..65}] at @s run tp @s ~ ~ ~-0.2
  5. /execute as @e[tag=c9_s,tag=c9_g2,scores={c9_t=1..25}] at @s run tp @s ~ ~ ~-0.2
  6. /execute as @e[tag=c9_s,tag=c9_g2,scores={c9_t=41..65}] at @s run tp @s ~ ~ ~0.2
  7. /execute as @e[tag=c9_b] at @s facing entity @e[tag=c9_r,sort=nearest,limit=1] feet run tp @s ~ ~ ~ ~ ~
  8. /execute as @e[tag=c9_r] at @s facing entity @e[tag=c9_b,sort=nearest,limit=1] feet run tp @s ~ ~ ~ ~ ~
  9. /execute as @e[tag=c9_b,scores={c9_t=30}] at @s anchored eyes run summon area_effect_cloud ^ ^-0.2 ^1 {Tags:["c9_l","c9_lb"],Duration:14,Radius:0f}
  10. /execute as @e[tag=c9_r,scores={c9_t=70}] at @s anchored eyes run summon area_effect_cloud ^ ^-0.2 ^1 {Tags:["c9_l","c9_lr"],Duration:14,Radius:0f}
  11. /execute as @e[tag=c9_lb] at @s facing entity @e[tag=c9_r,sort=nearest,limit=1] eyes run tp @s ^ ^ ^1.2
  12. /execute as @e[tag=c9_lr] at @s facing entity @e[tag=c9_b,sort=nearest,limit=1] eyes run tp @s ^ ^ ^1.2
  13. /execute at @e[tag=c9_lb] run particle dust{color:[0.0,0.9,1.0],scale:1.4} ~ ~ ~ 0.05 0.05 0.05 0 3 force
  14. /execute at @e[tag=c9_lr] run particle dust{color:[1.0,0.15,0.1],scale:1.4} ~ ~ ~ 0.05 0.05 0.05 0 3 force

How it works

Frames from the test run

Tactical Laser Skirmish - frame 1Tactical Laser Skirmish - frame 2Tactical Laser Skirmish - frame 3

Recorded on our own test server: 60 frames at about 9.9 fps. Our image check saw: Two glowing squads of armor stands move between white barriers around a central sea lantern cube while firing sparse cyan and red particle beams.

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. Create a flat platform and stand at the center block.
  2. Run each command from the Setup list in chat to build the arena walls and summon the four armored soldiers.
  3. Place 14 repeating command blocks (or 1 repeating and 13 chain command blocks) set to Always Active.
  4. Paste one Loop command into each block in order.
  5. Switch the time to night so the sea lanterns, glowing soldiers, and colored laser beams stand out clearly.

Use it with real players

To join the firefight yourself, tag your player with /tag @s add c9_b and replace the blue laser summon check with a carrot-on-a-stick right-click scoreboard objective so you fire cyan laser bolts whenever you click.

Remove it again 5 commands

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

FAQ

Why use area_effect_cloud for the laser projectiles?

Area effect clouds have a built-in Duration NBT tag, so they automatically despawn after 14 ticks without needing extra cleanup commands.

Can I add more soldiers to each team?

Yes, summon additional armor stands with the tags c9_s, c9_b or c9_r, and either c9_g1 or c9_g2 to assign their movement pattern.

Commands used

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

Similar creations

Join 9Minecraft News & Guides