execute at @s run playsound minecraft:entity.skeleton.step hostile @a[distance=..150] ~ ~ ~ 1 0.5 1
execute at @s run playsound minecraft:entity.skeleton.step hostile @a[distance=..150] ~ ~ ~ 1 0.5 1
execute at @s run playsound minecraft:entity.skeleton.step hostile @a[distance=..150] ~ ~ ~ 1 0.5 1

#playsound minecraft:block.sand.break hostile @a[distance=..100] ~ ~ ~ 3 0.5 1
#tag @s add MidAttack

execute as @s run effect give @s levitation 1 25
execute as @s run effect give @s minecraft:slow_falling 5 1
#have mercy lol
execute at @s positioned ~1 ~ ~ run execute unless block ~ ~ ~ bedrock run fill ~ ~ ~ ~ ~ ~ air destroy
execute at @s positioned ~ ~ ~1 run execute unless block ~ ~ ~ bedrock run fill ~ ~ ~ ~ ~ ~ air destroy
execute at @s positioned ~-1 ~ ~ run execute unless block ~ ~ ~ bedrock run fill ~ ~ ~ ~ ~ ~ air destroy
execute at @s positioned ~ ~ ~-1 run execute unless block ~ ~ ~ bedrock run fill ~ ~ ~ ~ ~ ~ air destroy
execute at @s positioned ~1 ~ ~1 run execute unless block ~ ~ ~ bedrock run fill ~ ~ ~ ~ ~ ~ air destroy
execute at @s positioned ~-1 ~ ~-1 run execute unless block ~ ~ ~ bedrock run fill ~ ~ ~ ~ ~ ~ air destroy
execute at @s positioned ~-1 ~ ~1 run execute unless block ~ ~ ~ bedrock run fill ~ ~ ~ ~ ~ ~ air destroy
execute at @s positioned ~1 ~ ~-1 run execute unless block ~ ~ ~ bedrock run fill ~ ~ ~ ~ ~ ~ air destroy
execute at @s positioned ~ ~ ~ run execute unless block ~ ~ ~ bedrock run fill ~ ~ ~ ~ ~ ~ air destroy

execute at @s positioned ~1 ~1 ~ run execute unless block ~ ~ ~ bedrock run fill ~ ~ ~ ~ ~ ~ air destroy
execute at @s positioned ~ ~1 ~1 run execute unless block ~ ~ ~ bedrock run fill ~ ~ ~ ~ ~ ~ air destroy
execute at @s positioned ~-1 ~1 ~ run execute unless block ~ ~ ~ bedrock run fill ~ ~ ~ ~ ~ ~ air destroy
execute at @s positioned ~ ~1 ~-1 run execute unless block ~ ~ ~ bedrock run fill ~ ~ ~ ~ ~ ~ air destroy
execute at @s positioned ~1 ~1 ~1 run execute unless block ~ ~ ~ bedrock run fill ~ ~ ~ ~ ~ ~ air destroy
execute at @s positioned ~-1 ~1 ~-1 run execute unless block ~ ~ ~ bedrock run fill ~ ~ ~ ~ ~ ~ air destroy
execute at @s positioned ~-1 ~1 ~1 run execute unless block ~ ~ ~ bedrock run fill ~ ~ ~ ~ ~ ~ air destroy
execute at @s positioned ~1 ~1 ~-1 run execute unless block ~ ~ ~ bedrock run fill ~ ~ ~ ~ ~ ~ air destroy
execute at @s positioned ~ ~1 ~ run execute unless block ~ ~ ~ bedrock run fill ~ ~ ~ ~ ~ ~ air destroy

execute at @s positioned ~1 ~2 ~ run execute unless block ~ ~ ~ bedrock run fill ~ ~ ~ ~ ~ ~ air destroy
execute at @s positioned ~ ~2 ~1 run execute unless block ~ ~ ~ bedrock run fill ~ ~ ~ ~ ~ ~ air destroy
execute at @s positioned ~-1 ~2 ~ run execute unless block ~ ~ ~ bedrock run fill ~ ~ ~ ~ ~ ~ air destroy
execute at @s positioned ~ ~2 ~-1 run execute unless block ~ ~ ~ bedrock run fill ~ ~ ~ ~ ~ ~ air destroy
execute at @s positioned ~1 ~2 ~1 run execute unless block ~ ~ ~ bedrock run fill ~ ~ ~ ~ ~ ~ air destroy
execute at @s positioned ~-1 ~2 ~-1 run execute unless block ~ ~ ~ bedrock run fill ~ ~ ~ ~ ~ ~ air destroy
execute at @s positioned ~-1 ~2 ~1 run execute unless block ~ ~ ~ bedrock run fill ~ ~ ~ ~ ~ ~ air destroy
execute at @s positioned ~1 ~2 ~-1 run execute unless block ~ ~ ~ bedrock run fill ~ ~ ~ ~ ~ ~ air destroy
execute at @s positioned ~ ~2 ~ run execute unless block ~ ~ ~ bedrock run fill ~ ~ ~ ~ ~ ~ air destroy

tag @s remove FoundGroundCad
tag @s remove FoundRoofCad

#execute at @s run particle minecraft:campfire_cosy_smoke ~ ~ ~ 1 0 1 0.01 100
#execute at @e[type=stray,tag=CadeyrnTP,limit=1] run tp @e[type=stray,tag=CadeyrnTP,limit=1] ~ ~ ~ facing entity @p[tag=CadeyrnFightTag,gamemode=!spectator] eyes

data merge entity @s {NoAI:0}
scoreboard players set @s CadCrackTimer 0

#execute at @s run tellraw @a[distance=..150] ["",{"text":"[","color":"dark_blue"},{"text":"Cadeyrn the Wretched","color":"gold"},{"text":"] ","color":"dark_blue"},{"text":"weeee","color":"dark_red","italic":"true"}]
