From fcbea16f2ae86843eb214f64e02a96862e8e3564 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sun, 23 Jun 2024 17:04:11 +0200 Subject: original => vanilla && overwrite some more hard-coded structures :] --- data/vanilla_skyblock/function/debug.mcfunction | 27 ++++++++++ .../function/initialize.mcfunction | 63 ++++++++++++++++++++++ data/vanilla_skyblock/function/load.mcfunction | 3 ++ 3 files changed, 93 insertions(+) create mode 100644 data/vanilla_skyblock/function/debug.mcfunction create mode 100644 data/vanilla_skyblock/function/initialize.mcfunction create mode 100644 data/vanilla_skyblock/function/load.mcfunction (limited to 'data/vanilla_skyblock/function') diff --git a/data/vanilla_skyblock/function/debug.mcfunction b/data/vanilla_skyblock/function/debug.mcfunction new file mode 100644 index 0000000..bbf2fe7 --- /dev/null +++ b/data/vanilla_skyblock/function/debug.mcfunction @@ -0,0 +1,27 @@ +gamemode creative + + + +# create nether portal + +fill -1 63 -2 2 63 -2 obsidian +fill -1 63 -2 -1 68 -2 obsidian +fill 2 63 -2 2 68 -2 obsidian +fill -1 68 -2 2 68 -2 obsidian + +fill 0 64 -2 1 67 -2 nether_portal + + + +# create end portal + +fill 5 63 1 5 63 -1 end_portal_frame +fill 6 63 2 8 63 2 end_portal_frame +fill 6 63 -2 8 63 -2 end_portal_frame +fill 9 63 1 9 63 -1 end_portal_frame + +fill 6 63 1 8 63 -1 end_portal + +execute in the_end run forceload add 103 0 +execute in the_end run forceload remove 103 0 +execute in the_end run setblock 103 48 0 end_gateway diff --git a/data/vanilla_skyblock/function/initialize.mcfunction b/data/vanilla_skyblock/function/initialize.mcfunction new file mode 100644 index 0000000..5a0f179 --- /dev/null +++ b/data/vanilla_skyblock/function/initialize.mcfunction @@ -0,0 +1,63 @@ +setworldspawn 0 64 0 +gamerule spawnRadius 0 + + + +# starting island + +execute in overworld run forceload add -1 -1 1 1 +execute in overworld run forceload remove -1 -1 1 1 + +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 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 +#execute in overworld run item replace block 4 64 0 container.26 with obsidian 10 + +execute in overworld run setblock 0 60 0 chest[facing=north] +execute in the_nether run item replace block 0 60 0 container.0 with sweet_berries 1 +#execute in overworld run item replace block 0 60 0 container.1 with sniffer_egg 2 + + + +# nether + +execute in the_nether run forceload add -1 -1 1 1 +execute in the_nether run forceload remove -1 -1 1 1 + +execute in the_nether run fill 2 63 0 2 63 1 obsidian +execute in the_nether run fill 2 64 2 2 66 2 obsidian +execute in the_nether run fill 2 67 0 2 67 1 obsidian +execute in the_nether run fill 2 64 -1 2 66 -1 obsidian +execute in the_nether run fill 2 64 0 2 66 1 nether_portal[axis=z] + +execute in the_nether run fill 1 63 -1 1 63 2 glowstone +execute in the_nether run fill 3 63 -1 3 63 2 glowstone + +execute in the_nether run setblock 1 64 -1 chest[facing=west] +execute in the_nether run item replace block 1 64 -1 container.0 with nether_wart 1 + + + +# end + +execute in the_end run forceload add -1 -1 112 0 +execute in the_end run forceload remove -1 -1 112 0 + +execute in the_end run setblock 0 61 0 bedrock + +execute in the_end run setblock 112 48 0 obsidian +execute in the_end run setblock 112 49 0 chest[facing=west] +execute in the_end run item replace block 112 49 0 container.0 with chorus_flower 1 + + + +# set flag +scoreboard players set $initialized vanilla_skyblock_data 1 diff --git a/data/vanilla_skyblock/function/load.mcfunction b/data/vanilla_skyblock/function/load.mcfunction new file mode 100644 index 0000000..512c50a --- /dev/null +++ b/data/vanilla_skyblock/function/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 -- cgit v1.2.3