mojira.dev
MC-313373

Shields are used twice when blocking goat rams

The Bug:

Shields are used twice when blocking goat rams.

Blocking a mob attack with a shield consumes its durability and counts toward its "Times Used" statistic once. However, blocking a single goat ram does both twice, therefore introducing an inconsistency.

Steps to Reproduce:

  1. Creative a scoreboard objective for tracking shield usage and set it to display on the sidebar by using the commands provided below.

    /scoreboard objectives add UseShield minecraft.used:minecraft.shield
    /scoreboard objectives setdisplay sidebar UseShield
  2. Obtain a shield and switch to survival mode.

  3. Summon a screaming goat by using the command provided below.

    /summon minecraft:goat ~ ~ ~3 {IsScreamingGoat:1b}
  4. Begin blocking with the shield and wait until you block the goat from ramming you.

  5. Observe how many times the scoreboard claims your shield was used.

Observed Behavior:

Shields are used twice when blocking goat rams.

Expected Behavior:

Shields would only be used once when blocking goat rams.

Attachments

Comments 1

Avoma

(Unassigned)

Unconfirmed

Mob behaviour

26.3, 26.4 Snapshot 10

Retrieved