summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorPilzAdam <pilzadam@minetest.net>2013-03-25 23:59:17 +0100
committerPilzAdam <pilzadam@minetest.net>2013-03-29 20:14:18 +0100
commit5e7e0347cdae0cab3b7d003fbd3b22c7f820e703 (patch)
treefd7b2b8b1c9564ac0418570ab54238722d2b8880 /doc
parent7d9329ecfe84733cdefa34eab25ee3d124c94c59 (diff)
downloadminetest-5e7e0347cdae0cab3b7d003fbd3b22c7f820e703.tar.gz
minetest-5e7e0347cdae0cab3b7d003fbd3b22c7f820e703.tar.bz2
minetest-5e7e0347cdae0cab3b7d003fbd3b22c7f820e703.zip
Add different place sound for nodes
Diffstat (limited to 'doc')
-rw-r--r--doc/lua_api.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 42ca58239..beb70db15 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -1514,6 +1514,9 @@ Item definition (register_node, register_craftitem, register_tool)
^ Otherwise should be name of node which the client immediately places
on ground when the player places the item. Server will always update
actual result to client in a short moment.
+ sound = {
+ place = <SimpleSoundSpec>,
+ }
on_place = func(itemstack, placer, pointed_thing),
^ Shall place item and return the leftover itemstack
@@ -1581,6 +1584,7 @@ Node definition (register_node)
footstep = <SimpleSoundSpec>,
dig = <SimpleSoundSpec>, -- "__group" = group-based sound (default)
dug = <SimpleSoundSpec>,
+ place = <SimpleSoundSpec>,
},
on_construct = func(pos),