mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-29 14:01:07 +01:00
Darker clouds while raining
This commit is contained in:
parent
1320af31fc
commit
cf7fe5e611
2 changed files with 5 additions and 1 deletions
|
@ -33,6 +33,9 @@ rain.set_sky_box = function()
|
||||||
{r=85, g=86, b=98},
|
{r=85, g=86, b=98},
|
||||||
{r=0, g=0, b=0}})
|
{r=0, g=0, b=0}})
|
||||||
skycolor.active = true
|
skycolor.active = true
|
||||||
|
for _, player in pairs(minetest.get_connected_players()) do
|
||||||
|
player:set_clouds({color="#3D3D3FE8"})
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- creating manually parctiles instead of particles spawner because of easier to control
|
-- creating manually parctiles instead of particles spawner because of easier to control
|
||||||
|
@ -133,6 +136,7 @@ rain.clear = function()
|
||||||
rain.init_done = false
|
rain.init_done = false
|
||||||
skycolor.remove_layer("weather-pack-rain-sky")
|
skycolor.remove_layer("weather-pack-rain-sky")
|
||||||
for _, player in ipairs(minetest.get_connected_players()) do
|
for _, player in ipairs(minetest.get_connected_players()) do
|
||||||
|
player:set_clouds({color="#FFF0FEF"})
|
||||||
rain.remove_sound(player)
|
rain.remove_sound(player)
|
||||||
rain.remove_player(player)
|
rain.remove_player(player)
|
||||||
end
|
end
|
||||||
|
|
|
@ -218,7 +218,7 @@ local initsky = function(player)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- MC-style clouds: Layer 127, thickness 4, fly to the “West”
|
-- 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
|
end
|
||||||
|
|
||||||
minetest.register_on_joinplayer(initsky)
|
minetest.register_on_joinplayer(initsky)
|
||||||
|
|
Loading…
Reference in a new issue