From e21b29f4227581162490cc70aaf4009118544f97 Mon Sep 17 00:00:00 2001 From: Novatux Date: Sat, 11 Jan 2014 17:23:28 +0100 Subject: Deepcopy pointed_thing for after_place_node, give it to on_rightclick too. --- doc/lua_api.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'doc/lua_api.txt') 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 -- cgit v1.2.3