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

CustomModelData is removed when moving an item with Attribute modifiers.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 1.17.1
    • None
    • Paper 1.17.1 server.
    • Unconfirmed
    • (Unassigned)

      Moving an item in your inventory results in the item losing its CustomModelData nbt tag if it has the AttributeModifiers nbt tag.

      Tested using the following:

      give @p minecraft:iron_axe{CustomModelData:1b,AttributeModifiers:[{AttributeName:"generic.attack_damage",Slot:"mainhand",Amount:8,Operation:0,UUID:[I;1,0,0,1]},{AttributeName:"generic.attack_speed",Slot:"mainhand",Amount:-3.1,Operation:0,UUID:[I;2,0,0,2]}]} 1

      Using the next command it shows the data getting removed after you move it in your inventory.

      data get entity @s Inventory[0].tag.CustomModelData

            Unassigned Unassigned
            TetTheGreedy Daniel
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: