Skip to content
Snippets Groups Projects
  • Auke Kok's avatar
    4a0a6723
    Builtin/../item: Enable tool breaking sounds · 4a0a6723
    Auke Kok authored
    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.
    4a0a6723
    History
    Builtin/../item: Enable tool breaking sounds
    Auke Kok authored
    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.