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

The repairable data component does not exist in armor items by default

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 24w36a
    • 24w33a, 24w34a
    • None
    • Confirmed
    • Commands, Data Packs
    • Normal
    • Platform

      The bug:

      In 24w33a the repairable components can be found in tiered tools, mace and elytra. But component count increased after I add the component to armors, wolf armor, and shear.

      Steps to reproduce:

      1. Give yourself a diamond helmet, and give yourself another repaired with diamonds:
        /give @s diamond_helmet[minecraft:repairable={items:"minecraft:diamond"}]
      2. Compared with each other

      Observed Behavior:

      The latter item has more components.

      Expected Behavior:

      Both diamond helmets have the same number of components.

      or

      Steps to reproduce:

      1. Give yourself a damaged diamond helmet that is not supposed to be repairable
        /give @s diamond_helmet[!repairable,damage=100]
      2. Attempt to repair it with diamonds in an anvil

      Observed Behavior:

      You can repair the diamond helmet with diamonds.

      Expected Behavior:

      You cannot repair the diamond helmet with diamonds.

            gegy1000 [Mojang] Gegy
            CaN2crow987 CaN2crow987
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: