The bug
When a player hits another player's shield with an axe, with no enchantments, instead of having a chance for them to disable the shield, it happens every time. This did not happen in previous versions.
Expected result
Axes have a 25% chance of disabling shields, increasing by 5% with each level of efficiency and increasing by 75% on a sprint hit, as they did on previous versions, such as 1.10.
Code analysis
Code analysis can be found in this comment.
Linked issues
is duplicated by 3
Comments 20
The axe has no enchantments, and I tested it with other people. I never really thought to test it with vindicators or zombies.
Works as intended, various changes to shields were made in 1.11, which included making them block 100% of damage and knockback and removing RNG axe disabling to make it a 100% chance. https://minecraft.fandom.com/wiki/Java_Edition_1.11
The wiki is not a source of intent, and Mojang already assigned priority to this, counteracting your comment.
The wiki link was to show the 1.11 changelog, it has nothing to do with any wiki-specific claims. 1.11 intentionally removed RNG to balance out the shield buffs in that same update. Why anyone would claim this is a bug and WANT rng shield stunning to return is baffling to me. WAI
@unknown, this bug report does not suggest that we want rng shield stunning back (either way this is not the place to discuss it anyways), especially not when you consider the fact that shields were ostensibly designed to be stunned on Sprint Hits (as highlighted by many different people during the 1.9 Update, for example Technoblade's video "1.9: The Stone Axe Update"). Moreover, the code analysis clearly suggest given the uncleaned code on the "RNG" shield behavior that there is at least a malfunction of the code. We do not "want RNG shields back", we just want coherent behavior. So no, not WAI, not when 4 lines of code describing the original behavior stays uncleaned.
My point stands, it being a 100% stun chance is intentional regardless of messy code. Here's some further proof, where the devs intentionally implemented the always 5 seconds consistent 100% stun chance on Bedrock Edition: https://twitter.com/kingbdogz/status/1504505321884196872. They know it exists and that this is how it works, it's intended.
What exact enchantments does the axe have? Also, are you sure it's PvP and not PvE?