From 216d8166aaa321a4cfb5fef3510a1ee60c7dc9de Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Tue, 19 Mar 2024 23:47:51 +0100 Subject: initial commit --- data/minecraft/tags/functions/load.json | 5 +++ data/minecraft/tags/functions/tick.json | 5 +++ data/minecraft/worldgen/noise_settings/end.json | 47 ++++++++++++++++++++++ data/minecraft/worldgen/noise_settings/nether.json | 47 ++++++++++++++++++++++ .../worldgen/noise_settings/overworld.json | 47 ++++++++++++++++++++++ .../functions/initialize.mcfunction | 23 +++++++++++ .../functions/initialize_nether.mcfunction | 6 +++ data/vanilla_skyblock/functions/load.mcfunction | 3 ++ data/vanilla_skyblock/functions/tick.mcfunction | 15 +++++++ 9 files changed, 198 insertions(+) create mode 100644 data/minecraft/tags/functions/load.json create mode 100644 data/minecraft/tags/functions/tick.json create mode 100644 data/minecraft/worldgen/noise_settings/end.json create mode 100644 data/minecraft/worldgen/noise_settings/nether.json create mode 100644 data/minecraft/worldgen/noise_settings/overworld.json create mode 100644 data/vanilla_skyblock/functions/initialize.mcfunction create mode 100644 data/vanilla_skyblock/functions/initialize_nether.mcfunction create mode 100644 data/vanilla_skyblock/functions/load.mcfunction create mode 100644 data/vanilla_skyblock/functions/tick.mcfunction (limited to 'data') diff --git a/data/minecraft/tags/functions/load.json b/data/minecraft/tags/functions/load.json new file mode 100644 index 0000000..a12c1ab --- /dev/null +++ b/data/minecraft/tags/functions/load.json @@ -0,0 +1,5 @@ +{ + "values": [ + "vanilla_skyblock:load" + ] +} diff --git a/data/minecraft/tags/functions/tick.json b/data/minecraft/tags/functions/tick.json new file mode 100644 index 0000000..b2f7a9e --- /dev/null +++ b/data/minecraft/tags/functions/tick.json @@ -0,0 +1,5 @@ +{ + "values": [ + "vanilla_skyblock:tick" + ] +} diff --git a/data/minecraft/worldgen/noise_settings/end.json b/data/minecraft/worldgen/noise_settings/end.json new file mode 100644 index 0000000..c3d39b6 --- /dev/null +++ b/data/minecraft/worldgen/noise_settings/end.json @@ -0,0 +1,47 @@ +{ + "sea_level": 63, + "disable_mob_generation": false, + "aquifers_enabled": false, + "ore_veins_enabled": false, + "legacy_random_source": false, + "default_block": { + "Name": "minecraft:air" + }, + "default_fluid": { + "Name": "minecraft:air", + "Properties": { + "level": "0" + } + }, + "noise": { + "min_y": -64, + "height": 384, + "size_horizontal": 1, + "size_vertical": 2 + }, + "noise_router": { + "barrier": 0, + "fluid_level_floodedness": 0, + "fluid_level_spread": 0, + "lava": 0, + "temperature": "minecraft:end/base_3d_noise", + "vegetation": "minecraft:end/base_3d_noise", + "continents": 0, + "erosion": 0, + "depth": 0, + "ridges": 0, + "initial_density_without_jaggedness": 0, + "final_density": { + "type": "minecraft:constant", + "argument": 1 + }, + "vein_toggle": 0, + "vein_ridged": 0, + "vein_gap": 0 + }, + "spawn_target": [], + "surface_rule": { + "type": "minecraft:sequence", + "sequence": [] + } +} diff --git a/data/minecraft/worldgen/noise_settings/nether.json b/data/minecraft/worldgen/noise_settings/nether.json new file mode 100644 index 0000000..ef1820a --- /dev/null +++ b/data/minecraft/worldgen/noise_settings/nether.json @@ -0,0 +1,47 @@ +{ + "sea_level": 63, + "disable_mob_generation": false, + "aquifers_enabled": false, + "ore_veins_enabled": false, + "legacy_random_source": false, + "default_block": { + "Name": "minecraft:air" + }, + "default_fluid": { + "Name": "minecraft:air", + "Properties": { + "level": "0" + } + }, + "noise": { + "min_y": -64, + "height": 384, + "size_horizontal": 1, + "size_vertical": 2 + }, + "noise_router": { + "barrier": 0, + "fluid_level_floodedness": 0, + "fluid_level_spread": 0, + "lava": 0, + "temperature": "minecraft:nether/base_3d_noise", + "vegetation": "minecraft:nether/base_3d_noise", + "continents": 0, + "erosion": 0, + "depth": 0, + "ridges": 0, + "initial_density_without_jaggedness": 0, + "final_density": { + "type": "minecraft:constant", + "argument": 1 + }, + "vein_toggle": 0, + "vein_ridged": 0, + "vein_gap": 0 + }, + "spawn_target": [], + "surface_rule": { + "type": "minecraft:sequence", + "sequence": [] + } +} diff --git a/data/minecraft/worldgen/noise_settings/overworld.json b/data/minecraft/worldgen/noise_settings/overworld.json new file mode 100644 index 0000000..3bebe6f --- /dev/null +++ b/data/minecraft/worldgen/noise_settings/overworld.json @@ -0,0 +1,47 @@ +{ + "sea_level": 63, + "disable_mob_generation": false, + "aquifers_enabled": false, + "ore_veins_enabled": false, + "legacy_random_source": false, + "default_block": { + "Name": "minecraft:air" + }, + "default_fluid": { + "Name": "minecraft:air", + "Properties": { + "level": "0" + } + }, + "noise": { + "min_y": -64, + "height": 384, + "size_horizontal": 1, + "size_vertical": 2 + }, + "noise_router": { + "barrier": 0, + "fluid_level_floodedness": 0, + "fluid_level_spread": 0, + "lava": 0, + "temperature": "minecraft:overworld/base_3d_noise", + "vegetation": "minecraft:overworld/base_3d_noise", + "continents": "minecraft:overworld/continents", + "erosion": "minecraft:overworld/erosion", + "depth": "minecraft:overworld/depth", + "ridges": "minecraft:overworld/ridges", + "initial_density_without_jaggedness": 0, + "final_density": { + "type": "minecraft:constant", + "argument": 1 + }, + "vein_toggle": 0, + "vein_ridged": 0, + "vein_gap": 0 + }, + "spawn_target": [], + "surface_rule": { + "type": "minecraft:sequence", + "sequence": [] + } +} diff --git a/data/vanilla_skyblock/functions/initialize.mcfunction b/data/vanilla_skyblock/functions/initialize.mcfunction new file mode 100644 index 0000000..7d36e93 --- /dev/null +++ b/data/vanilla_skyblock/functions/initialize.mcfunction @@ -0,0 +1,23 @@ +setworldspawn 0 64 0 +gamerule spawnRadius 0 + +execute in overworld run fill 4 63 -1 -1 63 1 grass_block +execute in overworld run fill 4 62 -1 -1 61 1 dirt +execute in overworld run fill 1 63 2 -1 63 4 grass_block +execute in overworld run fill 1 62 2 -1 61 4 dirt +execute in overworld run setblock 0 61 0 bedrock + +#execute in overworld run fill -1 64 4 -1 69 3 oak_log +execute in overworld run place feature oak -1 64 4 + +execute in overworld run setblock 4 64 0 chest[facing=west] +execute in overworld run item replace block 4 64 0 container.0 with ice 1 +execute in overworld run item replace block 4 64 0 container.1 with lava_bucket 1 + +# end +execute in the_end run forceload add -1 -1 1 1 +execute in the_end run setblock 0 61 0 bedrock +execute in the_end run forceload remove -1 -1 1 1 + +# set flag +scoreboard players set initialized vanilla_skyblock_data 1 diff --git a/data/vanilla_skyblock/functions/initialize_nether.mcfunction b/data/vanilla_skyblock/functions/initialize_nether.mcfunction new file mode 100644 index 0000000..4dcb5a5 --- /dev/null +++ b/data/vanilla_skyblock/functions/initialize_nether.mcfunction @@ -0,0 +1,6 @@ +tellraw @a "hi@nether!" + +execute in the_nether run setblock 0 61 0 bedrock + +# set flag +scoreboard players set initialized_nether vanilla_skyblock_data 1 diff --git a/data/vanilla_skyblock/functions/load.mcfunction b/data/vanilla_skyblock/functions/load.mcfunction new file mode 100644 index 0000000..9264728 --- /dev/null +++ b/data/vanilla_skyblock/functions/load.mcfunction @@ -0,0 +1,3 @@ +scoreboard objectives add vanilla_skyblock_data dummy + +execute unless score initialized vanilla_skyblock_data matches 1 run function vanilla_skyblock:initialize diff --git a/data/vanilla_skyblock/functions/tick.mcfunction b/data/vanilla_skyblock/functions/tick.mcfunction new file mode 100644 index 0000000..5e32c7a --- /dev/null +++ b/data/vanilla_skyblock/functions/tick.mcfunction @@ -0,0 +1,15 @@ +# get render distance +# for each current chunk +- render distance (and not in scoreboard) + # check for end_portal_frame + # get positions + # fill chunk with air + # re-place end_portal_frame + # set scoreboard values to 1 for processed chunk + +execute in the_nether unless score initialized_nether vanilla_skyblock_data matches 1 run function vanilla_skyblock:initialize_nether + +execute in the_nether unless score initialized_nether vanilla_skyblock_data matches 1 run tellraw @a "COOL" +execute unless score initialized_nether vanilla_skyblock_data matches 1 run tellraw @a "COOL!!" + +execute in overworld run tellraw @a "OI!!O" +execute in the_nether run tellraw @a "OI!!N" -- cgit v1.2.3