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,
|
2023-02-24 09:51:14 +01:00
|
|
|
max_heat = 35,
|
|
|
|
min_humidity = 50,
|
|
|
|
max_humidity = 65,
|
|
|
|
min_biome_humidity = 26,
|
|
|
|
indoors = false,
|
|
|
|
not_biome = {
|
2020-05-29 21:53:33 +02:00
|
|
|
"cold_desert",
|
|
|
|
"cold_desert_ocean",
|
|
|
|
"desert",
|
|
|
|
"desert_ocean",
|
|
|
|
"sandstone_desert",
|
|
|
|
"sandstone_desert_ocean"
|
|
|
|
}
|
2020-04-13 01:58:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
local effects = {}
|
|
|
|
|
2020-04-28 01:23:46 +02:00
|
|
|
local textures = {}
|
|
|
|
for i = 1,12,1 do
|
|
|
|
textures[i] = "weather_snowflake" .. i .. ".png"
|
|
|
|
end
|
|
|
|
|
2020-04-13 01:58:27 +02:00
|
|
|
effects["climate_api:particles"] = {
|
2020-04-28 01:23:46 +02:00
|
|
|
boxsize = { x = 24, y = 6, z = 24 },
|
|
|
|
v_offset = 2,
|
2020-04-25 15:50:45 +02:00
|
|
|
amount = 4,
|
2020-04-28 01:23:46 +02:00
|
|
|
expirationtime = 7,
|
|
|
|
velocity = 0.85,
|
|
|
|
acceleration = -0.06,
|
|
|
|
texture = textures,
|
|
|
|
glow = 6
|
2020-04-13 01:58:27 +02:00
|
|
|
}
|
|
|
|
|
2020-04-25 15:50:45 +02:00
|
|
|
climate_api.register_weather(name, conditions, effects)
|