diff options
author | sfan5 <sfan5@live.de> | 2019-11-10 00:36:29 +0100 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2019-11-10 13:12:31 +0100 |
commit | 4d668f32a6d9a0d895a2385dec994d43bd084410 (patch) | |
tree | 83794c0ae69813f73df258072ab53aae1b7a1dd6 /doc | |
parent | 3b0df9760b9630ddba1983ecb4c6e4f0f8857149 (diff) | |
download | minetest-4d668f32a6d9a0d895a2385dec994d43bd084410.tar.gz minetest-4d668f32a6d9a0d895a2385dec994d43bd084410.tar.bz2 minetest-4d668f32a6d9a0d895a2385dec994d43bd084410.zip |
Call on_secondary_use when object is right-clicked
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lua_api.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index f7cb4ca7c..9ca44747f 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -6432,9 +6432,9 @@ Used by `minetest.register_node`, `minetest.register_craftitem`, and -- default: minetest.item_place on_secondary_use = function(itemstack, user, pointed_thing), - -- Same as on_place but called when pointing at nothing. + -- Same as on_place but called when not pointing at a node. -- The user may be any ObjectRef or nil. - -- pointed_thing: always { type = "nothing" } + -- default: nil on_drop = function(itemstack, dropper, pos), -- Shall drop item and return the leftover itemstack. |