In testing the new repair mechanics, I've had my tools received damage but suddenly be fully repaired upon a second inspection, or when placed into the anvil interface.
To Reproduce:
Get yourself some diamond gear, spare diamonds, levels and an anvil. Press F3+H to view item damage in your tooltip. Whack away at a few blocks until you see damage. Press E and mouse over the item to view it's durability. Head over to your anvil and repair. Rinse and repeat until you see it happen.
I'll be able to damage and repair a tool properly as many as a dozen times, but eventually I'll see the durability bar appear, mouse over and confirm the damaged state, head to my anvil and find the item to be undamaged.
Linked issues
duplicates 1
Attachments
Comments 8
Can you repeat that with a shovel ? A sword doesn't get damaged if you mine blocks (because mining blocks with a sword is not faster as mining the blocks by hand?)
or can you repeat that when killing mobs with a sword ?
I can confirm this. It's actually been in the game for quite awhile, since at least 1.5.
I have two possible explanations for this, and I'm not sure which one is actually correct.
1. It happens as a result of the Unbreaking enchantment. When the client thinks a tool has 0 durability left, and a player uses the tool, it will play the "tool breaking" sound, and it will display an empty slot in the inventory where the tool was. However, due to the Unbreaking enchantment, the tool might not have "actually" taken damage with that usage, so the server update's the client's inventory display.
2. It happens as a result of "ghost blocks". Occasionally, when a player is breaking blocks very quickly (usually with Efficiency-enchanted tools), the client fails to send the information about a broken block to the server. This can lead to a "ghost" area, in which a block is not rendered by the client, but the player cannot pass through its space. Since the client thinks the block has been broken, it updates its display of the tool's durability based on this assumption, and thus it occasionally plays the "tool breaking" sound based on the incorrect perception that the tool has been used to mine a certain block.
I've personally seen this affect bows, pickaxes, and shovels. I'd assume it can affect other tools with unbreaking (swords, axes, etc.)
I figured Unbreaking III was possible part of the issue.
@Kumasasa I'm intending to try and replicate this as many ways as I can, but I have to point out that a sword most certainly does get damaged when you mine blocks. In fact, it takes more damage from mining blocks then it does from striking mobs, 2 vs 1. It has been this way for as long as I can recall and it is addressed in great detail by one of Xisumavoid's MythBusting videos.
Is this still a concern in the current Minecraft version 14w11b / Launcher version 1.3.11 or later? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.
Same issue as MC-1040 - tool damage client-server desync.
Screenshots taken in rapid succession to demonstrate.