2020-04-13 01:58:27 +02:00
|
|
|
local name = "regional_weather:rain_heavy"
|
|
|
|
|
|
|
|
local conditions = {
|
|
|
|
min_height = regional_weather.settings.min_height,
|
|
|
|
max_height = regional_weather.settings.max_height,
|
2020-04-13 13:40:36 +02:00
|
|
|
min_heat = 40,
|
2020-04-16 08:04:06 +02:00
|
|
|
min_humidity = 65,
|
2020-04-18 08:03:02 +02:00
|
|
|
min_daylight = 15
|
2020-04-13 01:58:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
local effects = {}
|
|
|
|
|
|
|
|
effects["climate_api:sound"] = {
|
|
|
|
name = "weather_rain",
|
|
|
|
gain = 1
|
|
|
|
}
|
|
|
|
|
2020-04-18 11:14:09 +02:00
|
|
|
effects["climate_api:skybox"] = {
|
|
|
|
sky_data = {
|
|
|
|
type = "plain",
|
|
|
|
base_color = {r = 125, g = 142, b = 145},
|
|
|
|
clouds = true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-04-13 01:58:27 +02:00
|
|
|
effects["climate_api:particles"] = {
|
|
|
|
min_pos = {x=-9, y=7, z=-9},
|
|
|
|
max_pos = {x= 9, y=7, z= 9},
|
|
|
|
falling_speed=10,
|
|
|
|
amount=20,
|
|
|
|
exptime=0.8,
|
|
|
|
size=25,
|
|
|
|
texture="weather_rain.png"
|
|
|
|
}
|
|
|
|
|
|
|
|
climate_api.register_weather(name, conditions, effects)
|