-
Bug
-
Resolution: Works As Intended
-
None
-
1.21 Pre-Release 4
-
None
-
Confirmed
-
(Unassigned)
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)