Page 1 of 1

[Mod] Skycolor [0.2]

PostPosted: Sat Oct 22, 2016 21:14
by xeranas
Minetest utility mod to help manage sky color. Mod makes smooth transition between users given base sky colors.

Mod dependencies: <none>
Download and details on: https://github.com/xeranas/skycolor
Licensing:
- Code: MIT
Tested on: Minetest 0.4.14

Expected to be configured by other mods. Minimal requirements is color set and activation.
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
skycolor.add_layer(
    "my-color-layer-name",
    {{r=0, g=0, b=0},
    {r=83, g=14, b=83},
    {r=0, g=0, b=0}},
    true -- force update flag
)
skycolor.active = true

Re: [Mod] Skycolor

PostPosted: Sun Oct 23, 2016 16:54
by azekill_DIABLO
yes yes yes yes yes yes and yes

Re: [Mod] Skycolor

PostPosted: Sun Oct 23, 2016 17:07
by TheReaperKing
This seems like it'd be neat for storms and maybe even eventually stormclouds!

Re: [Mod] Skycolor

PostPosted: Sun Oct 23, 2016 18:29
by azekill_DIABLO
will this be added to weather pack???

Re: [Mod] Skycolor [0.2]

PostPosted: Sat Nov 12, 2016 21:14
by xeranas
Skycolor was update to support multiple sky color definitions. E.g. if your worlds sky is green then some temporal event sets sky red and after its over sky come back to green. Thats actual main point of mod to help manage such changes.

azekill_DIABLO wrote:will this be added to weather pack???

Yes, its already updated. However due strange minetest behavior (unpredictable rgb colors) when getting 'regular' type sky colors weather pack cannot take advantage of smooth transition on weather initialization. However once weather initialized it sky color should change according day time.

Please note that api was changed. I update description.