Command-Forced Faction Skirmish: Red vs Blue Arena

Build a self-running arena where Red Piglin Brutes and Blue Iron Golems are tricked into fighting each other using command-driven aggro.

Java EditionMobs & PetsEasy24 commandsTested on a real 26.2 & 26.3 server
Glowing red and blue mobs battle inside a split-color faction skirmish arena in Minecraft. Download the GIF Video & GIF © www.9minecraft.net

Custom MobsMedievalNetherRedBlueWhiteMini-gameMap MakingLearningText displaysSummoned mobsBlock building (fill/setblock/clone)21+ commands

Normally, neutral and passive mobs like Iron Golems and zombified Piglin Brutes ignore each other unless provoked. This creation builds a split-color gladiatorial arena and uses invisible snowballs with falsified Owner data to trick two custom-named armies into an all-out, self-sustaining war.

Each side features glowing team outlines, custom weapons, floating faction banners, and periodic reinforcement waves that clash right at the center of the arena.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_timer dummy
  2. /team add c9_red
  3. /team modify c9_red color red
  4. /team add c9_blue
  5. /team modify c9_blue color aqua
  6. /fill ~-12 ~-1 ~-8 ~12 ~3 ~8 stone_bricks hollow
  7. /fill ~-12 ~2 ~-8 ~12 ~3 ~8 air
  8. /fill ~-11 ~-1 ~-7 ~-1 ~-1 ~7 red_terracotta
  9. /fill ~1 ~-1 ~-7 ~11 ~-1 ~7 blue_terracotta
  10. /summon text_display ~ ~4.5 ~ {Tags:["c9_entity","c9_ctrl"],billboard:"center",background:1073741824,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[2.2f,2.2f,2.2f]},text:{"text":"⚔ FACTION SKIRMISH ⚔","color":"gold","bold":true}}

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

  1. /scoreboard players add @e[tag=c9_ctrl] c9_timer 1
  2. /scoreboard players set @e[tag=c9_ctrl,scores={c9_timer=100..}] c9_timer 1
  3. /execute if entity @e[tag=c9_ctrl,scores={c9_timer=2}] if entity @e[tag=c9_red,limit=1] unless entity @e[tag=c9_red,limit=4] run summon piglin_brute ~-8 ~ ~-2 {Tags:["c9_entity","c9_mob","c9_red"],Team:"c9_red",IsImmuneToZombification:1b,Glowing:1b,CustomName:{"text":"Red Vanguard","color":"red"},CustomNameVisible:1b,hand_items:[{id:"minecraft:golden_axe",count:1},{}]}
  4. /execute if entity @e[tag=c9_ctrl,scores={c9_timer=2}] unless entity @e[tag=c9_red,limit=1] run summon piglin_brute ~-8 ~ ~2 {Tags:["c9_entity","c9_mob","c9_red"],Team:"c9_red",IsImmuneToZombification:1b,Glowing:1b,CustomName:{"text":"Red Champion","color":"red"},CustomNameVisible:1b,hand_items:[{id:"minecraft:netherite_sword",count:1},{}]}
  5. /execute if entity @e[tag=c9_ctrl,scores={c9_timer=2}] unless entity @e[tag=c9_blue,limit=2] run summon iron_golem ~8 ~ ~ {Tags:["c9_entity","c9_mob","c9_blue"],Team:"c9_blue",Glowing:1b,CustomName:{"text":"Blue Sentinel","color":"aqua"},CustomNameVisible:1b,attributes:[{id:"minecraft:max_health",base:45.0d}],Health:45.0f}
  6. /execute if entity @e[tag=c9_ctrl,scores={c9_timer=15}] as @e[tag=c9_red] at @s run summon snowball ~ ~2.3 ~ {Tags:["c9_entity","c9_hit_red"],Motion:[0.0,-0.6,0.0]}
  7. /execute if entity @e[tag=c9_ctrl,scores={c9_timer=15}] as @e[tag=c9_hit_red] run data modify entity @s Owner set from entity @e[tag=c9_blue,sort=nearest,limit=1] UUID
  8. /execute if entity @e[tag=c9_ctrl,scores={c9_timer=25}] as @e[tag=c9_blue] at @s run summon snowball ~ ~3.1 ~ {Tags:["c9_entity","c9_hit_blue"],Motion:[0.0,-0.6,0.0]}
  9. /execute if entity @e[tag=c9_ctrl,scores={c9_timer=25}] as @e[tag=c9_hit_blue] run data modify entity @s Owner set from entity @e[tag=c9_red,sort=nearest,limit=1] UUID
  10. /execute at @e[tag=c9_red] run particle dust{color:[1.0,0.15,0.1],scale:1.4} ~ ~1 ~ 0.35 0.5 0.35 0 2
  11. /execute at @e[tag=c9_blue] run particle dust{color:[0.1,0.75,1.0],scale:1.4} ~ ~1.4 ~ 0.45 0.6 0.45 0 2
  12. /execute at @e[tag=c9_red] if entity @e[tag=c9_blue,distance=..3.5] run particle crit ~ ~1.2 ~ 0.4 0.4 0.4 0.15 4
  13. /particle flame ~-10 ~0.5 ~ 0.2 1.2 4 0.01 3
  14. /particle soul_fire_flame ~10 ~0.5 ~ 0.2 1.2 4 0.01 3

How it works

Frames from the test run

Command-Forced Faction Skirmish: Red vs Blue Arena - frame 1Command-Forced Faction Skirmish: Red vs Blue Arena - frame 2Command-Forced Faction Skirmish: Red vs Blue Arena - frame 3

Recorded on our own test server: 56 frames at about 9.2 fps. Our image check saw: A split red-and-blue arena labeled 'FACTION SKIRMISH' where a red-outlined mob fights a blue-outlined mob until the red one dies.

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 in the center of a flat open area and run the 10 setup commands in chat to build the arena, create the teams, and summon the floating title controller.
  2. Place a line of 14 Repeating Command Blocks set to Always Active near the arena.
  3. Paste each of the 14 loop commands into its own Repeating Command Block.
  4. Make sure the loop commands execute relative to the arena center (or wrap them with /execute positioned X Y Z run ... matching where you stood during setup).
  5. Watch as the Red Piglin Brutes and Blue Iron Golems spawn at opposite ends, get struck by invisible aggro snowballs, and charge into battle.

Use it with real players

To join the battle yourself, run /team join c9_red @s or /team join c9_blue @s and give yourself the matching tag with /tag @s add c9_red (or c9_blue). Enemy mobs will automatically target you alongside your faction's NPC fighters.

Remove it again 6 commands

  1. /kill @e[tag=c9_entity]
  2. /team remove c9_red
  3. /team remove c9_blue
  4. /scoreboard objectives remove c9_timer
  5. /fill ~-12 ~-1 ~-8 ~12 ~3 ~8 air
  6. /fill ~-12 ~-1 ~-8 ~12 ~-1 ~8 grass_block

FAQ

Why don't the Piglin Brutes turn into Zombified Piglins in the Overworld?

They are summoned with the NBT tag IsImmuneToZombification:1b, which keeps them in their normal Nether state indefinitely.

How do you make two mobs fight each other in Vanilla Minecraft?

By summoning a snowball just above Mob A and copying Mob B's UUID into the snowball's Owner NBT tag. When the snowball hits Mob A, the game registers it as an attack from Mob B.

Commands used

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

Similar creations

Join 9Minecraft News & Guides