scoreboard players add @s Cadeyrn10Tick 1
execute as @s[scores={Cadeyrn10Tick=10..}] run function zzzzdonotuse:cadeyrn/10ticktimer


#execute as @e[tag=CadeyrnTP] run execute at @s run tp @s ^ ^ ^ facing entity @p[tag=CadeyrnFightTag]
#execute as @e[tag=CadeyrnTP] run execute at @s positioned ^ ^ ^1 run execute if block ~ 153 ~ bedrock run execute at @s run tp @s ^ ^ ^.05 facing entity @p[tag=CadeyrnFightTag]

#execute as @e[type=stray,name="Cadeyrn the Wretched"] run function zzzzdonotuse:cadeyrn/maintimer




#might need later for pos reset
#execute as @e[tag=CadeyrnTP] run execute at @s run tp @s @e[type=armor_stand,name=CadeyrnFight,limit=1]
#execute as @e[tag=CadeyrnTP] run execute at @s run tp @s ~ 140 ~4



execute at @s run execute as @e[type=armor_stand,tag=CadeyrnHover,distance=..3,tag=!PhaseChange] run function zzzzdonotuse:cadeyrn/idle/idleanimation


