mojira.dev
MC-273110

No Durability Loss on Formerly Stackable Items given Max Damage

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:

  1. Run /give @s paper[max_damage=20,damage=1,!max_stack_size]

  2. Go into survival and attack a mob

  3. Note that the durability remains the same

  4. Run /give @s iron_pickaxe[max_damage=20,damage=1,!max_stack_size]

  5. Try attacking with the new item

  6. 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

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.

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 HistorySnapshot Version HistoryThe 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

Immodial

(Unassigned)

Confirmed

(Unassigned)

1.21 Pre-Release 4

Retrieved