aboutsummaryrefslogtreecommitdiff
path: root/clientmods/preview
diff options
context:
space:
mode:
Diffstat (limited to 'clientmods/preview')
-rw-r--r--clientmods/preview/init.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/clientmods/preview/init.lua b/clientmods/preview/init.lua
index 91b12d810..db4f28350 100644
--- a/clientmods/preview/init.lua
+++ b/clientmods/preview/init.lua
@@ -52,6 +52,14 @@ core.after(2, function()
end)
core.register_on_dignode(function(pos, node)
+ print("The local player dug a node!")
+ print("pos:" .. dump(pos))
+ print("node:" .. dump(node))
+ return false
+end)
+
+core.register_on_punchnode(function(pos, node)
+ print("The local player punched a node!")
print("pos:" .. dump(pos))
print("node:" .. dump(node))
return false