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
[media]Original item components
[media]Repaired custom item components
[media]Original custom item components
[media]Linked issues
Attachments
Comments 2
Thank you for your report!
We're tracking this issue in MC-269808, so this ticket is being resolved and linked as a duplicate.
That ticket has already been resolved as working as intended, which means this is not considered a bug and won't be fixed. Please do not leave a comment on the linked ticket.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
Can confirm. Although the first command didn't work for me, here's the fixed one:
/give @s minecraft:iron_sword[minecraft:custom_model_data=2561001,minecraft:custom_data={customdata:1b},minecraft:item_name='{"text":"custom"}',minecraft:max_damage=50]