execute as @e[tag=gatewayready] at @s positioned as @e[tag=gate,limit=1,sort=nearest] run tp @s ~ ~2 ~2
execute as @e[tag=overtofinale,predicate=survivalplus:final_destination] at @s in survivalplus:final_destination positioned as @e[tag=gate,limit=1,sort=nearest,predicate=survivalplus:final_destination] run tp @s ~ ~2 ~2
execute as @e[tag=finaletoover,predicate=survivalplus:overworld] at @s in minecraft:overworld positioned as @e[tag=gate,limit=1,sort=nearest,predicate=survivalplus:overworld] run tp @s ~ ~2 ~2