From a149c6ecde66a89bd1080bddf8848a19115a79d4 Mon Sep 17 00:00:00 2001 From: darkrose Date: Sun, 3 Jun 2012 20:02:10 +1000 Subject: Add can_dig callback --- doc/lua_api.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'doc') diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 4321bf76e..3f640da4c 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -1149,6 +1149,9 @@ Node definition (register_node) ^ Called after destructing node when node was dug using minetest.node_dig ^ default: nil + can_dig = function(pos,player) + ^ returns true if node can be dug, or false if not + ^ default: nil on_punch = func(pos, node, puncher), ^ default: minetest.node_punch -- cgit v1.2.3