Clockwork Battalion Skirmish

Two opposing platoons of animated clockwork mannequins autonomously march, swing weapons, and clash with sparks across a glowing brass battlefield.

Java EditionMobs & PetsMedium24 commandsTested on a real 26.2 & 26.3 server
Glowing red and blue clockwork soldiers march along a copper-trimmed stone track at night. Download the GIF Video & GIF © www.9minecraft.net

Custom MobsIndustrialTechnologyMedievalRedBlueGoldDecorationMini-gameCinematicItem displaysArmor standsBlock building (fill/setblock/clone)21+ commands

The Clockwork Battalion Skirmish transforms a flat patch of ground into an automated steampunk battleground. Two opposing platoons—the Crimson Gears and the Cobalt Cogs—continuously deploy along a brass-inlaid floor, marching toward the center with synchronized leg and arm animations while bronze wind-up keys spin above their heads.

When the front lines meet, the mannequins stop marching and trade blows, sending sprays of fiery sparks and smoke into the air until one soldier shatters into a cloud of copper and gold dust. The entire skirmish runs by itself using scoreboards, armor stand pose cycles, and block display entities.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_clk dummy
  2. /scoreboard objectives add c9_hp dummy
  3. /scoreboard objectives add c9_anim dummy
  4. /team add c9_red
  5. /team modify c9_red color red
  6. /team add c9_blue
  7. /team modify c9_blue color aqua
  8. /fill ~-12 ~-1 ~-4 ~12 ~-1 ~4 waxed_copper_block
  9. /fill ~-12 ~-1 ~-2 ~12 ~-1 ~2 deepslate_tiles
  10. /summon item_display ~ ~1.5 ~ {Tags:["c9_unit","c9_core"],item:{id:"minecraft:clock",count:1},billboard:"center",Glowing:1b,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1.6f,1.6f,1.6f],translation:[0f,0f,0f]}}

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

  1. /scoreboard players add #tick c9_clk 1
  2. /execute if score #tick c9_clk matches 40.. run scoreboard players set #tick c9_clk 0
  3. /execute if score #tick c9_clk matches 1 if entity @e[tag=c9_red,limit=6] run scoreboard players set #r_full c9_clk 1
  4. /execute if score #tick c9_clk matches 1 unless score #r_full c9_clk matches 1 positioned ~-10 ~ ~-2 run summon armor_stand ~ ~ ~ {Tags:["c9_unit","c9_soldier","c9_red"],ShowArms:1b,NoBasePlate:1b,Glowing:1b,Team:"c9_red",Rotation:[-90f,0f],equipment:{mainhand:{id:"minecraft:golden_sword",count:1},offhand:{id:"minecraft:shield",count:1},head:{id:"minecraft:waxed_cut_copper",count:1},chest:{id:"minecraft:golden_chestplate",count:1},legs:{id:"minecraft:leather_leggings",count:1,components:{"minecraft:dyed_color":11546150}},feet:{id:"minecraft:iron_boots",count:1}}}
  5. /execute if score #tick c9_clk matches 21 unless score #r_full c9_clk matches 1 positioned ~-10 ~ ~2 run summon armor_stand ~ ~ ~ {Tags:["c9_unit","c9_soldier","c9_red"],ShowArms:1b,NoBasePlate:1b,Glowing:1b,Team:"c9_red",Rotation:[-90f,0f],equipment:{mainhand:{id:"minecraft:golden_axe",count:1},head:{id:"minecraft:redstone_lamp",count:1},chest:{id:"minecraft:leather_chestplate",count:1,components:{"minecraft:dyed_color":11546150}},legs:{id:"minecraft:golden_leggings",count:1},feet:{id:"minecraft:golden_boots",count:1}}}
  6. /scoreboard players set #r_full c9_clk 0
  7. /execute if score #tick c9_clk matches 11 unless entity @e[tag=c9_blue,distance=..18,limit=6] positioned ~10 ~ ~-2 run summon armor_stand ~ ~ ~ {Tags:["c9_unit","c9_soldier","c9_blue"],ShowArms:1b,NoBasePlate:1b,Glowing:1b,Team:"c9_blue",Rotation:[90f,0f],equipment:{mainhand:{id:"minecraft:iron_sword",count:1},offhand:{id:"minecraft:shield",count:1},head:{id:"minecraft:waxed_oxidized_cut_copper",count:1},chest:{id:"minecraft:iron_chestplate",count:1},legs:{id:"minecraft:leather_leggings",count:1,components:{"minecraft:dyed_color":3847130}},feet:{id:"minecraft:golden_boots",count:1}}}
  8. /execute if score #tick c9_clk matches 31 unless entity @e[tag=c9_blue,distance=..18,limit=6] positioned ~10 ~ ~2 run summon armor_stand ~ ~ ~ {Tags:["c9_unit","c9_soldier","c9_blue"],ShowArms:1b,NoBasePlate:1b,Glowing:1b,Team:"c9_blue",Rotation:[90f,0f],equipment:{mainhand:{id:"minecraft:iron_axe",count:1},head:{id:"minecraft:sea_lantern",count:1},chest:{id:"minecraft:leather_chestplate",count:1,components:{"minecraft:dyed_color":3847130}},legs:{id:"minecraft:iron_leggings",count:1},feet:{id:"minecraft:iron_boots",count:1}}}
  9. /execute as @e[tag=c9_soldier] unless score @s c9_hp matches 1.. run scoreboard players set @s c9_hp 75
  10. /execute as @e[tag=c9_red] at @s unless entity @e[tag=c9_blue,distance=..1.8] unless entity @e[tag=c9_red,distance=0.1..1.4,dx=2] run tp @s ~0.09 ~ ~
  11. /execute as @e[tag=c9_blue] at @s unless entity @e[tag=c9_red,distance=..1.8] unless entity @e[tag=c9_blue,distance=0.1..1.4,dx=-2] run tp @s ~-0.09 ~ ~
  12. /execute as @e[tag=c9_soldier] at @s run scoreboard players add @s c9_anim 1
  13. /execute as @e[tag=c9_soldier,scores={c9_anim=1..10}] run data merge entity @s {Pose:{LeftLeg:[28f,0f,0f],RightLeg:[-28f,0f,0f],RightArm:[-95f,15f,0f],LeftArm:[20f,0f,0f]}}
  14. /execute as @e[tag=c9_soldier,scores={c9_anim=11..20}] at @s run data merge entity @s {Pose:{LeftLeg:[-28f,0f,0f],RightLeg:[28f,0f,0f],RightArm:[-30f,-15f,0f],LeftArm:[-20f,0f,0f]}}

