scoreboard objectives remove EnderLordCheck
scoreboard objectives add EnderLordCheck dummy

summon ldz:ender_lord ~ ~ ~ 0 0 set_boss_fight_to_true
scoreboard players set @e[type=ldz:ender_lord,r=1,c=1] EnderLordCheck 1
execute as @e[type=ldz:ender_lord,r=1,c=1] in the_end run tp -8 59 -6 0 0
scoreboard objectives add EnderLordSpawn dummy
scoreboard players set .lord_spawned EnderLordSpawn 1