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

15 lines
603 B
MCFunction

# @s: entity (location is worldspawn)
#> send entity to the nullscape (the_end)
tag @s add ns.self
kill @e[type=ender_pearl, distance=..3]
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
execute unless entity @e[type=marker,tag=ns.teleporter,distance=..20] run summon marker ~ ~ ~ {Tags:['ns.teleporter']}
execute as @e[type=marker,tag=ns.teleporter,distance=..1,limit=1] run function nullscape:technical/gateway/marker_teleport
tag @s remove ns.self
scoreboard players set @s ns.dimension_buffer 0