From 8f43564de940813873bdf447ef9ed207a29f8e8a Mon Sep 17 00:00:00 2001 From: MCLx86 Date: Tue, 21 Dec 2021 20:09:01 -0500 Subject: [PATCH] Add skybox support --- mods/coconut/init.lua | 5 +++++ mods/main/mapgen.lua | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/mods/coconut/init.lua b/mods/coconut/init.lua index a62d3cf..949e944 100644 --- a/mods/coconut/init.lua +++ b/mods/coconut/init.lua @@ -23,6 +23,11 @@ minetest.register_node("coconut:nut", { groups = {falling_node = 1, cracky = 2} }) + +minetest.register_on_joinplayer(function(player) +skybox.set(player, 5) +end) + function coconut.init() local players = minetest.get_connected_players() for i=1, #players do diff --git a/mods/main/mapgen.lua b/mods/main/mapgen.lua index 433bcf6..4b1ea10 100644 --- a/mods/main/mapgen.lua +++ b/mods/main/mapgen.lua @@ -54,7 +54,7 @@ minetest.register_decoration( flags = "place_center_x, place_center_z", schematic = minetest.get_modpath("main") .. "/schematics/main_tree.mts", - y_min = -32000, + y_min = 7, y_max = 32000, }) @@ -70,6 +70,6 @@ minetest.register_decoration( flags = "place_center_x, place_center_z", schematic = minetest.get_modpath("main") .. "/schematics/main_payphone.mts", - y_min = -32000, + y_min = 3, y_max = 32000, })