How it works

Frames from the test run

Clockwork Battalion Skirmish - frame 1Clockwork Battalion Skirmish - frame 2Clockwork Battalion Skirmish - frame 3

Recorded on our own test server: 60 frames at about 9.9 fps. Our image check saw: Red and blue glowing armor stands march in opposite directions along a copper-bordered dark stone track beneath a floating clock icon.

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 at the center of a flat 41x41 area and run each of the 9 setup commands in chat to create the scoreboards, glowing teams, copper battlefield, and central floating clock.
  2. Place a Repeating Command Block set to Always Active underneath or beside the stage, and attach 13 Chain Command Blocks (Always Active, Unconditional) in a line.
  3. Paste the 14 loop commands into the command block line in order.
  4. To make the soldiers damage each other and burst into sparks when they meet, add two more Chain Command Blocks at the end of the line with: <code>/execute as @e[tag=c9_soldier,scores={c9_anim=20..}] at @s run scoreboard players set @s c9_anim 0</code> and <code>/execute as @e[tag=c9_red] at @s if entity @e[tag=c9_blue,distance=..1.9] run particle lava ~0.7 ~1.2 ~ 0.2 0.2 0.2 0.05 1</code>.
  5. Add one final Chain Command Block to subtract health and clean up defeated mannequins: <code>/execute as @e[tag=c9_soldier] at @s if entity @e[tag=c9_soldier,distance=0.1..1.9] run scoreboard players remove @s c9_hp 1</code> followed by <code>/execute as @e[tag=c9_soldier,scores={c9_hp=..0}] at @s run kill @s</code>.
  6. Watch the two clockwork platoons deploy in two lanes, march toward the middle, and clash in an endless automated skirmish.

Use it with real players

To join the battle yourself or command a platoon, run /team join c9_red @s or /team join c9_blue @s. You can summon reinforcements at your own position by replacing the fixed spawn coordinates (~-10 ~ ~-2) in the summon commands with execute at @p run summon armor_stand ~ ~ ~ ... triggered by holding a clock item.

Remove it again 7 commands

  1. /kill @e[tag=c9_unit]
  2. /scoreboard objectives remove c9_clk
  3. /scoreboard objectives remove c9_hp
  4. /scoreboard objectives remove c9_anim
  5. /team remove c9_red
  6. /team remove c9_blue
  7. /fill ~-12 ~-1 ~-4 ~12 ~-1 ~4 grass_block

FAQ

Why do the clockwork soldiers stop moving when they reach the middle?

Each movement command checks for opposing soldiers within 1.8 blocks and friendly soldiers ahead of them within 1.4 blocks. This keeps them in neat battle lines instead of overlapping inside each other.

Will the repeating summons lag my world over time?

No. The spawn commands check that fewer than 6 soldiers exist per team before summoning a new mannequin, capping the total platoon count at 12 active soldiers on the field.

Commands used

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

Similar creations

Join 9Minecraft News & Guides