mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
[CSM] Add on_dignode
callback (#5140)
This commit is contained in:
parent
ba66fce833
commit
073f5cf03d
6 changed files with 57 additions and 13 deletions
|
@ -42,3 +42,9 @@ core.register_chatcommand("dump", {
|
|||
core.after(2, function()
|
||||
print("[PREVIEW] loaded " .. modname .. " mod")
|
||||
end)
|
||||
|
||||
core.register_on_dignode(function(pos, node)
|
||||
print("pos:" .. dump(pos))
|
||||
print("node:" .. dump(node))
|
||||
return false
|
||||
end)
|
Loading…
Add table
Add a link
Reference in a new issue