aboutsummaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/init.lua b/init.lua
new file mode 100644
index 0000000..ac52910
--- /dev/null
+++ b/init.lua
@@ -0,0 +1,13 @@
+minetest.register_on_spawn_particle(function(particle)
+ if minetest.settings:get_bool("noweather") and particle.texture:sub(1, 12) == "weather_pack" then
+ return true
+ end
+end)
+
+minetest.register_on_play_sound(function(sound)
+ if minetest.settings:get_bool("noweather") and sound.name == "weather_rain" then
+ return true
+ end
+end)
+
+minetest.register_cheat("NoWeather", "Render", "noweather")