2020-04-09 09:03:02 +02:00
|
|
|
local name = weather_mod.modname .. ":sandstorm"
|
|
|
|
|
2020-04-09 18:31:52 +02:00
|
|
|
local config = {}
|
|
|
|
|
|
|
|
config.environment = {
|
|
|
|
damage = true
|
2020-04-09 09:03:02 +02:00
|
|
|
}
|
|
|
|
|
2020-04-09 18:31:52 +02:00
|
|
|
config.particles = {
|
2020-04-09 09:03:02 +02:00
|
|
|
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"
|
|
|
|
}
|
|
|
|
|
2020-04-09 18:31:52 +02:00
|
|
|
config.conditions = {
|
|
|
|
min_height = weather_mod.settings.min_height,
|
|
|
|
max_height = weather_mod.settings.max_height,
|
2020-04-09 09:03:02 +02:00
|
|
|
min_heat = 50,
|
|
|
|
max_humidity = 25,
|
|
|
|
min_windspeed = 6
|
|
|
|
}
|
|
|
|
|
2020-04-09 18:31:52 +02:00
|
|
|
weather_mod.register_effect(name, config)
|