mirror of
https://github.com/t-affeldt/regional_weather.git
synced 2025-07-28 05:10:39 +02:00
Separate weathers from engine
This commit is contained in:
31
ca_weathers/rain_heavy.lua
Normal file
31
ca_weathers/rain_heavy.lua
Normal file
@ -0,0 +1,31 @@
|
||||
local name = "regional_weather:rain_heavy"
|
||||
|
||||
local conditions = {
|
||||
min_height = regional_weather.settings.min_height,
|
||||
max_height = regional_weather.settings.max_height,
|
||||
min_heat = 30,
|
||||
min_humidity = 60
|
||||
}
|
||||
|
||||
local effects = {}
|
||||
|
||||
effects["regional_weather:spawn_puddles"] = true
|
||||
effects["regional_weather:wetten_farmland"] = true
|
||||
effects["regional_weather:lightning"] = true
|
||||
|
||||
effects["climate_api:sound"] = {
|
||||
name = "weather_rain",
|
||||
gain = 1
|
||||
}
|
||||
|
||||
effects["climate_api:particles"] = {
|
||||
min_pos = {x=-9, y=7, z=-9},
|
||||
max_pos = {x= 9, y=7, z= 9},
|
||||
falling_speed=10,
|
||||
amount=20,
|
||||
exptime=0.8,
|
||||
size=25,
|
||||
texture="weather_rain.png"
|
||||
}
|
||||
|
||||
climate_api.register_weather(name, conditions, effects)
|
Reference in New Issue
Block a user