Darker clouds while raining
parent
1320af31fc
commit
cf7fe5e611
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue