Build a self-running arena where Red Piglin Brutes and Blue Iron Golems are tricked into fighting each other using command-driven aggro.
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.
/scoreboard objectives add c9_timer dummy/team add c9_red/team modify c9_red color red/team add c9_blue/team modify c9_blue color aqua/fill ~-12 ~-1 ~-8 ~12 ~3 ~8 stone_bricks hollow/fill ~-12 ~2 ~-8 ~12 ~3 ~8 air/fill ~-11 ~-1 ~-7 ~-1 ~-1 ~7 red_terracotta/fill ~1 ~-1 ~-7 ~11 ~-1 ~7 blue_terracotta/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}}/scoreboard players add @e[tag=c9_ctrl] c9_timer 1/scoreboard players set @e[tag=c9_ctrl,scores={c9_timer=100..}] c9_timer 1/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},{}]}/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},{}]}/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}/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]}/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/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]}/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/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/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/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/particle flame ~-10 ~0.5 ~ 0.2 1.2 4 0.01 3/particle soul_fire_flame ~10 ~0.5 ~ 0.2 1.2 4 0.01 3setup #3 Creates the Red and Blue scoreboard teams with colored glowing outlines so you can easily tell the two armies apart in the middle of combat.loop #3 Spawns Red Piglin Brutes with <code>IsImmuneToZombification:1b</code> so they do not turn into zombified piglins in the Overworld, while capping their active count at 4.loop #6 Summons a downward-moving snowball right above each Red mob's head every 5 seconds.loop #7 Copies the <code>UUID</code> of the nearest Blue mob into the snowball's <code>Owner</code> tag before it lands. When the snowball hits the Red mob a tick later, Minecraft thinks the Blue mob threw it, forcing immediate aggro.


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.
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.
/kill @e[tag=c9_entity]/team remove c9_red/team remove c9_blue/scoreboard objectives remove c9_timer/fill ~-12 ~-1 ~-8 ~12 ~3 ~8 air/fill ~-12 ~-1 ~-8 ~12 ~-1 ~8 grass_blockThey are summoned with the NBT tag IsImmuneToZombification:1b, which keeps them in their normal Nether state indefinitely.
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.
▶Fangs of the Arrow-Proof WarlordCustom MobsMedium21 cmds
▶Chaotic Monster Coliseum ClashCustom MobsMedium24 cmds
▶Da Vinci Ornithopter Griffin AutomatonCustom MobsExpert24 cmds
▶Lumbering Walking Castle BossCustom MobsExpert20 cmds
▶Stealth Assassins vs Armored Champions ArenaCustom MobsMedium24 cmds
▶Armed Villager Militia BattleCustom MobsMedium24 cmds