From fb4d54ee30ee9b8394bac18418b88adb0f9cd953 Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Tue, 24 Nov 2020 15:01:52 +0100 Subject: Added minetest.register_on_play_sound --- doc/client_lua_api.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'doc') diff --git a/doc/client_lua_api.txt b/doc/client_lua_api.txt index dd7bb3808..ea6f4e13f 100644 --- a/doc/client_lua_api.txt +++ b/doc/client_lua_api.txt @@ -750,6 +750,10 @@ Call these functions only at load time! * Called when recieving physics_override from server * Newest functions are called first * If any function returns true, the physics override does not change +* `minetest.register_on_sound_play(function(SimpleSoundSpec))` + * Called when recieving a play sound command from server + * Newest functions are called first + * If any function returns true, the sound does not play ### Setting-related * `minetest.settings`: Settings object containing all of the settings from the -- cgit v1.2.3