If you create a custom weapon for an add-on and you add both the durability and weapon components, the durability will not work on the item. I have confirmed this is true by creating a pack with multiple new weapons. All the golden weapons have theΒ weaponΒ component removed and take durability damage, the rest retain the component and do not take durability damage.
Linked issues
Attachments
Comments 3

Thank you for your report!
We're tracking this issue in MCPE-100344, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
π Bug Tracker Guidelines β π¬ Community Support β π§ Mojang Support
π Project Summary β βοΈ Feedback and Suggestions β π Game Wiki
-- I am a bot. This action was performed automatically! Please report any issues on Discord or Reddit
Thank you for your report!
We're tracking this issue in MCPE-100344, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
π Bug Tracker Guidelines β π¬ Community Support β π§ Mojang Support
π Project Summary β βοΈ Feedback and Suggestions β π Game Wiki
-- I am a bot. This action was performed automatically! Please report any issues on Discord or Reddit