

execute if predicate suhc:25percent run execute if predicate suhc:25percent run execute if predicate suhc:25percent run execute at @e[type=stray,tag=CadeyrnTP] run tp @e[type=piglin,distance=..30] ~ ~-500 ~
execute if predicate suhc:25percent run execute if predicate suhc:25percent run execute if predicate suhc:25percent run execute at @e[type=stray,tag=CadeyrnTP] run tp @e[type=zombified_piglin,distance=..30] ~ ~-500 ~
execute if predicate suhc:25percent run execute if predicate suhc:25percent run execute if predicate suhc:25percent run execute at @e[type=stray,tag=CadeyrnTP] run tp @e[type=ghast,distance=..30] ~ ~-500 ~

execute at @e[type=stray,tag=CadeyrnTP] run particle minecraft:smoke ~ ~1 ~ 0.2 1 0.2 0.04 10 force


scoreboard players add @s AttackTimer 1

execute at @s[scores={AttackTimer=1}] run function zzzzdonotuse:cadeyrn/attacks/deathanim/deathstart

execute as @s[scores={AttackTimer=50..300}] run function zzzzdonotuse:cadeyrn/attacks/deathanim/deathgomid
execute as @s[scores={AttackTimer=320}] run execute at @e[name=CadeyrnFight] run fill ~-2 154 ~-3 ~-2 154 ~-3 minecraft:structure_block[mode=load]{name:"suhc:deathhand",posX:0,posZ:0,posY:-43,rotation:NONE,mirror:NONE,mode:LOAD,ignoreEntities:0b} destroy
execute as @s[scores={AttackTimer=320}] run execute at @e[name=CadeyrnFight] run fill ~-2 155 ~-3 ~-2 155 ~-3 redstone_block
execute as @s[scores={AttackTimer=322}] run function zzzzdonotuse:cadeyrn/attacks/deathanim/handstand
execute as @s[scores={AttackTimer=325..425}] run function zzzzdonotuse:cadeyrn/attacks/deathanim/movehand

#reset is in here
execute as @s[scores={AttackTimer=426..700}] run function zzzzdonotuse:cadeyrn/attacks/deathanim/killhim
#execute as @s[scores={AttackTimer=200}] run execute as @e[type=armor_stand,tag=FireLine] run function zzzzdonotuse:cadeyrn/attacks/firesheet/reset




