execute if entity @s[type=player,tag=!dead,gamemode=!spectator,gamemode=!creative] at @e[type=marker,tag=gate,sort=nearest,limit=1] run tp @s ~ ~ ~

execute if entity @s[tag=boss,tag=EB] at @e[type=marker,tag=drop_mark,sort=nearest,limit=1] run tp @s ~ ~ ~
execute if entity @s[tag=boss,tag=EB] run scoreboard players set @s damage 1000

execute if entity @s[type=!player,type=!area_effect_cloud,tag=!boss] run kill @s
