From cf7fe5e6119ad83944fbb10d9c82e3b8e8ab185e Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 6 Jun 2017 00:15:02 +0200 Subject: [PATCH] Darker clouds while raining --- mods/ENVIRONMENT/weather_pack/rain.lua | 4 ++++ mods/ENVIRONMENT/weather_pack/skycolor.lua | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/mods/ENVIRONMENT/weather_pack/rain.lua b/mods/ENVIRONMENT/weather_pack/rain.lua index 2045c7fa..6c505038 100644 --- a/mods/ENVIRONMENT/weather_pack/rain.lua +++ b/mods/ENVIRONMENT/weather_pack/rain.lua @@ -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 diff --git a/mods/ENVIRONMENT/weather_pack/skycolor.lua b/mods/ENVIRONMENT/weather_pack/skycolor.lua index d927b45a..e7f8b11d 100644 --- a/mods/ENVIRONMENT/weather_pack/skycolor.lua +++ b/mods/ENVIRONMENT/weather_pack/skycolor.lua @@ -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)