1
0
Fork 0
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:
red-001 2017-01-29 17:43:44 +00:00 committed by Loïc Blot
parent ba66fce833
commit 073f5cf03d
6 changed files with 57 additions and 13 deletions

View file

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