mojira.dev
MC-156030

Items with durability do not keep their CustomModelData when repaired

When combined on crafting grid, items with durability lose their CustomModelData tag

  1. Download the resource pack contained below

  2. Give yourself two wooden swords using

    /give @s wooden_sword{CustomModelData:1,Damage:50s}
  1. Repair these wooden sword with crafting table or inventory crafting grid

  2. 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!

etunnos

(Unassigned)

Confirmed

(Unassigned)

Minecraft 1.14.3, 1.16.4, 1.20.4, 1.20.5 Pre-Release 1

Retrieved