Go to file
Corvus 5c407934c3
Merge pull request #2 from neinwhal/undefined-biomes
Revert to grassland when dealing with undefined biome
2022-08-27 21:34:10 +02:00
skyboxes/test_sky Add skybox and inactive modes, implement saving mode choice, add test skybox 2022-08-05 13:35:26 +02:00
textures Add events 2022-08-05 15:42:33 +02:00
LICENSE Initial commit 2022-04-08 14:41:20 +02:00
README.md Add server priv requirement to the event command, update README 2022-08-05 16:00:06 +02:00
biome.lua Revert to grassland when dealing with undefined biome 2022-08-28 02:52:27 +08:00
colors.lua Add events 2022-08-05 15:42:33 +02:00
events.lua Add events 2022-08-05 15:42:33 +02:00
init.lua Add a workaround for the set_stars bug, implement an option for scaling sun and moon in biome mode 2022-08-09 16:22:36 +02:00
mod.conf Initial commit 2022-04-08 14:43:52 +02:00
skybox.lua Add a workaround for the set_stars bug, implement an option for scaling sun and moon in biome mode 2022-08-09 16:22:36 +02:00

README.md

minetest-skygen

Adaptive sky mod for Minetest. Supports skyboxes, custom color schemes and custom server-wide events. Three modes are available to the players: biome, skybox and inactive (default minetest sky); These are set by the player using the /skygen command Events change the overall color in the biome mode, for everyone on the server. An event can also change the textures of sun and moon, as well as the cloud color. Events can be started and ended using the /skygen_event command. Events and player's sky choice persist over server restarts/reconnects.

Skyboxes are defined using a custom file, placed in skyboxes/ . The file has to have the same name as the skybox string, which has to be added to the skygen.skybox_names table. The skybox textures also have to have a name consisting of the skybox string with the number of the skybox side appended. The numbering is exactly the same as the order of inputs for minetest's set_sky() textures. The example settings are provided in the test_sky example.

Events are registered as an entry in the skygen.event_data table. An event string has to be added to skygen.events as well. Custom event settings are likewise demonstrated in the test event example.

Skygen biome mode can also be extended to support additional biomes, by adding appropriate biome entries into the skygen.biome_names and skygen.biomes tables in colors.lua .