aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/client_lua_api.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/client_lua_api.md b/doc/client_lua_api.md
index 4c48b6619..1f50ae362 100644
--- a/doc/client_lua_api.md
+++ b/doc/client_lua_api.md
@@ -689,6 +689,10 @@ Call these functions only at load time!
join request.
* If message comes from a server mod, `sender` field is an empty string.
+* `minetest.register_on_inventory_open(func(inventory))`
+ * Called when the local player open inventory
+ * Newest functions are called first
+ * If any function returns true, inventory doesn't open
### Sounds
* `minetest.sound_play(spec, parameters)`: returns a handle
* `spec` is a `SimpleSoundSpec`