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


#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

execute as @a[tag=CadeyrnFightTag] run execute at @s run execute if block ~ ~ ~ soul_fire run effect give @s wither 3 3


#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] run function zzzzdonotuse:cadeyrn/idle/idleanimation


