diff options
author | red-001 <red-001@outlook.ie> | 2017-01-29 18:28:38 +0000 |
---|---|---|
committer | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-03-13 23:56:05 +0100 |
commit | 0727bb3ddd9c550ff962af4546bac8cc058bce73 (patch) | |
tree | ca5a815f5f30883fe8a9b016db5b706486596714 /clientmods | |
parent | 37df9cb7d764891f29b433e80a0d5663fee1a94f (diff) | |
download | minetest-0727bb3ddd9c550ff962af4546bac8cc058bce73.tar.gz minetest-0727bb3ddd9c550ff962af4546bac8cc058bce73.tar.bz2 minetest-0727bb3ddd9c550ff962af4546bac8cc058bce73.zip |
[CSM] Add `on_punchnode` callback
Diffstat (limited to 'clientmods')
-rw-r--r-- | clientmods/preview/init.lua | 8 |
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 |