Automated Undead Battalion

Transform any flat arena into an automated warzone where Crimson Legion and Azure Guard undead battalions march in lockstep and clash with glowing effects.

Java EditionMobs & PetsMedium24 commandsTested on a real 26.2 & 26.3 server
Red and blue glowing undead battalions march from giant banners to clash in a dark arena. Download the GIF Video & GIF © www.9minecraft.net

Mob ParadesMedievalDarkRedBlueBlackCinematicAdventure MapMini-gameParticlesItem displaysArmor standsScoreboard timersExecute chainsRiding & passengersSummoned mobsBlock building (fill/setblock/clone)Glowing outlinesRotation math21+ commands

The Automated Undead Battalion turns a flat arena into a self-playing tactical warzone between two distinct factions: the Crimson Legion and the Azure Guard. Using formation markers and scoreboard timers, rows of heavily armored undead infantry and skeleton archers spawn under towering glowing war standards, march in lockstep toward the center frontline, and clash in a shower of sparks, flame, and soul particles.

Once the two ranks meet at the central trench, their marching orders deactivate and their combat AI takes over, creating an active melee with sweeping attacks and explosive frontline impacts that automatically resets for endless battles.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_tick dummy
  2. /scoreboard players set #time c9_tick 0
  3. /team add c9_red
  4. /team modify c9_red color red
  5. /team add c9_blue
  6. /team modify c9_blue color aqua
  7. /fill ~-14 ~-1 ~-7 ~14 ~-1 ~7 polished_blackstone_bricks
  8. /fill ~-1 ~-1 ~-7 ~1 ~-1 ~7 magma_block
  9. /summon armor_stand ~-11 ~ ~ {NoGravity:1b,Invisible:1b,Tags:["c9_node","c9_red_sp"],Passengers:[{id:"minecraft:item_display",Glowing:1b,glow_color_override:16711680,item:{id:"minecraft:red_banner"},transformation:{translation:[0.0f,2.5f,0.0f],scale:[2.5f,2.5f,2.5f],left_rotation:[0.0f,0.0f,0.0f,1.0f],right_rotation:[0.0f,0.0f,0.0f,1.0f]}}]}
  10. /summon armor_stand ~11 ~ ~ {NoGravity:1b,Invisible:1b,Tags:["c9_node","c9_blue_sp"],Passengers:[{id:"minecraft:item_display",Glowing:1b,glow_color_override:65535,item:{id:"minecraft:light_blue_banner"},transformation:{translation:[0.0f,2.5f,0.0f],scale:[2.5f,2.5f,2.5f],left_rotation:[0.0f,0.0f,0.0f,1.0f],right_rotation:[0.0f,0.0f,0.0f,1.0f]}}]}

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

  1. /scoreboard players add #time c9_tick 1
  2. /execute if score #time c9_tick matches 130.. run scoreboard players set #time c9_tick 1
  3. /execute if score #time c9_tick matches 1 run kill @e[tag=c9_unit,distance=..25]
  4. /execute if score #time c9_tick matches 2..6 at @e[tag=c9_red_sp] run summon zombie ~1.5 ~ ~-4 {Tags:["c9_unit","c9_red_u","c9_march"],Team:"c9_red",Glowing:1b,NoAI:1b,PersistenceRequired:1b,Rotation:[-90f,0f],equipment:{head:{id:"minecraft:netherite_helmet"},chest:{id:"minecraft:netherite_chestplate"},legs:{id:"minecraft:netherite_leggings"},mainhand:{id:"minecraft:netherite_sword"}}}
  5. /execute if score #time c9_tick matches 2..6 at @e[tag=c9_red_sp] run summon wither_skeleton ~-0.5 ~ ~-4 {Tags:["c9_unit","c9_red_u","c9_march"],Team:"c9_red",Glowing:1b,NoAI:1b,PersistenceRequired:1b,Rotation:[-90f,0f],equipment:{head:{id:"minecraft:golden_helmet"},chest:{id:"minecraft:golden_chestplate"},mainhand:{id:"minecraft:golden_axe"}}}
  6. /execute if score #time c9_tick matches 2..6 at @e[tag=c9_blue_sp] run summon husk ~-1.5 ~ ~-4 {Tags:["c9_unit","c9_blue_u","c9_march"],Team:"c9_blue",Glowing:1b,NoAI:1b,PersistenceRequired:1b,Rotation:[90f,0f],equipment:{head:{id:"minecraft:diamond_helmet"},chest:{id:"minecraft:diamond_chestplate"},legs:{id:"minecraft:diamond_leggings"},mainhand:{id:"minecraft:diamond_sword"}}}
  7. /execute if score #time c9_tick matches 2..6 at @e[tag=c9_blue_sp] run summon stray ~0.5 ~ ~-4 {Tags:["c9_unit","c9_blue_u","c9_march"],Team:"c9_blue",Glowing:1b,NoAI:1b,PersistenceRequired:1b,Rotation:[90f,0f],equipment:{head:{id:"minecraft:chainmail_helmet"},chest:{id:"minecraft:iron_chestplate"},mainhand:{id:"minecraft:iron_sword"}}}
  8. /execute if score #time c9_tick matches 2..6 as @e[tag=c9_unit] at @s run tp @s ~ ~ ~2
  9. /execute as @e[tag=c9_march] at @s run tp @s ^ ^ ^0.22
  10. /execute as @e[tag=c9_red_u,tag=c9_march] at @s if entity @e[tag=c9_blue_u,distance=..3] run data merge entity @s {NoAI:0b,Tags:["c9_unit","c9_red_u","c9_fight"]}
  11. /execute as @e[tag=c9_blue_u,tag=c9_march] at @s if entity @e[tag=c9_red_u,distance=..3] run data merge entity @s {NoAI:0b,Tags:["c9_unit","c9_blue_u","c9_fight"]}
  12. /execute as @e[tag=c9_fight] at @s run particle sweep_attack ~ ~1 ~ 0.4 0.3 0.4 0 1 force
  13. /execute at @e[tag=c9_red_u] run particle dust{color:[1.0,0.15,0.05],scale:1.6} ~ ~1.1 ~ 0.35 0.5 0.35 0 2 force
  14. /execute at @e[tag=c9_blue_u] run particle dust{color:[0.05,0.75,1.0],scale:1.6} ~ ~1.1 ~ 0.35 0.5 0.35 0 2 force

