scoreboard players add @s SandWaveTimer 1

execute as @s[scores={SandWaveTimer=1..3}] run function zzzzdonotuse:cadeyrn/attacks/phasetransition/sandwavephase1
execute as @s[scores={SandWaveTimer=11..13}] run function zzzzdonotuse:cadeyrn/attacks/phasetransition/sandwavephase2
execute as @s[scores={SandWaveTimer=21..23}] run function zzzzdonotuse:cadeyrn/attacks/phasetransition/sandwavephase3
execute as @s[scores={SandWaveTimer=31..33}] run function zzzzdonotuse:cadeyrn/attacks/phasetransition/sandwavephase4
execute as @s[scores={SandWaveTimer=41..43}] run function zzzzdonotuse:cadeyrn/attacks/phasetransition/sandwavephase5
execute as @s[scores={SandWaveTimer=51..53}] run function zzzzdonotuse:cadeyrn/attacks/phasetransition/sandwavephase6
execute as @s[scores={SandWaveTimer=61..63}] run function zzzzdonotuse:cadeyrn/attacks/phasetransition/sandwavephase7
execute as @s[scores={SandWaveTimer=71..73}] run function zzzzdonotuse:cadeyrn/attacks/phasetransition/sandwavephase8
#execute as @s[scores={SandWaveTimer=41..45}] run function zzzzdonotuse:cadeyrn/attacks/phasetransition/sandwavephase9
execute as @s[scores={SandWaveTimer=99}] run function zzzzdonotuse:cadeyrn/attacks/phasetransition/phase2fire


execute as @s[scores={SandWaveTimer=1}] run execute at @e[tag=CadeyrnTP,limit=1] run execute at @e[type=armor_stand,name=CadeyrnFight,limit=1,sort=nearest] run fillbiome ~-35 153 ~-35 ~35 148 ~35 suhc:cadeyrnarenaphase2
execute as @s[scores={SandWaveTimer=1}] run execute at @e[tag=CadeyrnTP,limit=1] run execute at @e[type=armor_stand,name=CadeyrnFight,limit=1,sort=nearest] run fillbiome ~-35 147 ~-35 ~35 142 ~35 suhc:cadeyrnarenaphase2
execute as @s[scores={SandWaveTimer=1}] run execute at @e[tag=CadeyrnTP,limit=1] run execute at @e[type=armor_stand,name=CadeyrnFight,limit=1,sort=nearest] run fillbiome ~-35 137 ~-35 ~35 132 ~35 suhc:cadeyrnarenaphase2
execute as @s[scores={SandWaveTimer=1}] run execute at @e[tag=CadeyrnTP,limit=1] run execute at @e[type=armor_stand,name=CadeyrnFight,limit=1,sort=nearest] run fillbiome ~-35 131 ~-35 ~35 128 ~35 suhc:cadeyrnarenaphase2