Build an autonomous Spectral Armor Guardian turret in Minecraft Java 26.x using command blocks, display entities, soul fire, and sonic boom strikes.
Summoning CirclesDarkMysticMedievalCyanBlackWhiteAdventure MapBoss FightPvPItem displaysArmor standsRiding & passengersSummoned mobsBlock building (fill/setblock/clone)Glowing outlinesRotation math21+ commands
The Spectral Armor Guardian is an automated magical turret powered by soul fire and command blocks. At the center of a dark blackstone shrine rests an inactive suit of iron armor, while its awakened diamond spirit hovers above, surrounded by four orbiting enchanted blades.
When hostile mobs wander near the shrine, the floating guardian locks onto them and unleashes soul beams and sonic shockwaves to defend the area automatically.
/scoreboard objectives add c9_timer dummy/fill ~-2 ~-1 ~-2 ~2 ~-1 ~2 chiseled_polished_blackstone/fill ~-2 ~ ~-2 ~2 ~ ~2 soul_campfire replace air/fill ~-1 ~ ~-1 ~1 ~ ~1 air/setblock ~ ~-1 ~ soul_lantern/summon armor_stand ~ ~ ~ {Tags:["c9_base"],NoGravity:1b,Invulnerable:1b,ShowArms:1b,NoBasePlate:1b,Equipment:{chest:{id:"minecraft:iron_chestplate",count:1},legs:{id:"minecraft:iron_leggings",count:1},feet:{id:"minecraft:iron_boots",count:1},head:{id:"minecraft:skeleton_skull",count:1}}}/summon armor_stand ~ ~2.2 ~ {Tags:["c9_guardian"],NoGravity:1b,Invisible:1b,Invulnerable:1b,ShowArms:1b,Glowing:1b,Pose:{RightArm:[-95f,-20f,0f],LeftArm:[-95f,20f,0f]},Equipment:{mainhand:{id:"minecraft:diamond_sword",count:1,components:{"minecraft:enchantment_glint_override":true}},offhand:{id:"minecraft:diamond_sword",count:1,components:{"minecraft:enchantment_glint_override":true}},head:{id:"minecraft:diamond_helmet",count:1,components:{"minecraft:enchantment_glint_override":true}},chest:{id:"minecraft:diamond_chestplate",count:1,components:{"minecraft:enchantment_glint_override":true}}}}/summon item_display ~ ~3.1 ~ {Tags:["c9_blade"],Glowing:1b,glow_color_override:65535,item:{id:"minecraft:diamond_sword",count:1,components:{"minecraft:enchantment_glint_override":true}},transformation:{translation:[1.4f,0f,0f],left_rotation:[0f,0f,0.707f,0.707f],scale:[1.2f,1.2f,1.2f],right_rotation:[0f,0f,0f,1f]},Passengers:[{id:"minecraft:item_display",Tags:["c9_blade"],Glowing:1b,glow_color_override:65535,item:{id:"minecraft:diamond_sword",count:1,components:{"minecraft:enchantment_glint_override":true}},transformation:{translation:[-1.4f,0f,0f],left_rotation:[0f,0f,0.707f,0.707f],scale:[1.2f,1.2f,1.2f],right_rotation:[0f,0f,0f,1f]}},{id:"minecraft:item_display",Tags:["c9_blade"],Glowing:1b,glow_color_override:65535,item:{id:"minecraft:diamond_sword",count:1,components:{"minecraft:enchantment_glint_override":true}},transformation:{translation:[0f,0f,1.4f],left_rotation:[0f,0f,0.707f,0.707f],scale:[1.2f,1.2f,1.2f],right_rotation:[0f,0f,0f,1f]}},{id:"minecraft:item_display",Tags:["c9_blade"],Glowing:1b,glow_color_override:65535,item:{id:"minecraft:diamond_sword",count:1,components:{"minecraft:enchantment_glint_override":true}},transformation:{translation:[0f,0f,-1.4f],left_rotation:[0f,0f,0.707f,0.707f],scale:[1.2f,1.2f,1.2f],right_rotation:[0f,0f,0f,1f]}}]}/scoreboard players add #c9_tick c9_timer 1/execute if score #c9_tick c9_timer matches 80.. run scoreboard players set #c9_tick c9_timer 1/execute as @e[tag=c9_blade] at @s run tp @s ~ ~ ~ ~10 ~/execute at @e[tag=c9_guardian] run particle soul_fire_flame ~ ~0.7 ~ 0.4 0.5 0.4 0.02 4 force/execute at @e[tag=c9_guardian] run particle dust{color:[0.1,0.95,1.0],scale:1.5} ~ ~1.0 ~ 0.6 0.6 0.6 0 5 force/execute at @e[tag=c9_base] run particle sculk_soul ~ ~0.8 ~ 0.25 0.4 0.25 0.02 1 force/execute as @e[tag=c9_guardian] at @s if entity @e[tag=c9_mob,distance=..15] run tp @s ~ ~ ~ facing entity @e[tag=c9_mob,distance=..15,limit=1,sort=nearest] eyes/execute as @e[tag=c9_guardian] at @s unless entity @e[tag=c9_mob,distance=..15] run tp @s ~ ~ ~ ~5 ~/execute store result score #c9_mobs c9_timer if entity @e[tag=c9_mob]/execute if score #c9_mobs c9_timer matches ..2 if score #c9_tick c9_timer matches 1 run summon husk ~5 ~ ~4 {Tags:["c9_mob"],Glowing:1b}/execute if score #c9_mobs c9_timer matches ..2 if score #c9_tick c9_timer matches 40 run summon stray ~-5 ~ ~-4 {Tags:["c9_mob"],Glowing:1b}/execute if score #c9_tick c9_timer matches 25 as @e[tag=c9_mob,distance=..15,limit=1,sort=nearest] at @s run particle sonic_boom ~ ~1.2 ~ 0 0 0 0 1 force/execute if score #c9_tick c9_timer matches 25 as @e[tag=c9_mob,distance=..15,limit=1,sort=nearest] at @s run damage @s 14 minecraft:magicsetup #7 Summons the floating invisible armor stand wearing glowing enchanted diamond gear with arms raised in a casting pose.setup #8 Spawns four cyan-glowing diamond sword item_display entities mounted together as passengers so they orbit cleanly around the guardian.loop #3 Rotates all four orbiting spectral blades by 10 degrees every tick.loop #7 Rotates the floating guardian spirit to face the nearest target within 15 blocks.loop #12 Triggers a sonic_boom particle burst on the nearest invader every 4 seconds while the subsequent command deals 14 magic damage.


