mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
[CSM] Add on_dignode
callback (#5140)
This commit is contained in:
@@ -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)
|
Reference in New Issue
Block a user