When combined on crafting grid, items with durability lose their CustomModelData tag
Download the resource pack contained below
Give yourself two wooden swords using
/give @s wooden_sword{CustomModelData:1,Damage:50s}
Repair these wooden sword with crafting table or inventory crafting grid
You will see a normal wooden sword
Attachments
Comments 3
Can confirm in 1.20.4 and 1.20.5 Pre-Release 1
[media]
Here's a command to reproduce with the new formatting of 1.20.5
/give @s wooden_sword[minecraft:custom_model_data=1,minecraft:damage=50]
Using the resource pack and the command for wooden swords, I observed that after repairing the swords with CustomModelData in the crafting grid, they revert to the default model. This seems like a persistent bug across multiple versions affecting the retention of custom data after repair. Has anyone found a workaround, or is there any indication that this will be addressed in upcoming updates? It's a significant issue for custom content creators and could use more visibility. Thanks for sharing this!
May relate to MC-269808