[CSM] Add on_punchnode callback

This commit is contained in:
red-001
2017-01-29 18:28:38 +00:00
committed by Loïc Blot
parent 37df9cb7d7
commit 0727bb3ddd
6 changed files with 48 additions and 13 deletions

View File

@@ -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