rain configurable

master
root 2021-09-08 00:54:33 +02:00
parent 188488f06b
commit 2f0ae5bb5e
2 changed files with 8 additions and 3 deletions

View File

@ -24,3 +24,6 @@ lightning_chance = 300
thunder_sound = true
##Dust Screen Effect for Sandstorms
dust_effect = true
#Rain Tweaks
rain_particles = 15
rain_falling_speed = 15

View File

@ -23,6 +23,8 @@ climatez.settings = {
lightning = settings:get_bool("lightning"),
lightning_chance = tonumber(settings:get("lightning_chance")),
dust_effect = settings:get_bool("dust_effect"),
rain_particles = tonumber(settings:get("rain_particles")) or 15,
rain_falling_speed = tonumber(settings:get("rain_falling_speed")) or 15,
}
local timer = 0 -- A timer to create climates each x seconds an for lightning too.
@ -135,10 +137,10 @@ end
register_downfall("rain", {
min_pos = {x = -15, y = 10, z = -15},
max_pos = {x = 15, y = 10, z = 15},
falling_speed = 10,
amount = 8,
falling_speed = climatez.settings.rain_falling_speed,
amount = climatez.settings.rain_particles,
exptime = 1,
size = 2,
size = 1.75,
texture = {"climatez_rain.png", "climatez_rain2.png", "climatez_rain3.png"},
})