mojira.dev
MC-272858

Default attribute modifier component is not specified for armor

The bug:
Armor pieces do not have default attribute modifiers component, although they have default attribute modifiers. Weapons and tools have default attribute modifiers as well, but they also have a component with said attributes. Due to this you can't remove attributes with an empty component, and checking for lack of it passes.

Steps to reproduce:
1. Get armor piece and a weapon items with component minecraft:attribute_modifiers=[]
2. (x)See that in description of given items, weapon doesn't display any attribute modifiers, while armor piece does;

Another way:
1. Get armor piece and a weapon
2. Run /execute if items entity @s weapon.mainhand *[minecraft:attribute_modifiers=[]]Β on both of them
3. (x)See that armor piece passes the test, while weapon doesn't

Linked issues

Comments 2

Thank you for your report!
We're tracking this issue in MC-271826, 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 (Technical Issues) – πŸ“§ Microsoft Support (Account Issues)
πŸ““ Project Summary – ✍️ Feedback and Suggestions – πŸ“– Game Wiki

White_145

(Unassigned)

Unconfirmed

(Unassigned)

1.20.6, 1.21 Pre-Release 2

Retrieved