Orbiting Guardian Blades

Four glowing diamond swords orbit a floating sentinel in smooth formation, darting outward with cyan trails to slash any creatures wandering into range.

Java EditionWands, Weapons & ToolsMedium24 commandsTested on a real 26.2 & 26.3 server
Four glowing diamond swords orbit a Minecraft figure at night, attacking nearby husks. Download the GIF Video & GIF © www.9minecraft.net

Melee WeaponsMysticMedievalCyanWhitePvPAdventure MapBoss FightItem displaysArmor standsSmooth animation (interpolation)Summoned mobsSoundsRotation math21+ commands

A ring of four enchanted diamond_sword display entities glides in a tilted halo around a hovering sentinel, leaving a continuous cyan dust trail in the air.

Whenever a creature steps within seven blocks, the blades take turns breaking formation, streaking forward to deliver a knockback slash with sweep particles before smoothly returning to orbit.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_dash dummy
  2. /summon minecraft:armor_stand ~ ~0.3 ~ {Tags:["c9_actor"],NoGravity:1b,Invulnerable:1b,ShowArms:1b,NoBasePlate:1b,Glowing:1b,equipment:{head:{id:"minecraft:beacon",count:1},chest:{id:"minecraft:diamond_chestplate",count:1,components:{"minecraft:enchantment_glint_override":true}},legs:{id:"minecraft:diamond_leggings",count:1,components:{"minecraft:enchantment_glint_override":true}},feet:{id:"minecraft:diamond_boots",count:1},mainhand:{id:"minecraft:end_rod",count:1}}}
  3. /summon minecraft:marker ~ ~1.5 ~ {Tags:["c9_hub"]}
  4. /summon minecraft:item_display ~2.2 ~1.5 ~ {Tags:["c9_blade","c9_b0"],item:{id:"minecraft:diamond_sword",count:1,components:{"minecraft:enchantment_glint_override":true}},item_display:"fixed",Glowing:1b,glow_color_override:65535,teleport_duration:2,transformation:{left_rotation:[0f,0f,0.3827f,0.9239f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[1.25f,1.25f,1.25f]}}
  5. /summon minecraft:item_display ~-2.2 ~1.5 ~ {Tags:["c9_blade","c9_b1"],item:{id:"minecraft:diamond_sword",count:1,components:{"minecraft:enchantment_glint_override":true}},item_display:"fixed",Glowing:1b,glow_color_override:65535,teleport_duration:2,transformation:{left_rotation:[0f,0f,0.3827f,0.9239f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[1.25f,1.25f,1.25f]}}
  6. /summon minecraft:item_display ~ ~1.5 ~2.2 {Tags:["c9_blade","c9_b2"],item:{id:"minecraft:diamond_sword",count:1,components:{"minecraft:enchantment_glint_override":true}},item_display:"fixed",Glowing:1b,glow_color_override:65535,teleport_duration:2,transformation:{left_rotation:[0f,0f,0.3827f,0.9239f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[1.25f,1.25f,1.25f]}}
  7. /summon minecraft:item_display ~ ~1.5 ~-2.2 {Tags:["c9_blade","c9_b3"],item:{id:"minecraft:diamond_sword",count:1,components:{"minecraft:enchantment_glint_override":true}},item_display:"fixed",Glowing:1b,glow_color_override:65535,teleport_duration:2,transformation:{left_rotation:[0f,0f,0.3827f,0.9239f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[1.25f,1.25f,1.25f]}}
  8. /scoreboard players set @e[tag=c9_blade] c9_dash 0
  9. /summon minecraft:husk ~6 ~ ~ {Tags:["c9_mob"]}
  10. /summon minecraft:husk ~-7.5 ~ ~2 {Tags:["c9_mob"]}

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

  1. /execute as @e[tag=c9_hub] at @s rotated ~10 0 positioned as @e[tag=c9_actor,limit=1] run tp @s ~ ~1.2 ~ ~ ~
  2. /execute at @e[tag=c9_hub,limit=1] as @e[tag=c9_b0,scores={c9_dash=..4}] run tp @s ^2.2 ^ ^ ~-90 20
  3. /execute at @e[tag=c9_hub,limit=1] as @e[tag=c9_b1,scores={c9_dash=..4}] run tp @s ^-2.2 ^ ^ ~90 20
  4. /execute at @e[tag=c9_hub,limit=1] as @e[tag=c9_b2,scores={c9_dash=..4}] run tp @s ^ ^ ^2.2 ~ 20
  5. /execute at @e[tag=c9_hub,limit=1] as @e[tag=c9_b3,scores={c9_dash=..4}] run tp @s ^ ^ ^-2.2 ~180 20
  6. /scoreboard players remove @e[tag=c9_blade,scores={c9_dash=1..}] c9_dash 1
  7. /execute at @e[tag=c9_actor,limit=1] if entity @e[tag=c9_mob,distance=..7] unless entity @e[tag=c9_blade,scores={c9_dash=5..}] run scoreboard players set @e[tag=c9_blade,scores={c9_dash=0},sort=random,limit=1] c9_dash 10
  8. /execute as @e[tag=c9_blade,scores={c9_dash=5..}] at @e[tag=c9_actor,limit=1] at @e[tag=c9_mob,distance=..8.5,sort=nearest,limit=1] facing entity @e[tag=c9_actor,limit=1] feet run tp @s ^ ^1.0 ^0.4 ~180 75
  9. /execute if entity @e[tag=c9_blade,scores={c9_dash=7}] at @e[tag=c9_actor,limit=1] run damage @e[tag=c9_mob,distance=..8.5,sort=nearest,limit=1] 7 minecraft:player_attack by @e[tag=c9_actor,limit=1]
  10. /execute at @e[tag=c9_blade,scores={c9_dash=7}] run particle minecraft:sweep_attack ~ ~0.1 ~ 0.1 0.1 0.1 0 1
  11. /execute at @e[tag=c9_blade,scores={c9_dash=7}] run playsound minecraft:entity.player.attack.sweep master @a ~ ~ ~ 0.7 1.3
  12. /execute at @e[tag=c9_blade] run particle minecraft:dust{color:[0.1,0.9,1.0],scale:0.9} ~ ~ ~ 0.04 0.04 0.04 0 1
  13. /execute at @e[tag=c9_actor,limit=1] as @e[tag=c9_mob,distance=2.0..18,nbt={HurtTime:0s}] at @s facing entity @e[tag=c9_actor,limit=1] feet rotated ~ 0 run tp @s ^ ^ ^0.11 ~ ~
  14. /execute at @e[tag=c9_actor,limit=1] unless entity @e[tag=c9_mob,distance=5.5..18] at @e[tag=c9_hub,limit=1] positioned ^10 ^-1.2 ^ run summon minecraft:husk ~ ~ ~ {Tags:["c9_mob"]}

How it works

Frames from the test run

Orbiting Guardian Blades - frame 1Orbiting Guardian Blades - frame 2Orbiting Guardian Blades - frame 3

Recorded on our own test server: 48 frames at about 9.5 fps. Our image check saw: Four glowing cyan diamond swords orbit in a tilted ring around a glowing sentinel figure while nearby husks take damage with sweep particles and die.

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. Clear a flat open area and stand at the center where you want the sentinel to hover.
  2. Run each of the 10 setup commands once in chat (or in a row of impulse command blocks) to create the scoreboard, sentinel, four swords, and initial mobs.
  3. Place 14 Repeating, Unconditional, Always Active command blocks nearby (inside spawn chunks or a loaded area).
  4. Paste one loop command into each repeating command block in order.
  5. Step back and watch the four glowing swords orbit the sentinel and dart outward whenever husks approach.

Use it with real players

To have the blades guard a real player instead of the sentinel stand, skip the c9_actor armor stand in setup and omit the last two loop commands that move and summon demo husks. Replace every @e[tag=c9_actor,limit=1] in the remaining loop commands with @p (or a tagged player like @a[tag=c9_guard,limit=1]), and swap tag=c9_mob for type=!player,type=!item_display,type=!marker,type=!armor_stand,type=!item so the blades slash any hostile or nearby mob as you walk around.

Remove it again 5 commands

  1. /kill @e[tag=c9_actor]
  2. /kill @e[tag=c9_hub]
  3. /kill @e[tag=c9_blade]
  4. /kill @e[tag=c9_mob]
  5. /scoreboard objectives remove c9_dash

FAQ

Can I change the sword type or glow color?

Yes. In the four <code>item_display</code> setup commands, replace <code>minecraft:diamond_sword</code> with any sword such as <code>minecraft:netherite_sword</code>, and change <code>glow_color_override</code> to another decimal RGB color value.

Why do the swords move smoothly instead of snapping when teleported?

Each sword uses <code>teleport_duration:2</code>, which tells Minecraft to interpolate the display entity's position and rotation over 2 ticks whenever <code>/tp</code> moves it.

Commands used

/damage/execute/particle/playsound/scoreboard/summon/tp

Similar creations

Join 9Minecraft News & Guides