1
0
mirror of https://github.com/t-affeldt/regional_weather.git synced 2024-11-15 23:20:24 +01:00
regional_weather/ca_weathers/hail.lua

39 lines
732 B
Lua
Raw Normal View History

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,
min_windspeed = 2.5,
daylight = 15
2020-04-13 01:58:27 +02:00
}
local effects = {}
effects["regional_weather:damage"] = {
chance = 15,
value = 3
}
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=20,
amount=6,
exptime=0.7,
2020-04-13 01:58:27 +02:00
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)