summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorNovatux <nathanael.courant@laposte.net>2014-01-11 17:23:28 +0100
committerNovatux <nathanael.courant@laposte.net>2014-01-11 17:23:28 +0100
commite21b29f4227581162490cc70aaf4009118544f97 (patch)
tree6bec44b3801c6800f8cb8b55e2086a681dbc26cc /doc
parent3bbd280336dffc73ef43b2ac93937f320cb32872 (diff)
downloadminetest-e21b29f4227581162490cc70aaf4009118544f97.tar.gz
minetest-e21b29f4227581162490cc70aaf4009118544f97.tar.bz2
minetest-e21b29f4227581162490cc70aaf4009118544f97.zip
Deepcopy pointed_thing for after_place_node, give it to on_rightclick too.
Diffstat (limited to 'doc')
-rw-r--r--doc/lua_api.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index e3fc92b29..f4bc95786 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -2205,10 +2205,12 @@ Node definition (register_node)
on_punch = func(pos, node, puncher),
^ default: minetest.node_punch
^ By default: does nothing
- on_rightclick = func(pos, node, clicker, itemstack),
+ on_rightclick = func(pos, node, clicker, itemstack, pointed_thing),
^ default: nil
^ if defined, itemstack will hold clicker's wielded item
- Shall return the leftover itemstack
+ ^ Shall return the leftover itemstack
+ ^ Note: pointed_thing can be nil, if a mod calls this function
+
on_dig = func(pos, node, digger),
^ default: minetest.node_dig
^ By default: checks privileges, wears out tool and removes node