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: 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