The shield use statistic is not working
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));.
Linked Issues
is duplicated by3
Created Issue:
stat.useItem.minecraft.shield not working
The scoreboard objective type stat.useItem.minecraft.shield does not work.
I expected it to increase when a player blocks with a shield, however this is not the case.
is duplicated by
relates to
relates to
relates to
relates to
The scoreboard objective type stat.useItem.minecraft.shield does not work.
I expected it to increase when a player blocks with a shield, however this is not the case.The bug
The scoreboard objective type stat.useItem.minecraft.shield does not work.
I expected it to increase when a player blocks with a shield, however this is not the case.The reason
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)); .
The bug
The scoreboard objective type stat.useItem.minecraft.shield does not work.
I expected it to increase when a player blocks with a shield, however this is not the case.
The reasonThe 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));.
The bug
The scoreboard objective type stat.useItem.minecraft.shield does not work.
I expected it to increase when a player blocks with a shield, however this is not the case.Steps to Reproduce
The reason
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));.
The bug
The scoreboard objective type stat.useItem.minecraft.shield does not work.
I expected it to increase when a player blocks with a shield, however this is not the case.Steps to Reproduce (by PearUhDox)
1. Type /scoreboard objectives add UseShield stat.useItem.minecraft.shield
2. Type /scoreboard objectives setdisplay sidebar UseShield (to display value)
3. Type /scoreboard players set @p UseShield 0 (so the value is visible on sidebar)
4. Take damage from any mob. The value does not increase.The reason
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));.
The bug
The scoreboard objective type stat.useItem.minecraft.shield does not work.
I expected it to increase when a player blocks with a shield, however this is not the case.Steps to Reproduce (by PearUhDox)
1. Type /scoreboard objectives add UseShield stat.useItem.minecraft.shield
2. Type /scoreboard objectives setdisplay sidebar UseShield (to display value)
3. Type /scoreboard players set @p UseShield 0 (so the value is visible on sidebar)
4.Takedamage from anymob. The value does not increase.The reason
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));.
The bug
The scoreboard objective type stat.useItem.minecraft.shield does not work.
I expected it to increase when a player blocks with a shield, however this is not the case.Steps to Reproduce (by PearUhDox)
1. Type /scoreboard objectives add UseShield stat.useItem.minecraft.shield
2. Type /scoreboard objectives setdisplay sidebar UseShield (to display value)
3. Type /scoreboard players set @p UseShield 0 (so the value is visible on sidebar)
4. Block with shield while taking damage from a mob. The value does not increase.The reason
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));.
The bug
The scoreboard objective type stat.useItem.minecraft.shield does not work.
I expected it to increase when a player blocks with a shield, however this is not the case.
StepstoReproduce(byPearUhDox)1. Type /scoreboard objectives add UseShield stat.useItem.minecraft.shield
2. Type /scoreboard objectives setdisplay sidebar UseShield (to display value)
3. Type /scoreboard players set @p UseShield 0 (so the value is visible on sidebar)
4. Block with shield while taking damage from a mob. The value does not increase.
The reasonThe 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));.
The bug
The scoreboard objective type stat.useItem.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 stat.useItem.minecraft.shield
- Type /scoreboard objectives setdisplay sidebar UseShield (to display value)
- Type /scoreboard players set @p UseShield 0 (so the value is visible on sidebar)
- Block with shield while taking damage from a mob. The value does not increase.
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));.
The bug
The scoreboard objective type
stat.useItem.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
stat.useItem.minecraft.shield- Type /scoreboard objectives setdisplay sidebar UseShield (to display value)
- Type /scoreboard players set @
pUseShield 0 (so the value is visible on sidebar)- Block with shield while taking damage from a mob. The value does not increase.
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));.
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'tCode 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));.
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 increasedCode 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));.
stat.useItem.minecraft.shieldnot workingThe shield use statistic is not working
is duplicated by
is duplicated by
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 increasedCode 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));.
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));.
relates to
Thank you for your report!
However, this issue is a Duplicate of MC-87949.
It has been linked to this report. If you have additional information, please add it to that report.
Please search before reporting, as it's likely that one exists already.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – 📖 Game Wiki
Thank you for your report!
However, this issue has been closed as a Duplicate of MC-87949.
It has been linked to this report. If you have additional information, please add it to the duplicated report.
Please search before reporting, as it's likely that one exists already.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – ?☃DCE7 Customer Support – 📖 Game Wiki
Affected in 15w38a
Also affected in 15w45a.
This bug is still existent in 15w46a, someone please update the effected
versions.
Confirmed that this still effects 15w47a.
The bug is Still existent in 15w47b.
The bug is still alive in 15w47c.
This bug is still around in 16w04a.
The bug is still in 16w05b.
Still in 1.9 pre release 4.
I almost can't believe this bug made it's way all the up to 1.9's full release; Can't the mods like change the priority of tickets for bugs that needs mojang's attention?
Still in the latest snapshot. Can this be resolved soon? I am making a vanilla McMMO and want to be able to have players level it up by using the shield, not just breaking it.
Nathan, for in the future, please say which version exactly, like 16w14a.
I can confirm that this bug still exists in the current snapshot, 16w35a.
Steps to reproduce: (Run in 16w35a)
1. Type /scoreboard objectives add UseShield stat.useItem.minecraft.shield
2. Type /scoreboard objectives setdisplay sidebar UseShield (to display value)
3. Type /scoreboard players set @p UseShield 0 (so the value is visible on sidebar)
4. Take damage from any mob. The value does not increase.
Can this bug please be fixed for 16w36a? This is kind of annoying that this bug has been around since 1.9 and still has not been fixed.
(If this is considered a necro-post, I apologize. I just really would like to see this bug fixed.)
PearUhDox shouldn't step 4 be "Block with your shield"?
Yes, step 4 should be block with shield while taking damage from a mob. My bad.
Can confirm this bug still exists in 17w18b, the current 1.12 snapshot, using the steps provided above in the description.
Can confirm for release 1.12
^ 1.12.1 too
Relates to MC-122656.
Confirmed for 19w41a
Confirmed for 20w09a
Confirmed in 20w15a