Add skybox support

This commit is contained in:
MCLx86 2021-12-21 20:09:01 -05:00
parent 427f31b70b
commit 8f43564de9
2 changed files with 7 additions and 2 deletions

View File

@ -23,6 +23,11 @@ minetest.register_node("coconut:nut", {
groups = {falling_node = 1, cracky = 2} groups = {falling_node = 1, cracky = 2}
}) })
minetest.register_on_joinplayer(function(player)
skybox.set(player, 5)
end)
function coconut.init() function coconut.init()
local players = minetest.get_connected_players() local players = minetest.get_connected_players()
for i=1, #players do for i=1, #players do

View File

@ -54,7 +54,7 @@ minetest.register_decoration(
flags = "place_center_x, place_center_z", flags = "place_center_x, place_center_z",
schematic = minetest.get_modpath("main") schematic = minetest.get_modpath("main")
.. "/schematics/main_tree.mts", .. "/schematics/main_tree.mts",
y_min = -32000, y_min = 7,
y_max = 32000, y_max = 32000,
}) })
@ -70,6 +70,6 @@ minetest.register_decoration(
flags = "place_center_x, place_center_z", flags = "place_center_x, place_center_z",
schematic = minetest.get_modpath("main") schematic = minetest.get_modpath("main")
.. "/schematics/main_payphone.mts", .. "/schematics/main_payphone.mts",
y_min = -32000, y_min = 3,
y_max = 32000, y_max = 32000,
}) })