aboutsummaryrefslogtreecommitdiff
path: root/doc/lua_api.txt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/lua_api.txt')
-rw-r--r--doc/lua_api.txt3
1 files changed, 3 insertions, 0 deletions
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