#execute at @e[name=LavD] positioned ~50 ~7 ~1 run summon minecraft:armor_stand ~ ~ ~ {CustomName:"\"CadeyrnFight\"",NoGravity:1,Invisible:1b,Silent:1b,Silent:1b,Invulnerable:1}
#execute at @e[name=CadeyrnFight] run tag @a[distance=..21] add CadeyrnFightStart
execute at @e[name=CadeyrnFight] run tp @a[tag=CadeyrnFightStart] ~-11 ~-1 ~ -90 0
execute at @e[name=CadeyrnFight] run effect give @a[tag=CadeyrnFightStart] minecraft:levitation 20 0
execute at @e[name=CadeyrnFight] positioned ~-1 ~-1 ~ run fill ~6 7 ~10 ~-13 7 ~-12 minecraft:barrier replace air
effect give @a[tag=CadeyrnFightStart] minecraft:slowness 20 1
#gamemode adventure @a[tag=CadeyrnFightStart]
execute at @e[name=CadeyrnFight] run kill @e[distance=..30,type=minecraft:zombified_piglin]
execute at @e[name=CadeyrnFight] positioned ~-13 ~ ~ run fill ~ ~7 ~-4 ~ ~-1 ~5 barrier replace air
execute at @e[name=CadeyrnFight] positioned ~-1 ~-1 ~ run fill ~ ~ ~-12 ~ ~9 ~10 barrier replace air