How it works

Frames from the test run

Automated Undead Battalion - frame 1Automated Undead Battalion - frame 2Automated Undead Battalion - frame 3

Recorded on our own test server: 40 frames at about 7.9 fps. Our image check saw: Two rows of red and blue glowing armored undead mobs march from beneath giant glowing banners to clash in the center of a dark arena.

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. Find a flat area at least 35x25 blocks in size and stand at the center.
  2. Run each of the 10 setup commands in chat to build the blackstone arena, central magma trench, teams, and glowing faction banners.
  3. Place a row of 14 Repeating Command Blocks (or 1 Repeating followed by 13 Chain Command Blocks) nearby.
  4. Paste the 14 loop commands into the command blocks in order and set all of them to Always Active.
  5. Watch as full ranks of 20 glowing undead troops assemble on both sides, march to the center, and battle automatically every 6.5 seconds.

Use it with real players

To command a battalion yourself, join either team with /team join c9_red @s or /team join c9_blue @s and summon the spawner markers relative to a custom dropped banner or player tag so your personal vanguard marches forward whenever you blow a goat horn.

Remove it again 7 commands

  1. /kill @e[tag=c9_unit]
  2. /kill @e[tag=c9_node]
  3. /execute at @e[type=item_display,distance=..25] run kill @s
  4. /team remove c9_red
  5. /team remove c9_blue
  6. /scoreboard objectives remove c9_tick
  7. /fill ~-14 ~-1 ~-7 ~14 ~-1 ~7 grass_block

FAQ

How did you spawn a full 5x2 formation with only two summon commands per team?

By running the summon commands for 5 consecutive ticks (ticks 2 to 6) and teleporting all spawned units 2 blocks sideways along the Z axis each tick during that window, the troops automatically spread into neat rows.

Can I change the weapons or armor of the two armies?

Yes. Edit the <code>equipment</code> compound in loop commands 4 through 7 to swap in bows, tridents, or custom enchanted armor for either battalion.

Commands used

/data/execute/fill/kill/particle/scoreboard/summon/team/tp

Similar creations

Join 9Minecraft News & Guides