
scoreboard players add @s AttackTimer 1
execute as @s[scores={AttackTimer=1}] run function zzzzdonotuse:cadeyrn/attacks/phasetransition/phasetransitionstart
#execute as @s[scores={AttackTimer=2..50}] run function zzzzdonotuse:cadeyrn/attacks/phasetransition/phasetransitionmovecadeyrn

#execute at @s run execute at @e[type=skeleton_horse,distance=..20] positioned ~ ~-.5 ~ run particle minecraft:soul_fire_flame ~ ~ ~ 0.3 0 0.3 0.01 5 force
execute at @s run execute at @e[type=skeleton_horse,distance=..20] positioned ~ ~ ~ run particle minecraft:smoke ~ ~ ~ 0 0 0 0.1 5

#460 is reached once cadeyrn moves to the main spot, set in the changelocation functions...

execute at @s[scores={AttackTimer=461}] run function zzzzdonotuse:cadeyrn/attacks/phasetransition/phasetransitionpart1startdialogue
execute at @s[scores={AttackTimer=470..495}] positioned ~ ~-4 ~ run particle minecraft:soul_fire_flame ~ ~ ~ 3.5 4 0.5 0.01 150 force
execute at @s[scores={AttackTimer=470..495}] run playsound minecraft:block.fire.ambient hostile @a[distance=..150] ~ ~ ~ 10 0.5 1

execute as @s[scores={AttackTimer=501}] run function zzzzdonotuse:cadeyrn/attacks/phasetransition/phasetransitionpart1start
execute as @s[scores={AttackTimer=535..599}] run function zzzzdonotuse:cadeyrn/attacks/phasetransition/phasetransitionpart1move
execute as @s[scores={AttackTimer=626..699}] run function zzzzdonotuse:cadeyrn/attacks/phasetransition/phasetransitionpart2move
execute as @s[scores={AttackTimer=726..795}] run function zzzzdonotuse:cadeyrn/attacks/phasetransition/phasetransitionpart3move


execute as @s[scores={AttackTimer=800..848}] run function zzzzdonotuse:cadeyrn/attacks/phasetransition/phasetransitiondropdown

execute as @s[scores={AttackTimer=848..950}] run function zzzzdonotuse:cadeyrn/attacks/phasetransition/sandwavemain


###########RESET IS IN THE PHASE2FIRE FUNCTION