scoreboard players set @s CrackAttackTimer 0
data merge block ~ ~ ~ {auto:0b}
#kill @e[tag=CadeyrnMinion,type=vex]
#tag @s remove MidAttack
kill @e[type=armor_stand,tag=CadCheckP]
kill @e[type=armor_stand,tag=CadCrackStand]
kill @e[type=armor_stand,tag=CadCrackStandSm]

execute at @s run fill ~-75 131 ~-75 ~75 131 ~75 obsidian replace lava
execute at @s run tp @s ~ 132 ~
item replace entity @s weapon.mainhand with golden_sword{Enchantments:[{id:"minecraft:sharpness",lvl:11s},{id:"minecraft:knockback",lvl:1s},{id:"minecraft:fire_aspect",lvl:2s}]} 1
#data merge entity @s {NoAI:0,NoGravity:0}
execute at @s run playsound minecraft:block.lava.extinguish hostile @a[distance=..75] ~ ~ ~ 15 1 0.5

#reset pot
#execute at @e[name=DayQ,type=armor_stand] run data merge block 999991 137 999988 {auto:1b}

#execute at @s run execute if entity @a[distance=..9,tag=CadeyrnFightTag,gamemode=!spectator] run execute as @s run function zzzzdonotuse:cadeyrn/resetaggro
