Two custom-equipped mob squads clash in a tactical arena with command-driven pathfinding, glowing team auras, and laser projectile combat.
Custom MobsTechnologyRedBlueMini-gameCinematicPvPArmor standsSummoned mobsBlock building (fill/setblock/clone)Rotation math21+ commands
Watch two rival squads—Red Crimson and Blue Azure—clash in an automated tactical firefight across a custom barrier battlefield. Each soldier uses command-driven pathfinding to advance on the nearest enemy, keep tactical spacing, and fire glowing laser projectiles.
Casualties are automatically reinforced from the team bunkers, keeping the frontline active with particle tracers, hit explosions, and glowing team outlines.
/scoreboard objectives add c9_t dummy/team add c9_red/team modify c9_red color red/team add c9_blue/team modify c9_blue color aqua/fill ~-12 ~ ~-7 ~-12 ~1 ~7 red_nether_bricks/fill ~12 ~ ~-7 ~12 ~1 ~7 prismarine_bricks/fill ~-2 ~ ~-5 ~2 ~1 ~5 stone_brick_slab replace air/summon marker ~ ~ ~ {Tags:["c9_m","c9_ctrl"]}/execute as @e[tag=c9_ctrl] run scoreboard players add @s c9_t 1/execute as @e[tag=c9_ctrl,scores={c9_t=40..}] run scoreboard players set @s c9_t 0/execute if entity @e[tag=c9_ctrl,scores={c9_t=1}] unless entity @e[tag=c9_red,limit=4] at @e[tag=c9_ctrl] run summon husk ~-10 ~ ~ {Tags:["c9_m","c9_unit","c9_red"],Team:"c9_red",Glowing:1b,CustomName:'{"text":"Crimson Unit","color":"red"}',equipment:{mainhand:{id:"minecraft:crossbow",count:1},head:{id:"minecraft:red_stained_glass",count:1},chest:{id:"minecraft:Golden_chestplate",count:1}}}/execute if entity @e[tag=c9_ctrl,scores={c9_t=21}] unless entity @e[tag=c9_blue,limit=4] at @e[tag=c9_ctrl] run summon stray ~10 ~ ~ {Tags:["c9_m","c9_unit","c9_blue"],Team:"c9_blue",Glowing:1b,CustomName:'{"text":"Azure Unit","color":"aqua"}',equipment:{mainhand:{id:"minecraft:bow",count:1},head:{id:"minecraft:blue_stained_glass",count:1},chest:{id:"minecraft:diamond_chestplate",count:1}}}/execute as @e[tag=c9_red] at @s facing entity @e[tag=c9_blue,sort=nearest,limit=1] feet run tp @s ~ ~ ~ ~ 0/execute as @e[tag=c9_blue] at @s facing entity @e[tag=c9_red,sort=nearest,limit=1] feet run tp @s ~ ~ ~ ~ 0/execute as @e[tag=c9_red] at @s unless entity @e[tag=c9_blue,distance=..6] if block ~ ~-1 ~ grass_block run tp @s ^ ^ ^0.18/execute as @e[tag=c9_blue] at @s unless entity @e[tag=c9_red,distance=..6] if block ~ ~-1 ~ grass_block run tp @s ^ ^ ^0.18/execute if entity @e[tag=c9_ctrl,scores={c9_t=10}] as @e[tag=c9_red] at @s if entity @e[tag=c9_blue,distance=..18] run summon armor_stand ~ ~1.2 ~ {Tags:["c9_m","c9_proj","c9_pred"],Invisible:1b,Marker:1b,NoGravity:1b,Rotation:[0f,0f]}/execute if entity @e[tag=c9_ctrl,scores={c9_t=30}] as @e[tag=c9_blue] at @s if entity @e[tag=c9_red,distance=..18] run summon armor_stand ~ ~1.2 ~ {Tags:["c9_m","c9_proj","c9_pblue"],Invisible:1b,Marker:1b,NoGravity:1b,Rotation:[0f,0f]}/execute as @e[tag=c9_pred] at @s facing entity @e[tag=c9_blue,sort=nearest,limit=1] eyes run tp @s ^ ^ ^0.7 ~ ~/execute as @e[tag=c9_pblue] at @s facing entity @e[tag=c9_red,sort=nearest,limit=1] eyes run tp @s ^ ^ ^0.7 ~ ~/execute at @e[tag=c9_pred] run particle dust{color:[1.0,0.1,0.1],scale:1.2} ~ ~ ~ 0.05 0.05 0.05 0 3 force/execute at @e[tag=c9_pblue] run particle dust{color:[0.1,0.8,1.0],scale:1.2} ~ ~ ~ 0.05 0.05 0.05 0 3 forceloop #3 Checks every 2 seconds if the Red team has fewer than 4 active soldiers. If so, it spawns a glowing Crimson Unit husk in full armor near the red bunker.loop #5 Rotates every Red unit to face the nearest Blue unit using <code>facing entity</code> so they always aim directly at their closest target.loop #7 Moves Red units forward by 0.18 blocks per tick along their line of sight until they get within 6 blocks of a Blue unit, creating automatic firing lines.loop #11 Steers Red laser projectiles toward the nearest Blue soldier's eyes at 0.7 blocks per tick.


Recorded on our own test server: 59 frames at about 9.8 fps. Our image check saw: Glowing red and blue soldiers battle with red laser particle trails around a stone brick barrier between two colored walls.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
To join the battle yourself, run /team join c9_red @s and /tag @s add c9_red (or c9_blue). Enemy units and homing projectiles will immediately lock onto you alongside your AI squadmates.
/kill @e[tag=c9_m]/fill ~-12 ~ ~-7 ~12 ~1 ~7 air replace red_nether_bricks/fill ~-12 ~ ~-7 ~12 ~1 ~7 air replace prismarine_bricks/fill ~-2 ~ ~-5 ~2 ~1 ~5 air replace stone_brick_slab/scoreboard objectives remove c9_t/team remove c9_red/team remove c9_blueHusks do not burn in daylight, and giving strays a stained glass helmet prevents sun damage too, so the battle works at any time of day.
Change <code>limit=4</code> inside the two unit summon commands (loop commands 3 and 4) to a higher number like <code>limit=8</code>.
▶Thread-Spinning Loom Weaver BossCustom MobsExpert23 cmds
▶Da Vinci Ornithopter Griffin AutomatonCustom MobsExpert24 cmds
▶Neon Cyberpunk Hologram KitsuneCustom MobsHard24 cmds
▶Prismatic Stained-Glass Peacock UnfurlingCustom MobsHard24 cmds
▶Steampunk Espresso Machine GolemCustom MobsHard23 cmds
▶Sub-Atomic Electron Cloud ElementalCustom MobsHard24 cmds