Harmonious-Engineering/kubejs/data/nullscape/functions/technical/gateway/pearl_end.mcfunction
2022-06-27 21:46:03 -05:00

14 lines
465 B
MCFunction

# @s: entity (location is worldspawn)
#> send entity to the nullscape (the_end)
#say going to nullscape
tag @s add ns.self
execute store result score $x ns.dummy run data get entity @s Pos[0] 0.1
execute store result score $z ns.dummy run data get entity @s Pos[2] 0.1
summon marker ~ ~ ~ {Tags:['ns.teleporter']}
execute as @e[type=marker,limit=1,distance=..1,tag=ns.teleporter] run function nullscape:technical/gateway/marker_teleport
tag @s remove ns.self