Add settings to change weather particle amounts
parent
d9da50e292
commit
30e543d4d2
|
@ -1,5 +1,5 @@
|
|||
local PARTICLES_COUNT_RAIN = 500
|
||||
local PARTICLES_COUNT_THUNDER = 900
|
||||
local PARTICLES_COUNT_RAIN = tonumber(minetest.settings:get("mcl_weather_rain_particles")) or 500
|
||||
local PARTICLES_COUNT_THUNDER = tonumber(minetest.settings:get("mcl_weather_thunder_particles")) or 900
|
||||
|
||||
local get_connected_players = minetest.get_connected_players
|
||||
|
||||
|
|
|
@ -2,11 +2,11 @@ local get_connected_players = minetest.get_connected_players
|
|||
|
||||
mcl_weather.snow = {}
|
||||
|
||||
mcl_weather.snow.particles_count = 15
|
||||
local PARTICLES_COUNT_SNOW = tonumber(minetest.settings:get("mcl_weather_snow_particles")) or 99
|
||||
mcl_weather.snow.init_done = false
|
||||
|
||||
local psdef= {
|
||||
amount = 99,
|
||||
amount = PARTICLES_COUNT_SNOW,
|
||||
time = 0, --stay on til we turn it off
|
||||
minpos = vector.new(-25,20,-25),
|
||||
maxpos =vector.new(25,25,25),
|
||||
|
|
|
@ -20,6 +20,15 @@ enable_fire (Destructive and spreading fire) bool true
|
|||
# If enabled, the weather will change naturally over time.
|
||||
mcl_doWeatherCycle (Change weather) bool true
|
||||
|
||||
# Amount of rain particles. You can reduce this to get better FPS (default: 500)
|
||||
mcl_weather_rain_particles (Rain particles) int 500 0
|
||||
|
||||
# Amount of thunder particles. You can reduce this to get better FPS (default: 900)
|
||||
mcl_weather_thunder_particles (Thunder particles) int 900 0
|
||||
|
||||
# Amount of snow particles. You can reduce this to get better FPS (default: 100)
|
||||
mcl_weather_snow_particles (Snow particles) int 100 0
|
||||
|
||||
# If enabled, breaking blocks will cause them to drop as item.
|
||||
# Note that blocks never have drops when in Creative Mode.
|
||||
mcl_doTileDrops (Blocks have drops) bool true
|
||||
|
|
Loading…
Reference in New Issue