diff options
Diffstat (limited to 'clientmods/preview')
-rw-r--r-- | clientmods/preview/init.lua | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/clientmods/preview/init.lua b/clientmods/preview/init.lua index 3085eda24..91b12d810 100644 --- a/clientmods/preview/init.lua +++ b/clientmods/preview/init.lua @@ -39,6 +39,14 @@ core.register_chatcommand("dump", { end, }) +core.register_chatcommand("test_node", { + func = function(param) + core.display_chat_message(dump(core.get_node({x=0, y=0, z=0}))) + core.display_chat_message(dump(core.get_node_or_nil({x=0, y=0, z=0}))) + end, +}) + + core.after(2, function() print("[PREVIEW] loaded " .. modname .. " mod") end) @@ -47,4 +55,4 @@ core.register_on_dignode(function(pos, node) print("pos:" .. dump(pos)) print("node:" .. dump(node)) return false -end)
\ No newline at end of file +end) |