execute at @s run tag @e[sort=nearest,limit=1,type=armor_stand,tag=AutoAttackSpawns,tag=!Tagged4Spawn,tag=!Tagged4Spawn2] add Tagged4Spawn
execute at @s run tag @e[sort=nearest,limit=1,type=armor_stand,tag=AutoAttackSpawns,tag=!Tagged4Spawn,tag=!Tagged4Spawn2] add Tagged4Spawn2

execute at @e[type=armor_stand,tag=Tagged4Spawn,tag=!GotSpawned] run particle minecraft:smoke ~ ~ ~ 0 0 0 0.2 101 force
execute at @e[type=armor_stand,tag=Tagged4Spawn2,tag=!GotSpawned] run particle minecraft:smoke ~ ~ ~ 0 0 0 0.2 101 force

execute at @e[type=armor_stand,tag=Tagged4Spawn,tag=!GotSpawned] run particle minecraft:smoke ~ ~ ~ 0 0 0 0.05 101 force
execute at @e[type=armor_stand,tag=Tagged4Spawn2,tag=!GotSpawned] run particle minecraft:smoke ~ ~ ~ 0 0 0 0.05 101 force
execute at @e[type=armor_stand,tag=Tagged4Spawn,tag=!GotSpawned] run playsound minecraft:entity.enderman.teleport hostile @a[distance=..100] ~ ~ ~ 2 0.75 0.5
execute at @e[type=armor_stand,tag=Tagged4Spawn2,tag=!GotSpawned] run playsound minecraft:entity.enderman.teleport hostile @a[distance=..100] ~ ~ ~ 2 0.75 0.5
execute as @e[type=armor_stand,tag=AutoAttackSpawns,tag=!GotSpawned] run execute at @s run tp @s ~ ~ ~ facing entity @p eyes
execute as @e[type=armor_stand,tag=AutoAttackSpawns,tag=!GotSpawned] run execute at @s run tp @s ~ ~ ~ ~ 0

execute at @e[type=armor_stand,tag=Tagged4Spawn,tag=!GotSpawned] positioned ^.3 ^ ^-.2 run summon minecraft:armor_stand ~ ~.15 ~ {Marker:1b,Tags:["DiePls","AutoAttackBow"],NoGravity:1b,Invulnerable:1b,Invisible:1b,Silent:1b,Silent:1b,Pose:{RightArm:[-65f,0f,-10f]},HandItems:[{id:"minecraft:bow",Count:1b,tag:{Enchantments:[{id:"minecraft:punch",lvl:1s}]}},{}]}
execute at @e[type=armor_stand,tag=Tagged4Spawn2,tag=!GotSpawned] positioned ^.3 ^ ^-.2 run summon minecraft:armor_stand ~ ~.15 ~ {Marker:1b,Tags:["DiePls","AutoAttackBow"],NoGravity:1b,Invulnerable:1b,Invisible:1b,Silent:1b,Silent:1b,Pose:{RightArm:[-65f,0f,-10f]},HandItems:[{id:"minecraft:bow",Count:1b,tag:{Enchantments:[{id:"minecraft:punch",lvl:1s}]}},{}]}

execute as @e[type=armor_stand,tag=AutoAttackBow,tag=!GotSpawned] run execute at @s run tp @s ~ ~ ~ facing entity @p eyes
execute as @e[type=armor_stand,tag=AutoAttackBow,tag=!GotSpawned] run execute at @s run tp @s ~ ~ ~ ~ 0


tag @e[type=armor_stand,tag=AutoAttackBow,tag=!GotSpawned] add GotSpawned
tag @e[type=armor_stand,tag=Tagged4Spawn,tag=!GotSpawned] add GotSpawned
tag @e[type=armor_stand,tag=Tagged4Spawn2,tag=!GotSpawned] add GotSpawned