mojira.dev
MC-1040

Tools with unbreaking enchantment break, disappear from slot then reappear

What happened:
I was mining to the last of a diamond pick, it broke and I went to replace it with a new one. When I placed the new pick in the slot the old one reappeared and I was able to place it back in my bar. Sometimes I can use the pick, have it break, reappear and be reused several times before it breaks for good. As the pick breaks no breaking sound is heard.

What I expected to happen:
My pickaxe breaks... The end...

How to reproduce:
This seems very intermittent, there seems to be no link to anything. It's not every pick and I haven't noticed it on other items.

/give @p diamond_pickaxe 1 1561 {ench:[{id:34s,lvl:2s}]}

Code analysis: https://bugs.mojang.com/browse/MC-1040?focusedCommentId=288014&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-288014

Linked issues

MC-3652 items break and come back! Resolved MC-4163 Broken axe coming back to inventory when right-clicking wooden planks Resolved MC-5361 Broken tools reappear after a while and can be repaired. Resolved MC-8384 Limited tool duplication Resolved MC-10573 Reappearing of previously broken items in Multiplayer Resolved

Attachments

Comments 70

Is this singleplayer or SMP?

I used to get this all the time when playing on a Bukkit server, but i've not seen it since playing on vanilla.

Old bug, occuring also on vanilla servers

It's on single player I've noticed it but I don't play a great deal on smp so it may occur but I haven't seen it. I'm a fairly new player so I don't have much idea of what's old and new. It's more an annoyance by the old reporting system.

Its just lag or your digging really fast so it counts one block too many times ignore it its going to happen and at least your not losing uses you did not use.

Yeh I won't complain about getting full use out of it. If I try really hard I almost convince myself that I'm getting more than I should lol

The only reason I'm saying anything is just the annoyance of having to do a pile of clicking when the game should remember what's left durability wise. =)

60 more comments

That's not the same bug, that's just server lag. Let me guess: The blocks you mined also appeared again.

If you have space in your bag, and don't pick up any items that would fill the slot when the item breaks, you can press Q to drop the tool even if it "breaks" and it will very often drop the tool. If immediately following the tool being broken you pick up an item that would fill the inventory space that that tool was in the tool will no longer exist.

I doubt it's permanent

I, too have experienced this bug. I was playing on a 1.10.2 server grinding cobblestone with an Unbreaking pick (I was using a book to hold down the mouse to mine) and whenever my pickaxe broke, I would wait a few seconds, and it would reappear with the durability I started mining with. I think this may have something to do with the fact that picks with Unbreaking do not get more durability. They still have the same amount of durability, but it doesn't decrease as often. This bug may be able to be fixed by adding more durability to a tool when it is enchanted with Unbreaking, or by adding a tag that only appears on tools with Unbreaking that tells the game how many more uses the tool has before it decreases its durability.

Or it could just not make a different calculation of whether to break the tool or not client-side, but immediately ask for the one of the server.
Also please don't comment that you experienced the same bug, that's redundant. Exceptions are:

  • Confirmation status is "Cannot reproduce" or "unconfirmed" or

  • the version you tested it in is not in the affected versions list (and active, meaning that it's the latest release or a relatively new snapshot)

Darren Hiles

migrated

Confirmed

Minecraft 1.4.2, Minecraft 1.4.5, Minecraft 1.4.6, Minecraft 1.4.7, Snapshot 13w04a, ..., Minecraft 1.10.2, Minecraft 16w32a, Minecraft 16w32b, Minecraft 16w33a, Minecraft 16w35a

Minecraft 16w43a

Retrieved