From 4a0a6723afc5c5a14acd7cd833aea33cb53ac618 Mon Sep 17 00:00:00 2001 From: Auke Kok Date: Fri, 22 Jan 2016 21:52:50 -0800 Subject: 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. --- doc/lua_api.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'doc/lua_api.txt') 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 = --[[]], }, -- cgit v1.2.3