1
0
Fork 0

Add settings to change weather particle amounts

wood_api
cora 2022-06-19 22:35:49 +02:00
parent d9da50e292
commit 30e543d4d2
3 changed files with 13 additions and 4 deletions

View File

@ -1,5 +1,5 @@
local PARTICLES_COUNT_RAIN = 500 local PARTICLES_COUNT_RAIN = tonumber(minetest.settings:get("mcl_weather_rain_particles")) or 500
local PARTICLES_COUNT_THUNDER = 900 local PARTICLES_COUNT_THUNDER = tonumber(minetest.settings:get("mcl_weather_thunder_particles")) or 900
local get_connected_players = minetest.get_connected_players local get_connected_players = minetest.get_connected_players

View File

@ -2,11 +2,11 @@ local get_connected_players = minetest.get_connected_players
mcl_weather.snow = {} 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 mcl_weather.snow.init_done = false
local psdef= { local psdef= {
amount = 99, amount = PARTICLES_COUNT_SNOW,
time = 0, --stay on til we turn it off time = 0, --stay on til we turn it off
minpos = vector.new(-25,20,-25), minpos = vector.new(-25,20,-25),
maxpos =vector.new(25,25,25), maxpos =vector.new(25,25,25),

View File

@ -20,6 +20,15 @@ enable_fire (Destructive and spreading fire) bool true
# If enabled, the weather will change naturally over time. # If enabled, the weather will change naturally over time.
mcl_doWeatherCycle (Change weather) bool true 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. # If enabled, breaking blocks will cause them to drop as item.
# Note that blocks never have drops when in Creative Mode. # Note that blocks never have drops when in Creative Mode.
mcl_doTileDrops (Blocks have drops) bool true mcl_doTileDrops (Blocks have drops) bool true