2020-04-13 01:58:27 +02:00
|
|
|
local name = "regional_weather:sandstorm"
|
|
|
|
|
|
|
|
local conditions = {
|
|
|
|
min_height = regional_weather.settings.min_height,
|
|
|
|
max_height = regional_weather.settings.max_height,
|
|
|
|
min_heat = 50,
|
|
|
|
max_humidity = 25,
|
2020-04-16 08:04:06 +02:00
|
|
|
min_windspeed = 6,
|
2020-04-18 08:03:02 +02:00
|
|
|
min_daylight = 15,
|
|
|
|
has_biome = {
|
|
|
|
"desert",
|
|
|
|
"sandstone_desert",
|
|
|
|
"cold_desert",
|
|
|
|
"grassland_dunes",
|
|
|
|
"coniferous_forest_dunes"
|
|
|
|
}
|
2020-04-13 01:58:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
local effects = {}
|
|
|
|
|
2020-04-16 08:04:06 +02:00
|
|
|
effects["climate_api:hud_overlay"] = {
|
|
|
|
file = "weather_hud_sand.png",
|
|
|
|
z_index = -100
|
|
|
|
}
|
2020-04-13 01:58:27 +02:00
|
|
|
|
|
|
|
effects["climate_api:particles"] = {
|
|
|
|
min_pos = {x=-9, y=-5, z=-9},
|
|
|
|
max_pos = {x= 9, y= 5, z= 9},
|
|
|
|
falling_speed=1,
|
|
|
|
amount=40,
|
|
|
|
exptime=0.8,
|
|
|
|
size=15,
|
|
|
|
texture="weather_sand.png"
|
|
|
|
}
|
|
|
|
|
|
|
|
climate_api.register_weather(name, conditions, effects)
|