When a stack of more than one item loses durability the damage resets and the count is decreased by one. this works as expected, but can be exploited for more durability
Steps to Reproduce:
1. give yourself 2 of an item that can stack and be damaged, like this one
/give @s minecraft:diamond_pickaxe[max_damage=10, max_stack_size=2] 2
2. use the item until the stack fully depletes.
in this example, you should mine 20 blocks.
3. give yourself the same items but in 2 different stacks.
4. use each item 9 times.
5. combine the stacks and continue mining until the stack fully depletes.
you should have mined 29 blocks.
Observed Results:
combining the items into one stack can "repair" them, allowing more blocks to be mined.
Expected Results:
the number of uses should remain the same.
Linked issues
relates to 1
Attachments
Comments 2
Thank you for your report!
After consideration, the issue is being closed as Won't Fix.
Please note that this is not the same as Working as Intended, as this bug report correctly describes behavior in the game that might not be the intended or desirable behavior, but it will not be fixed right now. Sometimes, this is because the issue reported is minor and/or impossible to change without large architectural changes to the code base.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
Can confirm. When the 'top' item of the item stack is broken, all following items will have full durability, regardless of their previous damages. Though, this may be intentional.
[media]