Recorded on our own test server: 56 frames at about 9.3 fps. Our image check saw: A glowing armor stand surrounded by four orbiting diamond swords hovers in smoke above a soul campfire shrine, with glowing hostile mobs nearby.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
To make the turret defend you against natural survival monsters instead of only demo mobs, replace tag=c9_mob in loop commands 7, 8, 12, and 13 with type=#minecraft:raiders or type=!player,type=!armor_stand,type=!item_display,type=!item, and remove loop commands 9, 10, and 11 so it no longer spawns test mobs.
/kill @e[tag=c9_base]/kill @e[tag=c9_guardian]/kill @e[tag=c9_blade]/kill @e[tag=c9_mob]/fill ~-2 ~ ~-2 ~2 ~ ~2 air/fill ~-2 ~-1 ~-2 ~2 ~-1 ~2 grass_block/scoreboard objectives remove c9_timerEach sword is an item_display with a translation offset of 1.4 blocks along the X or Z axis, so rotating the entities rotates their offset orbit around the center point.
Yes. Lower the reset threshold in loop command 2 from 80.. to 40.. to make the guardian fire its sonic boom every 2 seconds instead of every 4 seconds.
▶Spectral Galleon Bottle UncorkingSummoning CirclesExpert24 cmds
▶Runic Pop-Up Book Castle SiegeSummoning CirclesExpert24 cmds
▶Arcane Geometric Summoning ArraysSummoning CirclesHard24 cmds
▶Chromatic Ink Calligraphy DragonSummoning CirclesExpert24 cmds
▶Cursed Tarot Deck Shuffle SummonSummoning CirclesExpert20 cmds
▶Dark Ritual AwakeningSummoning CirclesMedium24 cmds