
scoreboard players add @s AttackTimer 1

execute as @s[scores={AttackTimer=1..85}] run function zzzzdonotuse:cadeyrn/attacks/pocketsand/pocketsandmove
execute as @s[scores={AttackTimer=130..}] run function zzzzdonotuse:cadeyrn/attacks/pocketsand/reset


#execute as @s[scores={AttackTimer=21}] run execute as @s run function zzzzdonotuse:cadeyrn/attacks/pocketsand/pocketsandlaunch

execute as @s[scores={AttackTimer=1}] run function zzzzdonotuse:cadeyrn/attacks/pocketsand/pocketsandstart
execute as @a[tag=CadeyrnFightTag] run execute at @s run execute if entity @e[type=falling_block,tag=DiePls,distance=..2] run effect give @s blindness 5 5
execute at @e[type=minecraft:falling_block,tag=DiePls] run particle minecraft:block gray_concrete_powder ~ ~ ~ 0 0.2 0 1 15 force
#execute as @s[scores={AttackTimer=36}] run execute as @s run function zzzzdonotuse:cadeyrn/attacks/pocketsand/pocketsandlaunch
#execute at @s[scores={AttackTimer=36..44}] run particle minecraft:smoke ~ ~ ~ 0.1 0.5 0.1 0.1 30 force
#execute at @s[scores={AttackTimer=36..50}] run execute positioned ~ ~1.5 ~ run effect give @a[distance=..2] levitation 1 25
#execute at @s[scores={AttackTimer=36..50}] run execute positioned ~ ~1.5 ~ run effect give @a[distance=..2] wither 15 0
#execute as @s[scores={AttackTimer=56..}] run function zzzzdonotuse:cadeyrn/attacks/pocketsand/reset

#execute at @s[scores={AttackTimer=200}] run kill @e[type=armor_stand,tag=FireLine]
#execute as @s[scores={AttackTimer=200}] run execute as @e[type=armor_stand,tag=FireLine] run function zzzzdonotuse:cadeyrn/attacks/firesheet/reset




