execute at @e[name=CadeyrnFight] run summon minecraft:armor_stand ~-21 ~16 ~-26 {Marker:1b,Invisible:1b,Silent:1b,Silent:1b,Tags:["DiePls","AutoAttackSpawns"],NoGravity:1}
execute at @e[name=CadeyrnFight] run summon minecraft:armor_stand ~-19 ~4 ~-16 {Marker:1b,Invisible:1b,Silent:1b,Silent:1b,Tags:["DiePls","AutoAttackSpawns"],NoGravity:1}
execute at @e[name=CadeyrnFight] run summon minecraft:armor_stand ~-22 ~6 ~-5 {Marker:1b,Invisible:1b,Silent:1b,Silent:1b,Tags:["DiePls","AutoAttackSpawns"],NoGravity:1}
execute at @e[name=CadeyrnFight] run summon minecraft:armor_stand ~-17 ~6 ~12 {Marker:1b,Invisible:1b,Silent:1b,Silent:1b,Tags:["DiePls","AutoAttackSpawns"],NoGravity:1}
execute at @e[name=CadeyrnFight] run summon minecraft:armor_stand ~-25 ~6 ~16 {Marker:1b,Invisible:1b,Silent:1b,Silent:1b,Tags:["DiePls","AutoAttackSpawns"],NoGravity:1}
execute at @e[name=CadeyrnFight] run summon minecraft:armor_stand ~-10 ~8 ~-22 {Marker:1b,Invisible:1b,Silent:1b,Silent:1b,Tags:["DiePls","AutoAttackSpawns"],NoGravity:1}
execute at @e[name=CadeyrnFight] run summon minecraft:armor_stand ~-7 ~7 ~-15 {Marker:1b,Invisible:1b,Silent:1b,Silent:1b,Tags:["DiePls","AutoAttackSpawns"],NoGravity:1}
execute at @e[name=CadeyrnFight] run summon minecraft:armor_stand ~0 ~8 ~-20 {Marker:1b,Invisible:1b,Silent:1b,Silent:1b,Tags:["DiePls","AutoAttackSpawns"],NoGravity:1}
execute at @e[name=CadeyrnFight] run summon minecraft:armor_stand ~-13 ~4 ~-6 {Marker:1b,Invisible:1b,Silent:1b,Silent:1b,Tags:["DiePls","AutoAttackSpawns"],NoGravity:1}
execute at @e[name=CadeyrnFight] run summon minecraft:armor_stand ~-7 ~7 ~-2 {Marker:1b,Invisible:1b,Silent:1b,Silent:1b,Tags:["DiePls","AutoAttackSpawns"],NoGravity:1}
execute at @e[name=CadeyrnFight] run summon minecraft:armor_stand ~-2 ~8 ~-4 {Marker:1b,Invisible:1b,Silent:1b,Silent:1b,Tags:["DiePls","AutoAttackSpawns"],NoGravity:1}
execute at @e[name=CadeyrnFight] run summon minecraft:armor_stand ~-3 ~6 ~15 {Marker:1b,Invisible:1b,Silent:1b,Silent:1b,Tags:["DiePls","AutoAttackSpawns"],NoGravity:1}
execute at @e[name=CadeyrnFight] run summon minecraft:armor_stand ~-12 ~6 ~8 {Marker:1b,Invisible:1b,Silent:1b,Silent:1b,Tags:["DiePls","AutoAttackSpawns"],NoGravity:1}
execute at @e[name=CadeyrnFight] run summon minecraft:armor_stand ~-9 ~6 ~23 {Marker:1b,Invisible:1b,Silent:1b,Silent:1b,Tags:["DiePls","AutoAttackSpawns"],NoGravity:1}
execute at @e[name=CadeyrnFight] run summon minecraft:armor_stand ~7 ~7 ~-11 {Marker:1b,Invisible:1b,Silent:1b,Silent:1b,Tags:["DiePls","AutoAttackSpawns"],NoGravity:1}
execute at @e[name=CadeyrnFight] run summon minecraft:armor_stand ~6 ~7 ~-25 {Marker:1b,Invisible:1b,Silent:1b,Silent:1b,Tags:["DiePls","AutoAttackSpawns"],NoGravity:1}
execute at @e[name=CadeyrnFight] run summon minecraft:armor_stand ~7 ~7 ~-3 {Marker:1b,Invisible:1b,Silent:1b,Silent:1b,Tags:["DiePls","AutoAttackSpawns"],NoGravity:1}
execute at @e[name=CadeyrnFight] run summon minecraft:armor_stand ~16 ~7 ~5 {Marker:1b,Invisible:1b,Silent:1b,Silent:1b,Tags:["DiePls","AutoAttackSpawns"],NoGravity:1}
execute at @e[name=CadeyrnFight] run summon minecraft:armor_stand ~5 ~6 ~22 {Marker:1b,Invisible:1b,Silent:1b,Silent:1b,Tags:["DiePls","AutoAttackSpawns"],NoGravity:1}
execute at @e[name=CadeyrnFight] run summon minecraft:armor_stand ~4 ~7 ~7 {Marker:1b,Invisible:1b,Silent:1b,Silent:1b,Tags:["DiePls","AutoAttackSpawns"],NoGravity:1}
execute at @e[name=CadeyrnFight] run summon minecraft:armor_stand ~13 ~7 ~27 {Marker:1b,Invisible:1b,Silent:1b,Silent:1b,Tags:["DiePls","AutoAttackSpawns"],NoGravity:1}
execute at @e[name=CadeyrnFight] run summon minecraft:armor_stand ~20 ~5 ~-29 {Marker:1b,Invisible:1b,Silent:1b,Silent:1b,Tags:["DiePls","AutoAttackSpawns"],NoGravity:1}
execute at @e[name=CadeyrnFight] run summon minecraft:armor_stand ~19 ~7 ~-21 {Marker:1b,Invisible:1b,Silent:1b,Silent:1b,Tags:["DiePls","AutoAttackSpawns"],NoGravity:1}
execute at @e[name=CadeyrnFight] run summon minecraft:armor_stand ~19 ~5 ~-7 {Marker:1b,Invisible:1b,Silent:1b,Silent:1b,Tags:["DiePls","AutoAttackSpawns"],NoGravity:1}
execute at @e[name=CadeyrnFight] run summon minecraft:armor_stand ~21 ~6 ~14 {Marker:1b,Invisible:1b,Silent:1b,Silent:1b,Tags:["DiePls","AutoAttackSpawns"],NoGravity:1}
execute at @e[name=CadeyrnFight] run summon minecraft:armor_stand ~30 ~9 ~26 {Marker:1b,Invisible:1b,Silent:1b,Silent:1b,Tags:["DiePls","AutoAttackSpawns"],NoGravity:1}

execute at @e[name=CadeyrnFight] run summon minecraft:armor_stand ~-16 ~11 ~-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 ~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 ~-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=9,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=CadeyrnFightTag,gamemode=!spectator] run execute at @s run function zzzzdonotuse:cadeyrn/attacks/autoattack/tagstandsforspawn
#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
kill @e[type=armor_stand,tag=AutoAttackSpawns,tag=!Tagged4Spawn,tag=!Tagged4Spawn2]

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

execute at @e[type=armor_stand,tag=AutoAttackSpawns] run particle minecraft:reverse_portal ~ ~ ~ 0.2 01 0.2 5 150 force


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