From 5e7e0347cdae0cab3b7d003fbd3b22c7f820e703 Mon Sep 17 00:00:00 2001 From: PilzAdam Date: Mon, 25 Mar 2013 23:59:17 +0100 Subject: Add different place sound for nodes --- doc/lua_api.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'doc') 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 = , + } on_place = func(itemstack, placer, pointed_thing), ^ Shall place item and return the leftover itemstack @@ -1581,6 +1584,7 @@ Node definition (register_node) footstep = , dig = , -- "__group" = group-based sound (default) dug = , + place = , }, on_construct = func(pos), -- cgit v1.2.3