

execute at @e[name=CadeyrnFight] run summon minecraft:armor_stand ~-16 ~9 ~-25 {Marker:1b,Invisible:1b,Silent:1b,Silent:1b,Tags:["DiePls","AutoAttackSpawns","SpecialAuto"],NoGravity:1}
execute at @e[name=CadeyrnFight] run summon minecraft:armor_stand ~-8 ~12 ~-24 {Marker:1b,Invisible:1b,Silent:1b,Silent:1b,Tags:["DiePls","AutoAttackSpawns","SpecialAuto"],NoGravity:1}
execute at @e[name=CadeyrnFight] run summon minecraft:armor_stand ~-19 ~14 ~-27 {Marker:1b,Invisible:1b,Silent:1b,Silent:1b,Tags:["DiePls","AutoAttackSpawns","SpecialAuto"],NoGravity:1}
execute at @e[name=CadeyrnFight] run summon minecraft:armor_stand ~-18 ~14 ~-21 {Marker:1b,Invisible:1b,Silent:1b,Silent:1b,Tags:["DiePls","AutoAttackSpawns","SpecialAuto"],NoGravity:1}
execute at @e[name=CadeyrnFight] run summon minecraft:armor_stand ~-25 ~14 ~-23 {Marker:1b,Invisible:1b,Silent:1b,Silent:1b,Tags:["DiePls","AutoAttackSpawns","SpecialAuto"],NoGravity:1}
execute at @e[name=CadeyrnFight] run summon minecraft:armor_stand ~-21 ~14 ~-20 {Marker:1b,Invisible:1b,Silent:1b,Silent:1b,Tags:["DiePls","AutoAttackSpawns","SpecialAuto"],NoGravity:1}
execute at @e[name=CadeyrnFight] run summon minecraft:armor_stand ~-21 ~15 ~-23 {Marker:1b,Invisible:1b,Silent:1b,Silent:1b,Tags:["DiePls","AutoAttackSpawns","SpecialAuto"],NoGravity:1}
execute at @e[name=CadeyrnFight] run summon minecraft:armor_stand ~-26 ~13 ~21 {Marker:1b,Invisible:1b,Silent:1b,Silent:1b,Tags:["DiePls","AutoAttackSpawns","SpecialAuto"],NoGravity:1}
execute at @e[name=CadeyrnFight] run summon minecraft:armor_stand ~-18 ~12 ~23 {Marker:1b,Invisible:1b,Silent:1b,Silent:1b,Tags:["DiePls","AutoAttackSpawns","SpecialAuto"],NoGravity:1}
execute at @e[name=CadeyrnFight] run summon minecraft:armor_stand ~-21 ~13 ~23 {Marker:1b,Invisible:1b,Silent:1b,Silent:1b,Tags:["DiePls","AutoAttackSpawns","SpecialAuto"],NoGravity:1}
execute at @e[name=CadeyrnFight] run summon minecraft:armor_stand ~-18 ~13 ~26 {Marker:1b,Invisible:1b,Silent:1b,Silent:1b,Tags:["DiePls","AutoAttackSpawns","SpecialAuto"],NoGravity:1}
execute at @e[name=CadeyrnFight] run summon minecraft:armor_stand ~-12 ~14 ~-27 {Marker:1b,Invisible:1b,Silent:1b,Silent:1b,Tags:["DiePls","AutoAttackSpawns","SpecialAuto"],NoGravity:1}
execute at @e[name=CadeyrnFight] run summon minecraft:armor_stand ~-15 ~13 ~27 {Marker:1b,Invisible:1b,Silent:1b,Silent:1b,Tags:["DiePls","AutoAttackSpawns","SpecialAuto"],NoGravity:1}
execute at @e[name=CadeyrnFight] run summon minecraft:armor_stand ~20 ~11 ~-27 {Marker:1b,Invisible:1b,Silent:1b,Silent:1b,Tags:["DiePls","AutoAttackSpawns","SpecialAuto"],NoGravity:1}
execute at @e[name=CadeyrnFight] run summon minecraft:armor_stand ~26 ~13 ~-26 {Marker:1b,Invisible:1b,Silent:1b,Silent:1b,Tags:["DiePls","AutoAttackSpawns","SpecialAuto"],NoGravity:1}
execute at @e[name=CadeyrnFight] run summon minecraft:armor_stand ~19 ~11 ~-22 {Marker:1b,Invisible:1b,Silent:1b,Silent:1b,Tags:["DiePls","AutoAttackSpawns","SpecialAuto"],NoGravity:1}
execute at @e[name=CadeyrnFight] run summon minecraft:armor_stand ~21 ~11 ~-15 {Marker:1b,Invisible:1b,Silent:1b,Silent:1b,Tags:["DiePls","AutoAttackSpawns","SpecialAuto"],NoGravity:1}
execute at @e[name=CadeyrnFight] run summon minecraft:armor_stand ~29 ~11 ~-24 {Marker:1b,Invisible:1b,Silent:1b,Silent:1b,Tags:["DiePls","AutoAttackSpawns","SpecialAuto"],NoGravity:1}
execute at @e[name=CadeyrnFight] run summon minecraft:armor_stand ~24 ~13 ~-12 {Marker:1b,Invisible:1b,Silent:1b,Silent:1b,Tags:["DiePls","AutoAttackSpawns","SpecialAuto"],NoGravity:1}
execute at @e[name=CadeyrnFight] run summon minecraft:armor_stand ~29 ~14 ~-14 {Marker:1b,Invisible:1b,Silent:1b,Silent:1b,Tags:["DiePls","AutoAttackSpawns","SpecialAuto"],NoGravity:1}
execute at @e[name=CadeyrnFight] run summon minecraft:armor_stand ~23 ~14 ~-2 {Marker:1b,Invisible:1b,Silent:1b,Silent:1b,Tags:["DiePls","AutoAttackSpawns","SpecialAuto"],NoGravity:1}

execute at @a[tag=CadeyrnFightTag,gamemode=!spectator] positioned ~-10 ~-5 ~-10 run tag @e[type=minecraft:armor_stand,tag=SpecialAuto,dx=20,dy=10,dz=20] add Tagged4Spawn
kill @e[type=minecraft:armor_stand,tag=SpecialAuto,tag=!Tagged4Spawn]

#execute at @a[tag=CadeyrnFight,gamemode=!spectator,limit=1] run tag @e[sort=nearest,limit=1,type=armor_stand,tag=AutoAttackSpawns,tag=!Tagged4Spawn] add Tagged4Spawn
#execute as @a[tag=CadeyrnFight,gamemode=!spectator] run execute at @a run tag @e[sort=nearest,limit=1,type=armor_stand,tag=AutoAttackSpawns,tag=!Tagged4Spawn] add Tagged4Spawn

tag @e[scores={BossAutoAttack=1},type=stray] add DoingAuto

#changelocation
#execute at @e[type=armor_stand,name=DayQ] run data merge block 999991 137 999988 {auto:1b}
