diff options
author | Vincent Glize <vincentglize@hotmail.fr> | 2017-04-29 12:08:16 +0200 |
---|---|---|
committer | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-04-29 12:08:16 +0200 |
commit | dc5bc6cac7b81ab27e0064bc25b5fd1d8d617340 (patch) | |
tree | 5b7be08157b8c377dfd10152c04d44687e9b1c81 /clientmods | |
parent | ecf08255b0b6b9d15b86f614942ac8f53f41302a (diff) | |
download | minetest-dc5bc6cac7b81ab27e0064bc25b5fd1d8d617340.tar.gz minetest-dc5bc6cac7b81ab27e0064bc25b5fd1d8d617340.tar.bz2 minetest-dc5bc6cac7b81ab27e0064bc25b5fd1d8d617340.zip |
[CSM] Add event on_place_node API lua (#5548)
* [CSM] Add event on_place_node API lua
Diffstat (limited to 'clientmods')
-rw-r--r-- | clientmods/preview/init.lua | 7 |
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) |