optional skyboxes
This commit is contained in:
parent
8b36b8ab5c
commit
5eb0fa6a1c
@ -19,5 +19,5 @@ read_globals = {
|
||||
"vacuum",
|
||||
|
||||
-- optional mods
|
||||
"planetoidgen"
|
||||
"planetoidgen", "skybox"
|
||||
}
|
||||
|
@ -1,4 +1,5 @@
|
||||
default
|
||||
vacuum?
|
||||
technic_worldgen?
|
||||
maptools?
|
||||
maptools?
|
||||
skybox?
|
||||
|
4
init.lua
4
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")
|
||||
|
17
skybox.lua
Normal file
17
skybox.lua
Normal file
@ -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"}
|
||||
})
|
BIN
textures/space_sky.png
Normal file
BIN
textures/space_sky.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 9.3 KiB |
BIN
textures/space_sky2.png
Normal file
BIN
textures/space_sky2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 290 KiB |
Loading…
x
Reference in New Issue
Block a user