summaryrefslogtreecommitdiff
path: root/doc/lua_api.txt
diff options
context:
space:
mode:
authorAuke Kok <sofar@foo-projects.org>2016-01-22 21:52:50 -0800
committerparamat <mat.gregory@virginmedia.com>2016-11-18 06:15:08 +0000
commit4a0a6723afc5c5a14acd7cd833aea33cb53ac618 (patch)
tree36f5d490bb58c8c78de6b2cff199f17d95b0eab9 /doc/lua_api.txt
parentafc48c802a81b95b11aef3ad0141a56f6a184979 (diff)
downloadminetest-4a0a6723afc5c5a14acd7cd833aea33cb53ac618.tar.gz
minetest-4a0a6723afc5c5a14acd7cd833aea33cb53ac618.tar.bz2
minetest-4a0a6723afc5c5a14acd7cd833aea33cb53ac618.zip
Builtin/../item: Enable tool breaking sounds
If a tool wears out and is destroyed, it's itemstack count goes to 0, and we can optionally play a breaking sound. This patch implements playing a breaking sound when this occurs. Sounds need to be added to the tool itemdef registration as the sound name string in the .sound.breaks member.
Diffstat (limited to 'doc/lua_api.txt')
-rw-r--r--doc/lua_api.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 2164bfc5e..84080502f 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -3606,6 +3606,7 @@ Definition tables
actual result to client in a short moment.
]]
sound = {
+ breaks = "default_tool_break", -- tools only
place = --[[<SimpleSoundSpec>]],
},