sky slightly overcast on weather in non-weather b.
This commit is contained in:
parent
ee3b98c809
commit
a2b003a195
|
@ -97,13 +97,31 @@ mcl_weather.skycolor = {
|
||||||
local dim = mcl_worlds.pos_to_dimension(pos)
|
local dim = mcl_worlds.pos_to_dimension(pos)
|
||||||
local has_weather = ((mcl_weather.state == "snow" or mcl_weather.state =="rain" or mcl_weather.state == "thunder") and mcl_weather.has_snow(pos)) or ((mcl_weather.state =="rain" or mcl_weather.state == "thunder") and mcl_weather.has_rain(pos))
|
local has_weather = ((mcl_weather.state == "snow" or mcl_weather.state =="rain" or mcl_weather.state == "thunder") and mcl_weather.has_snow(pos)) or ((mcl_weather.state =="rain" or mcl_weather.state == "thunder") and mcl_weather.has_rain(pos))
|
||||||
if dim == "overworld" then
|
if dim == "overworld" then
|
||||||
if (mcl_weather.state == "none") or not has_weather then
|
if (mcl_weather.state == "none") then
|
||||||
-- Clear weather
|
-- Clear weather
|
||||||
mcl_weather.set_sky_box_clear(player)
|
mcl_weather.set_sky_box_clear(player)
|
||||||
player:set_sun({visible = true, sunrise_visible = true})
|
player:set_sun({visible = true, sunrise_visible = true})
|
||||||
player:set_moon({visible = true})
|
player:set_moon({visible = true})
|
||||||
player:set_stars({visible = true})
|
player:set_stars({visible = true})
|
||||||
mcl_weather.skycolor.override_day_night_ratio(player, nil)
|
mcl_weather.skycolor.override_day_night_ratio(player, nil)
|
||||||
|
elseif not has_weather then
|
||||||
|
local day_color = mcl_weather.skycolor.get_sky_layer_color(0.15)
|
||||||
|
local dawn_color = mcl_weather.skycolor.get_sky_layer_color(0.27)
|
||||||
|
local night_color = mcl_weather.skycolor.get_sky_layer_color(0.1)
|
||||||
|
player:set_sky({ type = "regular",
|
||||||
|
sky_color = {
|
||||||
|
day_sky = day_color,
|
||||||
|
day_horizon = day_color,
|
||||||
|
dawn_sky = dawn_color,
|
||||||
|
dawn_horizon = dawn_color,
|
||||||
|
night_sky = night_color,
|
||||||
|
night_horizon = night_color,
|
||||||
|
},
|
||||||
|
clouds = true,
|
||||||
|
})
|
||||||
|
player:set_sun({visible = false, sunrise_visible = false})
|
||||||
|
player:set_moon({visible = false})
|
||||||
|
player:set_stars({visible = false})
|
||||||
elseif has_weather then
|
elseif has_weather then
|
||||||
-- Weather skies
|
-- Weather skies
|
||||||
local day_color = mcl_weather.skycolor.get_sky_layer_color(0.5)
|
local day_color = mcl_weather.skycolor.get_sky_layer_color(0.5)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user