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

Most of the components of a custom tool are removed when the tool is repaired in a craft.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.21.1, 24w36a
    • None
    • Unconfirmed
    • (Unassigned)

      When repairing an item with components, almost all components are removed, with the exception of “max_damage”, which seems to skip the operation.

      How to reproduce :

      • Give yourself a custom tool 2 times: 
        /give @s minecraft:iron_sword[minecraft:custom_model_data=2561001,minecraft:custom_data=\{customdata:1b},minecraft:item_name='\{"text":"custom"}',minecraft:max_damage=50]
        
      • Put these 2 tools in a craft table to perform the tool repair manipulation.
      • Taking an original item (in this case, an iron_sword) and looking at its components with the command:
        /data get entity @s SelectedItem

      We see that the only remaining component is “max_damage”...

      Expected behavior :

      • It would be nice if all components were transferred when repairing a custom tool via the craft table.
      • Or give players the opportunity to detect items with custom components in the crafting table input.

      Demonstration images:

      Craft demonstration

      Original item components

      Repaired custom item components

      Original custom item components

            Unassigned Unassigned
            SozoKa SozoKa
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: