2020-04-13 01:58:27 +02:00
|
|
|
local name = "regional_weather:hail"
|
|
|
|
|
|
|
|
local conditions = {
|
|
|
|
min_height = regional_weather.settings.min_height,
|
|
|
|
max_height = regional_weather.settings.max_height,
|
|
|
|
max_heat = 45,
|
|
|
|
min_humidity = 65,
|
2020-04-16 08:04:06 +02:00
|
|
|
min_windspeed = 2.5,
|
|
|
|
min_light = 15
|
2020-04-13 01:58:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
local effects = {}
|
|
|
|
|
2020-04-16 19:13:14 +02:00
|
|
|
effects["regional_weather:damage"] = 1
|
2020-04-13 01:58:27 +02:00
|
|
|
|
|
|
|
effects["climate_api:sound"] = {
|
|
|
|
name = "weather_hail",
|
|
|
|
gain = 1
|
|
|
|
}
|
|
|
|
|
|
|
|
effects["climate_api:particles"] = {
|
|
|
|
min_pos = {x=-9, y=7, z=-9},
|
|
|
|
max_pos = {x= 9, y=7, z= 9},
|
|
|
|
falling_speed=15,
|
|
|
|
amount=5,
|
|
|
|
exptime=0.8,
|
|
|
|
size=1,
|
|
|
|
textures = {}
|
|
|
|
}
|
|
|
|
|
|
|
|
for i = 1,5,1 do
|
|
|
|
effects["climate_api:particles"].textures[i] = "weather_hail" .. i .. ".png"
|
|
|
|
end
|
|
|
|
|
|
|
|
climate_api.register_weather(name, conditions, effects)
|