When you give the max_damage
component to an item that normally stacks by removing the max_stack_size
component, the durability doesn't decrease when attacking mobs.
How to reproduce:
Run
/give @s paper[max_damage=20,damage=1,!max_stack_size]
Go into survival and attack a mob
Note that the durability remains the same
Run
/give @s iron_pickaxe[max_damage=20,damage=1,!max_stack_size]
Try attacking with the new item
Durability decreases
Right now this means that the max_damage
component is somewhat useless when making custom weapons, since having to base them off already damageable weapons creates other issues (like 2x damage and special interactions when based on non-sword items and sweeping when based on swords)
Comments 2
Thank you for your report!
After consideration, the issue is being closed as Working as Intended.
Please note, that mechanics of the game may change between updates.
Things such as graphics, sounds, world creation, biomes, redstone, villagers, and animals may not work the same in current versions.
Full Version History – Snapshot Version History – The official Minecraft feedback site
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
Can confirm but this may be due to the iron pickaxe being a tool, and the paper being an item. Paper also does not normally have a durability which could play a part.