mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
[CSM] Add on_punchnode
callback
This commit is contained in:
parent
37df9cb7d7
commit
0727bb3ddd
6 changed files with 48 additions and 13 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue