mojira.dev
MC-304642

Being attacked from behind while holding up a shield increments "minecraft.used:minecraft.shield"

Steps to reproduce (see attached video)

  1. Let a player check statistics “Items - Shield - Used” and take note of that number

  2. (Optional) Set up scoreboard using “/scoreboard objectives add shield minecraft.used:minecraft.shield” + “/scoreboard objectives setdisplay sidebar shield”

  3. Let the player hold up shield

  4. Attack the player from behind

Actual Result

  • Let the player check statistics “Items - Shield - Used”, and you can notice the number goes up

  • (Optional) If you set up scoreboard previously, the number of the attacked player will go up as you attack

Expected Result

The number of the corresponding statistic & scoreboard value don’t go up when attacked from behind

It gets really annoying when using scoreboard to detect if a shield blocks an attack. I believe the issue started all the way back in 1.21.5.

Environment

Java 21.0.1 (Microsoft)
MacBook Pro M1 Pro Chip

Linked issues

Attachments

Comments 0

No comments.

Longieee

(Unassigned)

Confirmed

Platform

Normal

Combat, Player, Statistics

1.21.10, 1.21.11 Pre-Release 3

Retrieved