Transform any flat arena into an automated warzone where Crimson Legion and Azure Guard undead battalions march in lockstep and clash with glowing effects.
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.
/scoreboard objectives add c9_tick dummy/scoreboard players set #time c9_tick 0/team add c9_red/team modify c9_red color red/team add c9_blue/team modify c9_blue color aqua/fill ~-14 ~-1 ~-7 ~14 ~-1 ~7 polished_blackstone_bricks/fill ~-1 ~-1 ~-7 ~1 ~-1 ~7 magma_block/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]}}]}/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]}}]}/scoreboard players add #time c9_tick 1/execute if score #time c9_tick matches 130.. run scoreboard players set #time c9_tick 1/execute if score #time c9_tick matches 1 run kill @e[tag=c9_unit,distance=..25]/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"}}}/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"}}}/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"}}}/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"}}}/execute if score #time c9_tick matches 2..6 as @e[tag=c9_unit] at @s run tp @s ~ ~ ~2/execute as @e[tag=c9_march] at @s run tp @s ^ ^ ^0.22/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"]}/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"]}/execute as @e[tag=c9_fight] at @s run particle sweep_attack ~ ~1 ~ 0.4 0.3 0.4 0 1 force/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/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 forceloop #4 During ticks 2 through 6, the red spawner summons armored zombies and wither skeletons at the northern edge of the formation while loop command 8 shifts existing units 2 blocks south each tick, building a clean 5-wide, 2-deep rank.loop #9 Any unit still holding the <code>c9_march</code> tag is moved forward 0.22 blocks per tick using local coordinates (<code>^ ^ ^0.22</code>) along its facing angle.loop #10 When marching Crimson and Azure soldiers come within 3 blocks of an enemy at the central line, <code>/data merge</code> switches <code>NoAI</code> to <code>0b</code> and swaps their tag to <code>c9_fight</code> so they clash and trigger sweep attack particles.


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.
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.
/kill @e[tag=c9_unit]/kill @e[tag=c9_node]/execute at @e[type=item_display,distance=..25] run kill @s/team remove c9_red/team remove c9_blue/scoreboard objectives remove c9_tick/fill ~-14 ~-1 ~-7 ~14 ~-1 ~7 grass_blockBy 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.
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.
▶Charging Vindicator CavalryMob ParadesEasy24 cmds
▶March of the Clone LegionMob ParadesMedium24 cmds
▶Sculk vs. Skeleton WarMob ParadesMedium21 cmds
▶Synchronized Pillager BattalionMob ParadesMedium24 cmds
▶Choreographed Mob PatrolsMob ParadesMedium23 cmds
▶Automated Tower Defense WaveMob ParadesHard24 cmds