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:
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 UseShieldObtain a shield and switch to survival mode.
Summon a screaming goat by using the command provided below.
/summon minecraft:goat ~ ~ ~3 {IsScreamingGoat:1b}Begin blocking with the shield and wait until you block the goat from ramming you.
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.