mirror of
https://github.com/minetest/minetest.git
synced 2025-07-08 02:40:22 +02:00
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.
This commit is contained in:
@ -3606,6 +3606,7 @@ Definition tables
|
||||
actual result to client in a short moment.
|
||||
]]
|
||||
sound = {
|
||||
breaks = "default_tool_break", -- tools only
|
||||
place = --[[<SimpleSoundSpec>]],
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user