-
Bug
-
Resolution: Fixed
-
Minecraft 15w36c, Minecraft 15w37a, Minecraft 15w38a, Minecraft 15w45a, Minecraft 15w46a, Minecraft 15w47a, Minecraft 15w47b, Minecraft 15w47c, Minecraft 16w04a, Minecraft 16w05b, Minecraft 1.9 Pre-Release 4, Minecraft 1.9, Minecraft 1.9.1, Minecraft 1.9.2, Minecraft 16w14a, Minecraft 1.10.2, Minecraft 16w35a, Minecraft 16w36a, Minecraft 16w43a, Minecraft 16w44a, Minecraft 1.11.2, Minecraft 17w06a, Minecraft 17w18b, Minecraft 1.12, Minecraft 1.12.1, Minecraft 1.12.2, Minecraft 18w03b, Minecraft 18w05a, Minecraft 18w14a, Minecraft 18w14b, Minecraft 1.13, Minecraft 18w30b, Minecraft 1.13.1, 1.15.1, 1.15.2 Pre-release 2, 20w09a, 20w15a
-
Confirmed
-
Statistics
The bug
The scoreboard objective type minecraft.used:minecraft.shield does not work. I expected it to increase when a player blocks with a shield, however this is not the case.
How to reproduce
- Type /scoreboard objectives add UseShield minecraft.used:minecraft.shield
- Type /scoreboard objectives setdisplay sidebar UseShield (to display value)
- Type /scoreboard players set @s UseShield 0 (so the value is visible on sidebar)
- Block with shield while taking damage from a mob
→ Notice the value hasn't increased
Code analysis
The following is based on decompiled version of Minecraft 1.9 using MCP 9.24 beta. All method and class names are the names used in the decompiled version.
The reason why the statistic value is not increasing is because the method net.minecraft.item.ItemShield.onItemRightClick(ItemStack, World, EntityPlayer, EnumHand) is not calling playerIn.triggerAchievement(StatList.func_188057_b(this));.
- is duplicated by
-
MC-88408 Shield usage stat
- Resolved
-
MC-124772 Scoreboard criteria minecraft.used:minecraft.shield doesn't work.
- Resolved
-
MC-128206 stat.used:minecraft.shield does not add to the scoreboard when shield is used
- Resolved
- relates to
-
MC-122656 Scoreboard objective criterias for breaking elytra and trident never increase score
- Open
-
MC-54972 "minecraft.used:minecraft.<ITEM>" doesn't increase when items are used on entities
- Reopened
-
MC-90348 stat.breakItem.minecraft.shield does not exist
- Resolved