Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-271826

Armor default attribute modifier component can't be removed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 24w36a
    • 1.20.6, 24w18a, 1.21 Pre-Release 1, 1.21 Pre-Release 2, 24w33a, 1.21.1
    • None
    • Confirmed
    • Commands
    • Normal
    • Platform

      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.

            gegy1000 [Mojang] Gegy
            18jfisher1 Javitar
            Votes:
            7 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: