diff --git a/.luacheckrc b/.luacheckrc index a9241f5..17cb384 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -19,5 +19,5 @@ read_globals = { "vacuum", -- optional mods - "planetoidgen" + "planetoidgen", "skybox" } diff --git a/depends.txt b/depends.txt index 4b7105c..f3f3585 100644 --- a/depends.txt +++ b/depends.txt @@ -1,4 +1,5 @@ default vacuum? technic_worldgen? -maptools? \ No newline at end of file +maptools? +skybox? diff --git a/init.lua b/init.lua index beb9d56..2c9cdfa 100644 --- a/init.lua +++ b/init.lua @@ -13,4 +13,8 @@ dofile(MP.."/legacy.lua") dofile(MP.."/ores.lua") dofile(MP.."/mapgen.lua") +if minetest.get_modpath("skybox") then + dofile(MP.."/skybox.lua") +end + print("[OK] Planet: moon") diff --git a/skybox.lua b/skybox.lua new file mode 100644 index 0000000..5af9128 --- /dev/null +++ b/skybox.lua @@ -0,0 +1,17 @@ + +-- space +skybox.register({ + name = "space", + miny = 1000, + maxy = 5000, + textures = {"space_sky.png","space_sky2.png","space_sky.png","space_sky.png","space_sky.png","space_sky.png"} +}) + +-- moon +skybox.register({ + name = "moon", + miny = 5001, + maxy = 6000, + always_day = true, + textures = {"space_sky.png","space_sky.png","space_sky.png","space_sky.png","space_sky.png","space_sky.png"} +}) diff --git a/textures/space_sky.png b/textures/space_sky.png new file mode 100644 index 0000000..8c73108 Binary files /dev/null and b/textures/space_sky.png differ diff --git a/textures/space_sky2.png b/textures/space_sky2.png new file mode 100644 index 0000000..a83ac22 Binary files /dev/null and b/textures/space_sky2.png differ