Most of the components of a custom tool are removed when the tool is repaired in a craft.
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

2024-09-09, 02:47 AM
2024-09-09, 03:58 PM
2024-09-09, 03:58 PM
0
1
-