aboutsummaryrefslogtreecommitdiff
path: root/clientmods
diff options
context:
space:
mode:
Diffstat (limited to 'clientmods')
-rw-r--r--clientmods/preview/init.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/clientmods/preview/init.lua b/clientmods/preview/init.lua
index 4b31fa323..255c0b83f 100644
--- a/clientmods/preview/init.lua
+++ b/clientmods/preview/init.lua
@@ -10,6 +10,13 @@ core.register_on_connect(function()
print("[PREVIEW] Player connection completed")
end)
+core.register_on_placenode(function(pointed_thing, node)
+ print("The local player place a node!")
+ print("pointed_thing :" .. dump(pointed_thing))
+ print("node placed :" .. dump(node))
+ return false
+end)
+
-- This is an example function to ensure it's working properly, should be removed before merge
core.register_on_receiving_chat_messages(function(message)
print("[PREVIEW] Received message " .. message)