Self-Playing Arena Duelists

Watch two autonomous armored champions strafe, dodge a central hazard, and trade homing elemental fireballs and frost bolts inside an obsidian and quartz arena.

Java EditionComplex Contraptions & CinematicsExpert24 commandsTested on a real 26.2 & 26.3 server
Glowing fire and ice armor stand duelists battle with elemental trails inside a custom Minecraft arena. Download the GIF Video & GIF © www.9minecraft.net

SimulationsFireIceOrangeBlueWhiteCinematicMini-gameLearningBlock displaysArmor standsBlock building (fill/setblock/clone)Glowing outlinesRotation math21+ commands

This command creation builds an obsidian and quartz battle arena where two autonomous armor stand champions fight each other without any player input. Driven by a central rotating pivot and scoreboard timers, the Red Blaze and Blue Frost duelists circle the arena, dodge an erupting magma core, and fire glowing homing projectiles.

Each champion leaves an elemental trail as they strafe, while their projectiles use relative vector execution to track their opponent across the stage and trigger explosive particle impacts on contact.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_timer dummy
  2. /fill ~-8 ~-1 ~-8 ~8 ~-1 ~8 crying_obsidian
  3. /fill ~-6 ~-1 ~-6 ~6 ~-1 ~6 polished_blackstone_bricks
  4. /fill ~-8 ~ ~-8 ~8 ~1 ~8 quartz_bricks outline
  5. /fill ~-7 ~ ~-7 ~7 ~2 ~7 air
  6. /fill ~-5 ~ ~-5 ~-5 ~3 ~-5 quartz_pillar
  7. /fill ~5 ~ ~5 ~5 ~3 ~5 quartz_pillar
  8. /fill ~-1 ~-1 ~-1 ~1 ~-1 ~1 magma_block
  9. /summon armor_stand ~ ~ ~ {Tags:["c9_ent","c9_core"],Invisible:1b,NoGravity:1b,Marker:1b}
  10. /summon armor_stand ~-4 ~ ~ {Tags:["c9_ent","c9_fighter","c9_red"],CustomName:{"text":"Blaze Champion","color":"red","bold":true},CustomNameVisible:1b,Glowing:1b,NoGravity:1b,ShowArms:1b,equipment:{head:{id:"minecraft:golden_helmet",count:1},chest:{id:"minecraft:NETHERITE_chestplate",count:1},legs:{id:"minecraft:golden_leggings",count:1},feet:{id:"minecraft:golden_boots",count:1},mainhand:{id:"minecraft:blaze_rod",count:1},offhand:{id:"minecraft:shield",count:1}}}

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

  1. /execute unless entity @e[tag=c9_blue] run summon armor_stand ~4 ~ ~ {Tags:["c9_ent","c9_fighter","c9_blue"],CustomName:{"text":"Frost Champion","color":"aqua","bold":true},CustomNameVisible:1b,Glowing:1b,NoGravity:1b,ShowArms:1b,equipment:{head:{id:"minecraft:diamond_helmet",count:1},chest:{id:"minecraft:diamond_chestplate",count:1},legs:{id:"minecraft:iron_leggings",count:1},feet:{id:"minecraft:diamond_boots",count:1},mainhand:{id:"minecraft:breeze_rod",count:1},offhand:{id:"minecraft:trident",count:1}}}
  2. /scoreboard players add @e[tag=c9_core] c9_timer 1
  3. /execute as @e[tag=c9_core,scores={c9_timer=60..}] run scoreboard players set @s c9_timer 0
  4. /execute as @e[tag=c9_core] at @s run tp @s ~ ~ ~ ~6 ~
  5. /execute at @e[tag=c9_core] unless entity @e[tag=c9_core,scores={c9_timer=20..35}] run tp @e[tag=c9_red,limit=1] ^4.2 ^ ^
  6. /execute at @e[tag=c9_core] if entity @e[tag=c9_core,scores={c9_timer=20..35}] run tp @e[tag=c9_red,limit=1] ^6.2 ^0.6 ^
  7. /execute at @e[tag=c9_core] unless entity @e[tag=c9_core,scores={c9_timer=20..35}] run tp @e[tag=c9_blue,limit=1] ^-4.2 ^ ^
  8. /execute at @e[tag=c9_core] if entity @e[tag=c9_core,scores={c9_timer=20..35}] run tp @e[tag=c9_blue,limit=1] ^-6.2 ^0.6 ^
  9. /execute as @e[tag=c9_red] at @s run tp @s ~ ~ ~ facing entity @e[tag=c9_blue,limit=1] feet
  10. /execute as @e[tag=c9_blue] at @s run tp @s ~ ~ ~ facing entity @e[tag=c9_red,limit=1] feet
  11. /execute at @e[tag=c9_red] run particle flame ~ ~1 ~ 0.25 0.5 0.25 0.03 5 force
  12. /execute at @e[tag=c9_blue] run particle soul_fire_flame ~ ~1 ~ 0.25 0.5 0.25 0.03 5 force
  13. /execute if entity @e[tag=c9_core,scores={c9_timer=10}] at @e[tag=c9_red] run summon block_display ~ ~1.2 ~ {Tags:["c9_ent","c9_proj","c9_rproj"],Glowing:1b,block_state:{Name:"minecraft:magma_block"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.25f,-0.25f,-0.25f],scale:[0.5f,0.5f,0.5f]}}
  14. /execute if entity @e[tag=c9_core,scores={c9_timer=40}] at @e[tag=c9_blue] run summon block_display ~ ~1.2 ~ {Tags:["c9_ent","c9_proj","c9_bproj"],Glowing:1b,block_state:{Name:"minecraft:blue_ice"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.25f,-0.25f,-0.25f],scale:[0.5f,0.5f,0.5f]}}

