Darker clouds while raining

This commit is contained in:
Wuzzy 2017-06-06 00:15:02 +02:00
parent 1320af31fc
commit cf7fe5e611
2 changed files with 5 additions and 1 deletions

View file

@ -33,6 +33,9 @@ rain.set_sky_box = function()
{r=85, g=86, b=98},
{r=0, g=0, b=0}})
skycolor.active = true
for _, player in pairs(minetest.get_connected_players()) do
player:set_clouds({color="#3D3D3FE8"})
end
end
-- creating manually parctiles instead of particles spawner because of easier to control
@ -133,6 +136,7 @@ rain.clear = function()
rain.init_done = false
skycolor.remove_layer("weather-pack-rain-sky")
for _, player in ipairs(minetest.get_connected_players()) do
player:set_clouds({color="#FFF0FEF"})
rain.remove_sound(player)
rain.remove_player(player)
end

View file

@ -218,7 +218,7 @@ local initsky = function(player)
end
-- MC-style clouds: Layer 127, thickness 4, fly to the “West”
player:set_clouds({height=mcl_util.layer_to_y(127), speed={x=-2, y=0}, thickness=4})
player:set_clouds({height=mcl_util.layer_to_y(127), speed={x=-2, y=0}, thickness=4, color="#FFF0FEF"})
end
minetest.register_on_joinplayer(initsky)