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,8 @@
function nullscape:technical/main
# includes players
execute as @e[type=!#nullscape:not_teleportable] run function nullscape:entity/main
execute as @a at @s run function nullscape:player/main
schedule function nullscape:clocks/main 1t replace

View file

@ -0,0 +1,3 @@
schedule function nullscape:clocks/wait_for_player 1s replace
execute if entity @r run function nullscape:technical/misc/check_dimension

View file

@ -0,0 +1,17 @@
# @s: entity thats !#nullscape:not_teleportable
#> ticking entity
scoreboard players add @s ns.dimension_buffer 0
scoreboard players operation @s[scores={ns.dimension_buffer=0}] ns.old_dimension = @s ns.dimension
scoreboard players set @s ns.dimension 1
scoreboard players set @s[predicate=nullscape:dim/null_island] ns.dimension 2
scoreboard players set @s[predicate=nullscape:dim/the_end] ns.dimension 3
# if unset, set it before bad stuff happens
execute unless score @s ns.old_dimension matches 1.. run scoreboard players operation @s ns.old_dimension = @s ns.dimension
#> If entity changed dimensions, reroute entity
execute unless score @s ns.old_dimension = @s ns.dimension in minecraft:the_end positioned 100 49 0 run function nullscape:technical/dim/route
scoreboard players remove @s[scores={ns.dimension_buffer=1..}] ns.dimension_buffer 1

View file

@ -0,0 +1,27 @@
# #minecraft:load via #load:load
scoreboard players set nullscape load.status 1
scoreboard objectives add ns.dummy dummy
scoreboard objectives add ns.const dummy
scoreboard objectives add ns.tar_time dummy
scoreboard objectives add ns.use_pearl minecraft.used:minecraft.ender_pearl
#> dimension num code
# 1: normal dimension (minecraft:overworld, minecraft:the_nether)
# 2: null island (nullscape:end_island)
# 3: nullscape (minecraft:the_end)
scoreboard objectives add ns.dimension dummy
scoreboard objectives add ns.old_dimension dummy
scoreboard objectives add ns.dimension_buffer dummy
# we have to for proper entity teleporation >:(
execute in minecraft:the_end run forceload remove 100 0
execute in minecraft:the_end run forceload add 100 0
execute in nullscape:end_island run forceload remove 100 0
execute in nullscape:end_island run forceload add 100 0
schedule clear nullscape:clocks/main
schedule function nullscape:clocks/main 1t replace
schedule function nullscape:clocks/wait_for_player 2t replace

View file

@ -0,0 +1,31 @@
# from clocks/main
# @s: player
#> tar bog disabled
# scoreboard players add @s[predicate=nullscape:tar_bog] ns.tar_time 1
# execute if entity @s[scores={ns.tar_time=1..}] run function nullscape:player/tar_bog
# stupid ender pearls
execute positioned 96 75 0 if block ~ ~ ~ end_gateway if entity @s[distance=..2.5,scores={ns.use_pearl=1..}] run function nullscape:technical/dim/to_nullscape
execute positioned 91 75 29 if block ~ ~ ~ end_gateway if entity @s[distance=..2.5,scores={ns.use_pearl=1..}] run function nullscape:technical/dim/to_nullscape
execute positioned 77 75 56 if block ~ ~ ~ end_gateway if entity @s[distance=..2.5,scores={ns.use_pearl=1..}] run function nullscape:technical/dim/to_nullscape
execute positioned 56 75 77 if block ~ ~ ~ end_gateway if entity @s[distance=..2.5,scores={ns.use_pearl=1..}] run function nullscape:technical/dim/to_nullscape
execute positioned 29 75 91 if block ~ ~ ~ end_gateway if entity @s[distance=..2.5,scores={ns.use_pearl=1..}] run function nullscape:technical/dim/to_nullscape
execute positioned -0 75 96 if block ~ ~ ~ end_gateway if entity @s[distance=..2.5,scores={ns.use_pearl=1..}] run function nullscape:technical/dim/to_nullscape
execute positioned -29 75 91 if block ~ ~ ~ end_gateway if entity @s[distance=..2.5,scores={ns.use_pearl=1..}] run function nullscape:technical/dim/to_nullscape
execute positioned -56 75 77 if block ~ ~ ~ end_gateway if entity @s[distance=..2.5,scores={ns.use_pearl=1..}] run function nullscape:technical/dim/to_nullscape
execute positioned -77 75 56 if block ~ ~ ~ end_gateway if entity @s[distance=..2.5,scores={ns.use_pearl=1..}] run function nullscape:technical/dim/to_nullscape
execute positioned -91 75 29 if block ~ ~ ~ end_gateway if entity @s[distance=..2.5,scores={ns.use_pearl=1..}] run function nullscape:technical/dim/to_nullscape
execute positioned -95 75 -0 if block ~ ~ ~ end_gateway if entity @s[distance=..2.5,scores={ns.use_pearl=1..}] run function nullscape:technical/dim/to_nullscape
execute positioned -91 75 -29 if block ~ ~ ~ end_gateway if entity @s[distance=..2.5,scores={ns.use_pearl=1..}] run function nullscape:technical/dim/to_nullscape
execute positioned -77 75 -56 if block ~ ~ ~ end_gateway if entity @s[distance=..2.5,scores={ns.use_pearl=1..}] run function nullscape:technical/dim/to_nullscape
execute positioned -56 75 -77 if block ~ ~ ~ end_gateway if entity @s[distance=..2.5,scores={ns.use_pearl=1..}] run function nullscape:technical/dim/to_nullscape
execute positioned -29 75 -91 if block ~ ~ ~ end_gateway if entity @s[distance=..2.5,scores={ns.use_pearl=1..}] run function nullscape:technical/dim/to_nullscape
execute positioned 0 75 -95 if block ~ ~ ~ end_gateway if entity @s[distance=..2.5,scores={ns.use_pearl=1..}] run function nullscape:technical/dim/to_nullscape
execute positioned 29 75 -91 if block ~ ~ ~ end_gateway if entity @s[distance=..2.5,scores={ns.use_pearl=1..}] run function nullscape:technical/dim/to_nullscape
execute positioned 56 75 -77 if block ~ ~ ~ end_gateway if entity @s[distance=..2.5,scores={ns.use_pearl=1..}] run function nullscape:technical/dim/to_nullscape
execute positioned 77 75 -56 if block ~ ~ ~ end_gateway if entity @s[distance=..2.5,scores={ns.use_pearl=1..}] run function nullscape:technical/dim/to_nullscape
execute positioned 91 75 -29 if block ~ ~ ~ end_gateway if entity @s[distance=..2.5,scores={ns.use_pearl=1..}] run function nullscape:technical/dim/to_nullscape
scoreboard players set @s ns.use_pearl 0

View file

@ -0,0 +1,35 @@
# from ./main
# @s: player (in tar)
scoreboard players remove @s[predicate=!nullscape:tar_bog] ns.tar_time 2
effect give @s[scores={ns.tar_time=8..39}] slowness 1 0
effect give @s[scores={ns.tar_time=40..59}] slowness 1 1
effect give @s[scores={ns.tar_time=60..79}] slowness 1 2
effect give @s[scores={ns.tar_time=80..99}] slowness 1 3
effect give @s[scores={ns.tar_time=100..}] slowness 1 4
effect give @s[scores={ns.tar_time=80..}] blindness 3 0
effect give @s[scores={ns.tar_time=180..220}] wither 1 0
effect give @s[scores={ns.tar_time=220..350}] wither 1 1
effect give @s[scores={ns.tar_time=350..}] wither 1 2
execute if entity @s[scores={ns.tar_time=40..},predicate=nullscape:random/5] run playsound minecraft:block.lava.pop player @a[distance=..5] ~ ~ ~ 1 1.0 1
execute if entity @s[scores={ns.tar_time=40..},predicate=nullscape:random/2] run playsound minecraft:block.slime_block.place player @a[distance=..5] ~ ~ ~ 1 0.9 1
execute if entity @s[scores={ns.tar_time=50..},predicate=nullscape:random/5] run playsound minecraft:block.lava.pop player @a[distance=..5] ~ ~ ~ 1 0.8 1
execute if entity @s[scores={ns.tar_time=60..},predicate=nullscape:random/2] run playsound minecraft:block.slime_block.place player @a[distance=..5] ~ ~ ~ 1 0.7 1
execute if entity @s[scores={ns.tar_time=70..},predicate=nullscape:random/5] run playsound minecraft:block.lava.pop player @a[distance=..5] ~ ~ ~ 1 0.6 1
execute if entity @s[scores={ns.tar_time=80..},predicate=nullscape:random/2] run playsound minecraft:block.slime_block.place player @a[distance=..5] ~ ~ ~ 1 0.5 1
execute if entity @s[scores={ns.tar_time=90..},predicate=nullscape:random/5] run playsound minecraft:block.lava.pop player @a[distance=..5] ~ ~ ~ 1 0.4 1
execute if entity @s[scores={ns.tar_time=100..},predicate=nullscape:random/2] run playsound minecraft:block.slime_block.place player @a[distance=..5] ~ ~ ~ 1 0.3 1
execute if entity @s[scores={ns.tar_time=110..},predicate=nullscape:random/5] run playsound minecraft:block.lava.pop player @a[distance=..5] ~ ~ ~ 1 0.2 1
execute if entity @s[scores={ns.tar_time=40..},predicate=nullscape:random/10] run particle minecraft:falling_dust black_concrete ~ ~1 ~ 0.5 0.5 0.5 0 2 force
execute if entity @s[scores={ns.tar_time=50..},predicate=nullscape:random/10] run particle minecraft:falling_dust black_concrete ~ ~1 ~ 0.6 0.6 0.6 0 2 force
execute if entity @s[scores={ns.tar_time=60..},predicate=nullscape:random/10] run particle minecraft:falling_dust black_concrete ~ ~1 ~ 0.7 0.7 0.7 0 2 force
execute if entity @s[scores={ns.tar_time=70..},predicate=nullscape:random/10] run particle minecraft:falling_dust black_concrete ~ ~1 ~ 0.8 0.8 0.8 0 2 force
execute if entity @s[scores={ns.tar_time=80..},predicate=nullscape:random/10] run particle minecraft:falling_dust black_concrete ~ ~1 ~ 0.8 0.5 0.8 0 2 force
execute if entity @s[scores={ns.tar_time=90..},predicate=nullscape:random/10] run particle minecraft:falling_dust black_concrete ~ ~1 ~ 0.5 0.8 0.5 0 2 force
execute if entity @s[scores={ns.tar_time=100..},predicate=nullscape:random/10] run particle minecraft:falling_dust black_concrete ~ ~1 ~ 0.5 0.5 0.5 0 2 force
execute if entity @s[scores={ns.tar_time=110..},predicate=nullscape:random/10] run particle minecraft:falling_dust black_concrete ~ ~1 ~ 0.5 0.5 0.5 0 2 force
execute if entity @s[scores={ns.tar_time=120..},predicate=nullscape:random/10] run particle minecraft:falling_dust black_concrete ~ ~1 ~ 0.5 0.5 0.5 0 2 force
execute if entity @s[scores={ns.tar_time=130..},predicate=nullscape:random/10] run particle minecraft:falling_dust black_concrete ~ ~1 ~ 0.5 0.5 0.5 0 2 force

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

View file

@ -0,0 +1,12 @@
# @s: marker (ns.nullscape_gateway)
#> reroute entity to place
# regen structure
setblock ~ 50 ~ structure_block{metadata: "", mirror: "NONE", ignoreEntities: 1b, powered: 0b, seed: 0L, author: "Starmute", rotation: "NONE", posX: -6, mode: "LOAD", posY: -11, sizeX: 13, posZ: -6, integrity: 1.0f, showair: 0b, x: 164, name: "nullscape:gateway_platform2", y: 115, z: 61, id: "minecraft:structure_block", sizeY: 20, sizeZ: 13, showboundingbox: 0b}
setblock ~ 49 ~ minecraft:redstone_block
setblock ~ 50 ~ minecraft:air
tp @e[tag=ns.self,limit=1] @s
# flag for later
scoreboard players set $found_gateway ns.dummy 1

View file

@ -0,0 +1,9 @@
# @s: marker
#> positioned recursively
#> marker does not tp down, no need
##tellraw @a ["y: ", {"score":{"name":"$y","objective":"ns.dummy"}}]
execute if block ~ ~ ~ #nullscape:solid run tp @s ~ ~ ~
scoreboard players remove $y ns.dummy 1
execute unless block ~ ~ ~ #nullscape:solid if score $y ns.dummy matches -60.. positioned ~ ~-1 ~ run function nullscape:technical/gateway/find_safe_block

View file

@ -0,0 +1,20 @@
# @s: marker
#> algo for dynamically tping + placing structure
# store coords into marker
execute store result entity @s Pos[0] double 150 run scoreboard players get $x ns.dummy
data modify entity @s Pos[1] set value 50.0d
execute store result entity @s Pos[2] double 150 run scoreboard players get $z ns.dummy
# temp forceload so we can edit blocks
execute positioned as @s in minecraft:the_end run forceload add ~ ~
# make new gateway go to existing one..
scoreboard players set $found_gateway ns.dummy 0
execute positioned as @s in minecraft:the_end as @e[type=marker,tag=ns.nullscape_gateway,distance=..20] at @s run function nullscape:technical/gateway/existing_gateway
execute if score $found_gateway ns.dummy matches 0 positioned as @s in minecraft:the_end run function nullscape:technical/gateway/new_gateway
# unload + cleanup
execute positioned as @s in minecraft:the_end run forceload remove ~ ~
kill @s

View file

@ -0,0 +1,13 @@
# @s: marker
#> structure
execute positioned ~ 52 ~ align xyz unless entity @e[type=marker,distance=..20,tag=ns.nullscape_gateway] run summon marker ~0.5 52 ~0.5 {Tags:['ns.nullscape_gateway'],CustomName:'"Nullscape Gateway"'}
#setblock ~ 50 ~ minecraft:structure_block{mode: "LOAD", posX: -2, posY: -1, posZ: -2, name: "nullscape:gateway_platform", ignoreEntities:1b}
setblock ~ 50 ~ structure_block{metadata: "", mirror: "NONE", ignoreEntities: 1b, powered: 0b, seed: 0L, author: "Starmute", rotation: "NONE", posX: -6, mode: "LOAD", posY: -11, sizeX: 13, posZ: -6, integrity: 1.0f, showair: 0b, x: 164, name: "nullscape:gateway_platform2", y: 115, z: 61, id: "minecraft:structure_block", sizeY: 20, sizeZ: 13, showboundingbox: 0b}
setblock ~ 49 ~ minecraft:redstone_block
setblock ~ 50 ~ minecraft:air
tp @e[tag=ns.self,limit=1] @e[type=marker,tag=ns.nullscape_gateway,limit=1,distance=..5]

View file

@ -0,0 +1,23 @@
# @s: none, dimension nullscape:end_island
#> look at every position and tag and bag
execute positioned 96 75 0 if block ~ ~ ~ end_gateway if entity @s[distance=..1] run function nullscape:technical/dim/to_nullscape
execute positioned 91 75 29 if block ~ ~ ~ end_gateway if entity @s[distance=..1] run function nullscape:technical/dim/to_nullscape
execute positioned 77 75 56 if block ~ ~ ~ end_gateway if entity @s[distance=..1] run function nullscape:technical/dim/to_nullscape
execute positioned 56 75 77 if block ~ ~ ~ end_gateway if entity @s[distance=..1] run function nullscape:technical/dim/to_nullscape
execute positioned 29 75 91 if block ~ ~ ~ end_gateway if entity @s[distance=..1] run function nullscape:technical/dim/to_nullscape
execute positioned -1 75 96 if block ~ ~ ~ end_gateway if entity @s[distance=..1] run function nullscape:technical/dim/to_nullscape
execute positioned -30 75 91 if block ~ ~ ~ end_gateway if entity @s[distance=..1] run function nullscape:technical/dim/to_nullscape
execute positioned -57 75 77 if block ~ ~ ~ end_gateway if entity @s[distance=..1] run function nullscape:technical/dim/to_nullscape
execute positioned -78 75 56 if block ~ ~ ~ end_gateway if entity @s[distance=..1] run function nullscape:technical/dim/to_nullscape
execute positioned -92 75 29 if block ~ ~ ~ end_gateway if entity @s[distance=..1] run function nullscape:technical/dim/to_nullscape
execute positioned -96 75 -1 if block ~ ~ ~ end_gateway if entity @s[distance=..1] run function nullscape:technical/dim/to_nullscape
execute positioned -92 75 -30 if block ~ ~ ~ end_gateway if entity @s[distance=..1] run function nullscape:technical/dim/to_nullscape
execute positioned -78 75 -57 if block ~ ~ ~ end_gateway if entity @s[distance=..1] run function nullscape:technical/dim/to_nullscape
execute positioned -57 75 -78 if block ~ ~ ~ end_gateway if entity @s[distance=..1] run function nullscape:technical/dim/to_nullscape
execute positioned -30 75 -92 if block ~ ~ ~ end_gateway if entity @s[distance=..1] run function nullscape:technical/dim/to_nullscape
execute positioned 0 75 -96 if block ~ ~ ~ end_gateway if entity @s[distance=..1] run function nullscape:technical/dim/to_nullscape
execute positioned 29 75 -92 if block ~ ~ ~ end_gateway if entity @s[distance=..1] run function nullscape:technical/dim/to_nullscape
execute positioned 56 75 -78 if block ~ ~ ~ end_gateway if entity @s[distance=..1] run function nullscape:technical/dim/to_nullscape
execute positioned 77 75 -57 if block ~ ~ ~ end_gateway if entity @s[distance=..1] run function nullscape:technical/dim/to_nullscape
execute positioned 91 75 -30 if block ~ ~ ~ end_gateway if entity @s[distance=..1] run function nullscape:technical/dim/to_nullscape

View file

@ -0,0 +1,46 @@
# @s: none, dimension nullscape:end_island
#> look at every position and tag and bag
execute at @s if block ~ ~ ~ end_gateway run tp @p[gamemode=!spectator] @s
execute positioned 96 75 0 if block ~ ~ ~ end_gateway if entity @s[distance=..2.5] run tp @p[gamemode=!spectator] 96.5 75.5 0.5
execute positioned 91 75 29 if block ~ ~ ~ end_gateway if entity @s[distance=..2.5] run tp @p[gamemode=!spectator] 91.5 75.5 29.5
execute positioned 77 75 56 if block ~ ~ ~ end_gateway if entity @s[distance=..2.5] run tp @p[gamemode=!spectator] 77.5 75.5 56.5
execute positioned 56 75 77 if block ~ ~ ~ end_gateway if entity @s[distance=..2.5] run tp @p[gamemode=!spectator] 56.5 75.5 77.5
execute positioned 29 75 91 if block ~ ~ ~ end_gateway if entity @s[distance=..2.5] run tp @p[gamemode=!spectator] 29.5 75.5 91.5
execute positioned -0 75 96 if block ~ ~ ~ end_gateway if entity @s[distance=..2.5] run tp @p[gamemode=!spectator] -0.5 75.5 96.5
execute positioned -29 75 91 if block ~ ~ ~ end_gateway if entity @s[distance=..2.5] run tp @p[gamemode=!spectator] -29.5 75.5 91.5
execute positioned -56 75 77 if block ~ ~ ~ end_gateway if entity @s[distance=..2.5] run tp @p[gamemode=!spectator] -56.5 75.5 77.5
execute positioned -77 75 56 if block ~ ~ ~ end_gateway if entity @s[distance=..2.5] run tp @p[gamemode=!spectator] -77.5 75.5 56.5
execute positioned -91 75 29 if block ~ ~ ~ end_gateway if entity @s[distance=..2.5] run tp @p[gamemode=!spectator] -91.5 75.5 29.5
execute positioned -95 75 -0 if block ~ ~ ~ end_gateway if entity @s[distance=..2.5] run tp @p[gamemode=!spectator] -95.5 75.5 -0.5
execute positioned -91 75 -29 if block ~ ~ ~ end_gateway if entity @s[distance=..2.5] run tp @p[gamemode=!spectator] -91.5 75.5 -29.5
execute positioned -77 75 -56 if block ~ ~ ~ end_gateway if entity @s[distance=..2.5] run tp @p[gamemode=!spectator] -77.5 75.5 -56.5
execute positioned -56 75 -77 if block ~ ~ ~ end_gateway if entity @s[distance=..2.5] run tp @p[gamemode=!spectator] -56.5 75.5 -77.5
execute positioned -29 75 -91 if block ~ ~ ~ end_gateway if entity @s[distance=..2.5] run tp @p[gamemode=!spectator] -29.5 75.5 -91.5
execute positioned 0 75 -95 if block ~ ~ ~ end_gateway if entity @s[distance=..2.5] run tp @p[gamemode=!spectator] 0.5 75.5 -95.5
execute positioned 29 75 -91 if block ~ ~ ~ end_gateway if entity @s[distance=..2.5] run tp @p[gamemode=!spectator] 29.5 75.5 -91.5
execute positioned 56 75 -77 if block ~ ~ ~ end_gateway if entity @s[distance=..2.5] run tp @p[gamemode=!spectator] 56.5 75.5 -77.5
execute positioned 77 75 -56 if block ~ ~ ~ end_gateway if entity @s[distance=..2.5] run tp @p[gamemode=!spectator] 77.5 75.5 -56.5
execute positioned 91 75 -29 if block ~ ~ ~ end_gateway if entity @s[distance=..2.5] run tp @p[gamemode=!spectator] 91.5 75.5 -29.5
execute positioned 96 75 0 if block ~ ~ ~ end_gateway if entity @s[distance=..2.5] as @p[gamemode=!spectator] run function nullscape:technical/dim/to_nullscape
execute positioned 91 75 29 if block ~ ~ ~ end_gateway if entity @s[distance=..2.5] as @p[gamemode=!spectator] run function nullscape:technical/dim/to_nullscape
execute positioned 77 75 56 if block ~ ~ ~ end_gateway if entity @s[distance=..2.5] as @p[gamemode=!spectator] run function nullscape:technical/dim/to_nullscape
execute positioned 56 75 77 if block ~ ~ ~ end_gateway if entity @s[distance=..2.5] as @p[gamemode=!spectator] run function nullscape:technical/dim/to_nullscape
execute positioned 29 75 91 if block ~ ~ ~ end_gateway if entity @s[distance=..2.5] as @p[gamemode=!spectator] run function nullscape:technical/dim/to_nullscape
execute positioned -0 75 96 if block ~ ~ ~ end_gateway if entity @s[distance=..2.5] as @p[gamemode=!spectator] run function nullscape:technical/dim/to_nullscape
execute positioned -29 75 91 if block ~ ~ ~ end_gateway if entity @s[distance=..2.5] as @p[gamemode=!spectator] run function nullscape:technical/dim/to_nullscape
execute positioned -56 75 77 if block ~ ~ ~ end_gateway if entity @s[distance=..2.5] as @p[gamemode=!spectator] run function nullscape:technical/dim/to_nullscape
execute positioned -77 75 56 if block ~ ~ ~ end_gateway if entity @s[distance=..2.5] as @p[gamemode=!spectator] run function nullscape:technical/dim/to_nullscape
execute positioned -91 75 29 if block ~ ~ ~ end_gateway if entity @s[distance=..2.5] as @p[gamemode=!spectator] run function nullscape:technical/dim/to_nullscape
execute positioned -95 75 -0 if block ~ ~ ~ end_gateway if entity @s[distance=..2.5] as @p[gamemode=!spectator] run function nullscape:technical/dim/to_nullscape
execute positioned -91 75 -29 if block ~ ~ ~ end_gateway if entity @s[distance=..2.5] as @p[gamemode=!spectator] run function nullscape:technical/dim/to_nullscape
execute positioned -77 75 -56 if block ~ ~ ~ end_gateway if entity @s[distance=..2.5] as @p[gamemode=!spectator] run function nullscape:technical/dim/to_nullscape
execute positioned -56 75 -77 if block ~ ~ ~ end_gateway if entity @s[distance=..2.5] as @p[gamemode=!spectator] run function nullscape:technical/dim/to_nullscape
execute positioned -29 75 -91 if block ~ ~ ~ end_gateway if entity @s[distance=..2.5] as @p[gamemode=!spectator] run function nullscape:technical/dim/to_nullscape
execute positioned 0 75 -95 if block ~ ~ ~ end_gateway if entity @s[distance=..2.5] as @p[gamemode=!spectator] run function nullscape:technical/dim/to_nullscape
execute positioned 29 75 -91 if block ~ ~ ~ end_gateway if entity @s[distance=..2.5] as @p[gamemode=!spectator] run function nullscape:technical/dim/to_nullscape
execute positioned 56 75 -77 if block ~ ~ ~ end_gateway if entity @s[distance=..2.5] as @p[gamemode=!spectator] run function nullscape:technical/dim/to_nullscape
execute positioned 77 75 -56 if block ~ ~ ~ end_gateway if entity @s[distance=..2.5] as @p[gamemode=!spectator] run function nullscape:technical/dim/to_nullscape
execute positioned 91 75 -29 if block ~ ~ ~ end_gateway if entity @s[distance=..2.5] as @p[gamemode=!spectator] run function nullscape:technical/dim/to_nullscape

View file

@ -0,0 +1,4 @@
# @s: none, dimension nullscape:end_island
#> look at every position and tag and bag
execute as @e[type=!ender_pearl,y=56,type=!marker,tag=!ns.nullscape_gateway,distance=..1.5] run function nullscape:technical/dim/to_null_island

View file

@ -0,0 +1,13 @@
execute at @s if block ~-1 ~ ~ end_gateway as @p[gamemode=!spectator] run function nullscape:technical/dim/to_null_island
execute at @s if block ~1 ~ ~ end_gateway as @p[gamemode=!spectator] run function nullscape:technical/dim/to_null_island
execute at @s if block ~ ~ ~1 end_gateway as @p[gamemode=!spectator] run function nullscape:technical/dim/to_null_island
execute at @s if block ~ ~ ~-1 end_gateway as @p[gamemode=!spectator] run function nullscape:technical/dim/to_null_island
execute at @s if block ~ ~-1 ~ end_gateway as @p[gamemode=!spectator] run function nullscape:technical/dim/to_null_island
execute at @s if block ~ ~1 ~ end_gateway as @p[gamemode=!spectator] run function nullscape:technical/dim/to_null_island
execute at @s if block ~1 ~ ~1 end_gateway as @p[gamemode=!spectator] run function nullscape:technical/dim/to_null_island
execute at @s if block ~1 ~ ~-1 end_gateway as @p[gamemode=!spectator] run function nullscape:technical/dim/to_null_island
execute at @s if block ~-1 ~ ~-1 end_gateway as @p[gamemode=!spectator] run function nullscape:technical/dim/to_null_island
execute at @s if block ~-2 ~ ~ end_gateway as @p[gamemode=!spectator] run function nullscape:technical/dim/to_null_island
execute at @s if block ~2 ~ ~ end_gateway as @p[gamemode=!spectator] run function nullscape:technical/dim/to_null_island
execute at @s if block ~ ~ ~2 end_gateway as @p[gamemode=!spectator] run function nullscape:technical/dim/to_null_island
execute at @s if block ~ ~ ~-2 end_gateway as @p[gamemode=!spectator] run function nullscape:technical/dim/to_null_island

View file

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

View file

@ -0,0 +1,5 @@
execute positioned ~ 52 ~ run tag @e[type=marker,distance=..20,tag=ns.nullscape_gateway,limit=1] add ns.no_kill
kill @e[type=marker,distance=..20,tag=ns.nullscape_gateway,tag=!ns.no_kill]
tag @e[type=marker,distance=..20,tag=ns.nullscape_gateway,limit=1] remove ns.no_kill
execute positioned ~ 56 ~ if entity @e[type=ender_pearl,distance=..3] as @p[gamemode=!spectator] run function nullscape:technical/dim/to_null_island

View file

@ -0,0 +1,5 @@
# @s: none, dimension nullscape:end_island
#> look at every position and tag and bag
function nullscape:technical/dim/to_null_island
advancement revoke @a only nullscape:technical/enter_gateway

View file

@ -0,0 +1,21 @@
# from clocks/main
#> technical ticking - most things here should be isolated from main logic
execute as @a[predicate=nullscape:dim/overworld] at @s if block ~ ~ ~ end_portal run function nullscape:technical/dim/to_null_island
execute as @a[predicate=nullscape:dim/overworld] at @s if block ~ ~1 ~ end_portal run function nullscape:technical/dim/to_null_island
execute in nullscape:end_island positioned 0 0 0 as @e[distance=0..,type=!#nullscape:not_teleportable] run function nullscape:technical/gateway/null_island_checks
execute in nullscape:end_island positioned 0 0 0 as @e[type=ender_pearl,distance=0..] run function nullscape:technical/gateway/null_island_pearl
#execute in minecraft:the_end positioned 0 0 0 as @e[type=ender_pearl,distance=0..] run function nullscape:technical/gateway/nullscape_pearl
execute as @e[type=marker,tag=ns.nullscape_gateway] at @s run function nullscape:technical/gateway/nullscape_checks
execute at @e[type=marker,tag=ns.nullscape_gateway] run function nullscape:technical/gateway/purge_markers
advancement revoke @a[advancements={nullscape:technical/dim_change=true}] only nullscape:technical/dim_change
execute in nullscape:end_island positioned 0 0 0 as @a[distance=850..2000] run function nullscape:technical/misc/rubberband
execute in nullscape:end_island positioned 0 0 0 as @e[type=ender_pearl,distance=850..] run kill @s

View file

@ -0,0 +1,8 @@
scoreboard players set $found.dimension ns.dummy 0
execute in nullscape:end_island run scoreboard players set $found.dimension ns.dummy 1
#execute if score $found.dimension ns.dummy matches 1 run tellraw @a [{"text":"N","color":"#6e5980"},{"text":"u","color":"#745a8b"},{"text":"l","color":"#7b5b96"},{"text":"l","color":"#825ca1"},{"text":"s","color":"#895dac"},{"text":"c","color":"#8f5eb7"},{"text":"a","color":"#965fc2"},{"text":"p","color":"#9d60cd"},{"text":"e","color":"#a462d8"}, " - ", {"translate": "Starmute, et. al"}]
execute unless score $found.dimension ns.dummy matches 1 run tellraw @a [{"text": "Error ", "color": "red", "bold": true}, [{"text":"N","color":"#6e5980", "bold": false},{"text":"u","color":"#745a8b"},{"text":"l","color":"#7b5b96"},{"text":"l","color":"#825ca1"},{"text":"s","color":"#895dac"},{"text":"c","color":"#8f5eb7"},{"text":"a","color":"#965fc2"},{"text":"p","color":"#9d60cd"},{"text":"e","color":"#a462d8"}], {"text": " has ran into an error. Please restart your world or server to properly initialize the nullscape dimension!", "bold": false}]
schedule clear nullscape:clocks/wait_for_player

View file

@ -0,0 +1,6 @@
# scheduled function
#> remove end portal
execute in minecraft:the_end positioned 100 48 0 run fill ~-2 ~-2 ~-2 ~2 ~2 ~2 minecraft:air replace minecraft:end_portal
execute in minecraft:the_end positioned 100 48 0 run fill ~-2 ~-2 ~-2 ~2 ~2 ~2 minecraft:air replace minecraft:obsidian

View file

@ -0,0 +1,5 @@
# @s: player
#> prevent players from bridging out of island
tp @s 100 50 0
playsound minecraft:entity.ender_dragon.growl player @s 100 50 0 1 0.875 1