Add Nullscape

This commit is contained in:
oitsjustjose 2022-06-27 21:46:03 -05:00
commit 09f7df5eb9
361 changed files with 21675 additions and 2 deletions

View file

@ -0,0 +1,12 @@
# @s: entity just teleported (pos in minecraft:the_end around 100 50 0)
#> route entity to correct location
scoreboard players set @s[scores={ns.dimension_buffer=0}] ns.dimension_buffer 10
# old dim == overworld/the_nether, etc
execute if entity @s[scores={ns.old_dimension=1}, distance=..6] run function nullscape:technical/dim/to_null_island
# old dim == null_island (fake end island)
execute if entity @s[scores={ns.old_dimension=2}, distance=..6] run function nullscape:technical/dim/to_overworld
execute if entity @s[scores={ns.dimension_buffer=0}] run tellraw @a[tag=ns.admin] ["", {"nbt": "Pos", "entity": "@s", "color": "gold"}, " ", {"nbt": "Dimension", "entity": "@s", "color": "blue"}, " ", {"score": {"name": "@s", "objective": "ns.old_dimension"}, "color": "red"}, " -> ", {"score": {"name": "@s", "objective": "ns.dimension"}, "color": "green"}]

View file

@ -0,0 +1,21 @@
# @s: entity (location is worldspawn)
#> send entity to the fake end island (nullscape:end_island)
#say going to null island
# players go to different coords than entities
kill @e[type=ender_pearl,distance=..10]
execute in nullscape:end_island run tp @s[type=player] 100 49 0
execute in nullscape:end_island run tp @s[type=!player] 100.5 50 0.5
# obby platform
execute in nullscape:end_island positioned 100 49 0 run fill ~-2 ~-1 ~-2 ~2 ~-1 ~2 minecraft:obsidian replace
# air box
execute in nullscape:end_island positioned 100 49 0 run fill ~-2 ~ ~-2 ~2 ~3 ~2 minecraft:air replace minecraft:end_stone
# prevent double player tp
tag @s[type=player] add ns.tpd
scoreboard players set @s ns.dimension_buffer 0

View file

@ -0,0 +1,15 @@
# @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

View file

@ -0,0 +1,13 @@
# @s: entity
#> send entity to the overworld
#say going to overworld
# this is for players lol
execute in minecraft:the_end positioned 100 50 0 run fill ~-2 ~ ~-2 ~2 ~ ~2 minecraft:end_portal replace minecraft:air
# delete later, must be loaded
schedule function nullscape:technical/misc/delete_end_portal 2t replace
scoreboard players set @s ns.dimension_buffer 0