mojira.dev
MC-167908

When a dispenser uses up an item's durability, no breaking sound is played

The Bug

If a dispenser exhausts all of an item's durability and breaks it, a breaking sound should be played. This does not happen. Demonstrated with shears.

Steps to Reproduce

  • Summon some shears with one use left on them inside of a dispenser.

    /setblock ~3 ~ ~ minecraft:dispenser[facing=north]{Items:[{Count:1b,Slot:0b,id:"minecraft:shears",tag:{Damage:237}}]}
  • Summon a beehive with some honey in it nearby.

    /setblock ~3 ~ ~-1 minecraft:beehive[honey_level=5]
  • Obtain a lever, use it to activate the dispenser, and listen closely as you do this.

  • Take note as to whether or not tools produce breaking sounds when destroyed whilst inside dispensers.

Observed Behavior

Tools don't produce breaking sounds when destroyed whilst inside dispensers.

Expected Behavior

Tools would produce breaking sounds when destroyed whilst inside dispensers.

Linked issues

Attachments

Comments 9

Hi there!

I can confirm for release 1.16.2.

Can confirm in 20w51a. I used the following command to make this easier to reproduce:

/give @p shears{Damage:237}

Can confirm in 21w06a.

Can confirm in 1.16.5 and 21w08b.

Can confirm in 1.17.1.

Can confirm this in 1.18 Pre-release 1. Here are some extra details regarding this problem.

The Bug:

Tools don't produce breaking sounds when destroyed whilst inside dispensers.

Steps to Reproduce:

  • Summon some shears with one use left on them inside of a dispenser.

/setblock ~3 ~ ~ minecraft:dispenser[facing=north]{Items:[{Count:1b,Slot:0b,id:"minecraft:shears",tag:{Damage:237}}]}
  • Summon a beehive with some honey in it nearby.

/setblock ~3 ~ ~-1 minecraft:beehive[honey_level=5]
  • Obtain a lever, use it to activate the dispenser, and listen closely as you do this.

  • Take note as to whether or not tools produce breaking sounds when destroyed whilst inside dispensers.

Observed Behavior:

Tools don't produce breaking sounds when destroyed whilst inside dispensers.

Expected Behavior:

Tools would produce breaking sounds when destroyed whilst inside dispensers.

Can confirm in 1.18.2 and 22w18a.

Can confirm in 1.19.2.

Can confirm in 26.4 snapshot 10

muzikbike

(Unassigned)

Confirmed

Sound

1.15.1 Pre-release 1, 1.15.2 Pre-Release 1, 1.15.2 Pre-release 2, 20w06a, 20w07a, , 1.18.2, 22w18a, 1.19.2, 24w45a, 26.4 Snapshot 10

Retrieved