2020-04-13 01:58:27 +02:00
|
|
|
local name = "regional_weather:snow"
|
|
|
|
|
|
|
|
local conditions = {
|
|
|
|
min_height = regional_weather.settings.min_height,
|
|
|
|
max_height = regional_weather.settings.max_height,
|
2020-04-25 15:50:45 +02:00
|
|
|
max_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:particles"] = {
|
2020-04-25 15:50:45 +02:00
|
|
|
min_pos = {x=-12, y=2, z=-12},
|
|
|
|
max_pos = {x= 12, y=8, z= 12},
|
|
|
|
amount = 4,
|
|
|
|
exptime = 7,
|
|
|
|
size = 1,
|
|
|
|
falling_speed = 0.85,
|
|
|
|
acceleration = {x=0, y=0.06, z=0},
|
2020-04-13 01:58:27 +02:00
|
|
|
textures = {}
|
|
|
|
}
|
|
|
|
|
|
|
|
for i = 1,12,1 do
|
|
|
|
effects["climate_api:particles"].textures[i] = "weather_snowflake" .. i .. ".png"
|
|
|
|
end
|
|
|
|
|
2020-04-25 15:50:45 +02:00
|
|
|
climate_api.register_weather(name, conditions, effects)
|