]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - builtin/client/cheats/render.lua
Lua API: Particle callbacks; Add NoWeather
[dragonfireclient.git] / builtin / client / cheats / render.lua
index 6402246f3ca8a47639f45fe0f01b2aef02efbe41..dc3f712471098b6f345f929b746a1b1e63f101bf 100644 (file)
@@ -1,2 +1,14 @@
 core.register_list_command("xray", "Configure X-Ray", "xray_nodes") 
 core.register_list_command("search", "Configure NodeESP", "node_esp_nodes") 
+
+core.register_on_spawn_particle(function(particle)
+       if core.settings:get_bool("noweather") and particle.texture:sub(1, 12) == "weather_pack" then
+               return true
+       end
+end)
+
+core.register_on_play_sound(function(sound)
+       if core.settings:get_bool("noweather") and sound.name == "weather_rain" then
+               return true
+       end
+end)