1
0
mirror of https://github.com/t-affeldt/regional_weather.git synced 2025-07-24 03:10:21 +02:00

Add meta information, tweak effects, properly implement lightning

This commit is contained in:
Till Affeldt
2020-04-14 05:45:59 +02:00
parent 79fb0a234d
commit 263c21db1d
6 changed files with 63 additions and 19 deletions

View File

@ -1,4 +1,4 @@
local name = "regional_weather:wind"
local name = "regional_weather:ambient"
local CLOUD_SPEED = 1.8
@ -8,7 +8,7 @@ local function generate_effects(params)
local override = {}
override["climate_api:clouds"] = {
size = climate_api.utility.rangelim(params.humidity, 0.25, 0.9),
size = climate_api.utility.rangelim(params.humidity / 100, 0.25, 0.98),
speed = vector.multiply(params.wind, CLOUD_SPEED)
}

View File

@ -15,9 +15,9 @@ effects["climate_api:particles"] = {
min_pos = {x=-12, y=-4, z=-12},
max_pos = {x= 12, y= 1, z= 12},
falling_speed=-0.1,
amount=2,
amount=1,
exptime=5,
size=1,
size=0.8,
texture="weather_pollen.png"
}