diff options
author | Vincent Glize <vincentglize@hotmail.fr> | 2017-10-02 22:09:49 +0200 |
---|---|---|
committer | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-10-02 22:09:49 +0200 |
commit | 4e19791cde6b203ad853905d8c1481c43004a7ea (patch) | |
tree | 9db628a01d6678b453fe7ae2b49c60c38179a29c /doc | |
parent | b9fb3cea33f495f0c9c9d7d74ed67af6aab78b04 (diff) | |
download | minetest-4e19791cde6b203ad853905d8c1481c43004a7ea.tar.gz minetest-4e19791cde6b203ad853905d8c1481c43004a7ea.tar.bz2 minetest-4e19791cde6b203ad853905d8c1481c43004a7ea.zip |
[CSM] Add callback on open inventory (#5793)
Diffstat (limited to 'doc')
-rw-r--r-- | doc/client_lua_api.md | 4 |
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` |