From 4e19791cde6b203ad853905d8c1481c43004a7ea Mon Sep 17 00:00:00 2001 From: Vincent Glize Date: Mon, 2 Oct 2017 22:09:49 +0200 Subject: [CSM] Add callback on open inventory (#5793) --- doc/client_lua_api.md | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'doc/client_lua_api.md') 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` -- cgit v1.2.3