2020-04-13 01:58:27 +02:00
|
|
|
local name = "regional_weather:rain"
|
|
|
|
|
|
|
|
local conditions = {
|
|
|
|
min_height = regional_weather.settings.min_height,
|
|
|
|
max_height = regional_weather.settings.max_height,
|
2020-04-25 15:50:45 +02:00
|
|
|
min_heat = 35,
|
2020-04-13 13:40:36 +02:00
|
|
|
min_humidity = 50,
|
2020-04-16 08:04:06 +02:00
|
|
|
max_humidity = 65,
|
2020-04-18 17:26:01 +02:00
|
|
|
daylight = 15
|
2020-04-13 01:58:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
local effects = {}
|
|
|
|
|
|
|
|
effects["climate_api:sound"] = {
|
2020-04-22 00:54:27 +02:00
|
|
|
name = "weather_rain",
|
|
|
|
gain = 1.5
|
2020-04-13 01:58:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
effects["climate_api:particles"] = {
|
2020-04-28 01:23:46 +02:00
|
|
|
boxsize = { x = 18, y = 2, z = 18 },
|
|
|
|
v_offset = 6,
|
|
|
|
expirationtime = 1.6,
|
2020-04-25 15:50:45 +02:00
|
|
|
size = 2,
|
|
|
|
amount = 15,
|
2020-04-28 01:23:46 +02:00
|
|
|
velocity = 6,
|
|
|
|
acceleration = 0.05,
|
|
|
|
texture = "weather_raindrop.png",
|
|
|
|
glow = 5
|
2020-04-13 01:58:27 +02:00
|
|
|
}
|
|
|
|
|
2020-04-25 15:50:45 +02:00
|
|
|
climate_api.register_weather(name, conditions, effects)
|