1
0
mirror of https://github.com/t-affeldt/regional_weather.git synced 2024-11-15 23:20:24 +01:00
regional_weather/ca_weathers/rain.lua

42 lines
786 B
Lua
Raw Normal View History

2020-04-13 01:58:27 +02:00
local name = "regional_weather:rain"
local conditions = {
2023-02-24 09:51:14 +01:00
min_height = regional_weather.settings.min_height,
max_height = regional_weather.settings.max_height,
min_heat = 35,
min_humidity = 50,
max_humidity = 65,
min_biome_humidity = 26,
indoors = false,
not_biome = {
"cold_desert",
"cold_desert_ocean",
"desert",
"desert_ocean",
"sandstone_desert",
"sandstone_desert_ocean",
"tundra"
}
2020-04-13 01:58:27 +02:00
}
local effects = {}
effects["climate_api:sound"] = {
name = "weather_rain",
gain = 1.5
2020-04-13 01:58:27 +02:00
}
effects["climate_api:particles"] = {
boxsize = { x = 18, y = 2, z = 18 },
v_offset = 6,
expirationtime = 1.6,
size = 2,
amount = 15,
velocity = 6,
acceleration = 0.05,
texture = "weather_raindrop.png",
glow = 5
2020-04-13 01:58:27 +02:00
}
climate_api.register_weather(name, conditions, effects)