summaryrefslogtreecommitdiff
path: root/doc/lua_api.txt
diff options
context:
space:
mode:
authorRealBadAngel <mk@realbadangel.pl>2013-02-12 22:51:38 +0100
committerIlya Zhuravlev <zhuravlevilya@ya.ru>2013-02-13 02:06:36 +0400
commitb1019a88ba9c0822d60d3f4a74d745c69be8a79b (patch)
tree070941a15547a280cafb119b6020850cac17e404 /doc/lua_api.txt
parent8e69b9cb261c503c5fb461086439aed28e434d19 (diff)
downloadminetest-b1019a88ba9c0822d60d3f4a74d745c69be8a79b.tar.gz
minetest-b1019a88ba9c0822d60d3f4a74d745c69be8a79b.tar.bz2
minetest-b1019a88ba9c0822d60d3f4a74d745c69be8a79b.zip
Fix to on_rightclick not able to change wielded_item
Diffstat (limited to 'doc/lua_api.txt')
-rw-r--r--doc/lua_api.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 7ba2ed001..af70a1047 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -1497,8 +1497,10 @@ Node definition (register_node)
on_punch = func(pos, node, puncher),
^ default: minetest.node_punch
^ By default: does nothing
- on_rightclick = func(pos, node, clicker),
+ on_rightclick = func(pos, node, clicker, itemstack),
^ default: nil
+ ^ if defined, itemstack will hold clicker's wielded item
+ Shall return the leftover itemstack
on_dig = func(pos, node, digger),
^ default: minetest.node_dig
^ By default: checks privileges, wears out tool and removes node