execute as @e[type=armor_stand,tag=MoveSkeleStand,tag=FoundYCoord,tag=!Ready4Dip,tag=MoveSkeleStand1] run execute at @s run execute unless entity @e[limit=1,type=armor_stand,tag=FoundStandGoTo1,distance=...34] run execute at @s run tp @s ^ ^ ^.33 facing entity @e[limit=1,type=armor_stand,tag=FoundStandGoTo1] feet
execute as @e[type=armor_stand,tag=MoveSkeleStand,tag=FoundYCoord,tag=!Ready4Dip,tag=MoveSkeleStand2] run execute at @s run execute unless entity @e[limit=1,type=armor_stand,tag=FoundStandGoTo2,distance=...34] run execute at @s run tp @s ^ ^ ^.33 facing entity @e[limit=1,type=armor_stand,tag=FoundStandGoTo2] feet
execute as @e[type=armor_stand,tag=MoveSkeleStand,tag=FoundYCoord,tag=!Ready4Dip,tag=MoveSkeleStand3] run execute at @s run execute unless entity @e[limit=1,type=armor_stand,tag=FoundStandGoTo3,distance=...34] run execute at @s run tp @s ^ ^ ^.33 facing entity @e[limit=1,type=armor_stand,tag=FoundStandGoTo3] feet
execute at @s[tag=SkeleSummoned,scores={AttackTimer=200..600}] run execute unless entity @e[type=armor_stand,tag=MoveSkeleStand,tag=!FoundYCoord] run execute as @e[type=armor_stand,tag=MoveSkeleStand1,tag=FoundYCoord] run execute at @s run execute if entity @e[limit=1,type=armor_stand,tag=FoundStandGoTo1,distance=...34] run tag @s add Ready4Dip
execute at @s[tag=SkeleSummoned,scores={AttackTimer=200..600}] run execute unless entity @e[type=armor_stand,tag=MoveSkeleStand,tag=!FoundYCoord] run execute as @e[type=armor_stand,tag=MoveSkeleStand2,tag=FoundYCoord] run execute at @s run execute if entity @e[limit=1,type=armor_stand,tag=FoundStandGoTo2,distance=...34] run tag @s add Ready4Dip
execute at @s[tag=SkeleSummoned,scores={AttackTimer=200..600}] run execute unless entity @e[type=armor_stand,tag=MoveSkeleStand,tag=!FoundYCoord] run execute as @e[type=armor_stand,tag=MoveSkeleStand3,tag=FoundYCoord] run execute at @s run execute if entity @e[limit=1,type=armor_stand,tag=FoundStandGoTo3,distance=...34] run tag @s add Ready4Dip

execute as @e[type=armor_stand,tag=Ready4Dip] run execute at @s run effect give @e[type=skeleton,distance=..1,limit=1,sort=nearest] resistance 5 55
execute unless entity @e[type=armor_stand,tag=MoveSkeleStand,tag=!Ready4Dip] run scoreboard players set @s AttackTimer 600