Mojira Archive
MC-271826

Armor default attribute modifier component can't be removed

Removing the default attribute modifier component from armor with the "!"prefix in a give command or loot table, does not remove the attribute modifiers that are on armor by default.

To reproduce, run the command:

/give @s minecraft:iron_chestplate[!minecraft:attribute_modifiers]

This will give a player an iron chestplate that still says +6 armor, when the expected behavior is that it gives no armor.

Fixed

Javitar

[Mojang] Gegy

2024-05-10, 04:13 AM

2024-08-30, 03:47 PM

2024-08-30, 03:47 PM

7

4

Confirmed

Normal

Platform

Commands

1.20.6 - 1.21.11.20.6, 24w18a, 1.21 Pre-Release 1, 1.21 Pre-Release 2, 24w33a, 1.21.1

24w36a