execute if entity @s[family=boss_fight] run execute as @a[x=-3,y=58,z=-18,dx=1,dy=0,dz=1] run tp -2 59 -13 180 0
execute if entity @s[family=boss_fight] run event entity @e[type=ldz:summoner_ender_lord] despawn
execute if entity @s[family=boss_fight] run summon ldz:summoner_ender_lord -2 59 -21.0
playsound block.return_end_portal.spawn @a ~ ~ ~ 
execute if entity @s[family=boss_fight] run summon ldz:fares_portal -2 59 -17 0 0 set_hide_pedestals_to_true

execute if entity @s[family=boss_fight] run fill -3 59 -15 -1 59 -15 ldz:portal_frame_barrier
execute if entity @s[family=boss_fight] run fill 0 59 -16 0 59 -18 ldz:portal_frame_barrier
execute if entity @s[family=boss_fight] run fill -1 59 -19 -3 59 -19 ldz:portal_frame_barrier
execute if entity @s[family=boss_fight] run fill -4 59 -18 -4 59 -16 ldz:portal_frame_barrier
# fill -3 59 -16 -1 59 -18 ldz:portal_platform

loot spawn ~ ~ ~ kill @s
event entity @s despawn