aboutsummaryrefslogtreecommitdiff
path: root/doc/client_lua_api.txt
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2020-11-24 15:01:52 +0100
committerElias Fleckenstein <eliasfleckenstein@web.de>2020-11-24 15:01:52 +0100
commitfb4d54ee30ee9b8394bac18418b88adb0f9cd953 (patch)
treebb409836bdfdbbc75b9c40216aee28bad39165c5 /doc/client_lua_api.txt
parent50629cc6a1830783580811cedec1fd8ab559f40b (diff)
downloaddragonfireclient-fb4d54ee30ee9b8394bac18418b88adb0f9cd953.tar.xz
Added minetest.register_on_play_sound
Diffstat (limited to 'doc/client_lua_api.txt')
-rw-r--r--doc/client_lua_api.txt4
1 files changed, 4 insertions, 0 deletions
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