How it works

Frames from the test run

Self-Playing Arena Duelists - frame 1Self-Playing Arena Duelists - frame 2Self-Playing Arena Duelists - frame 3

Recorded on our own test server: 59 frames at about 9.8 fps. Our image check saw: An arena made of quartz and blackstone with a magma center contains glowing armor stand duelists moving around, leaving orange and blue flame particle trails, and shooting glowing block projectiles, though their custom names show raw unparsed JSON text.

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. Choose a flat open area of at least 20x20 blocks and stand at the center.
  2. Run each of the 10 setup commands in chat or in impulse command blocks triggered once to build the arena and summon the core and Red Champion.
  3. Notice that armor item IDs are lowercase; in setup command 10, make sure minecraft:netherite_chestplate is all lowercase if typing manually.
  4. Place 14 repeating command blocks in a line or stack near the arena, set them all to Always Active, and paste one loop command into each block.
  5. Add two extra repeating command blocks if you want the block_display projectiles to home in and expire: move c9_rproj toward c9_blue with /execute as @e[tag=c9_rproj] at @s facing entity @e[tag=c9_blue,limit=1] eyes run tp @s ^ ^ ^0.5 and kill old projectiles when the timer resets.
  6. Step back and watch the two champions strafe, leap back from the center, and cast elemental effects automatically.

Use it with real players

To fight one of the champions yourself, remove the c9_blue armor stand and replace references to @e[tag=c9_blue,limit=1] in the facing and projectile targeting commands with @p. The Red Blaze Champion will continuously strafe around the central pillar while always turning to face you and launching projectiles toward your position.

Remove it again 4 commands

  1. /kill @e[tag=c9_ent]
  2. /scoreboard objectives remove c9_timer
  3. /fill ~-8 ~ ~-8 ~8 ~4 ~8 air
  4. /fill ~-8 ~-1 ~-8 ~8 ~-1 ~8 grass_block

FAQ

Why did the armor stands drift outside the arena in older setups?

Using relative facing movements without anchoring to a center pivot causes rounding drift over time. Anchoring the fighters' local caret coordinates directly to a rotating central core guarantees they stay inside the arena walls forever.

Can I change the speed of the duelists?

Yes. Change the rotation angle in the fourth loop command from ~6 ~ to a higher number like ~10 ~ to make both champions circle the arena faster.

Commands used

/execute/fill/particle/scoreboard/summon/tp

Similar creations

Join 9Minecraft News & Guides