Mojira Archive
MC-267922

Wolf armor loses custom display name and other NBT when equipped

The bug

When a wolf equips armor that has custom NBT data that data is lost. For example if you rename wolf armor using an anvil the item will lose its name when the armor is removed. This is inconsistent with other mobs like zombies that preserve the NBT of items they pickup and equip.

How to reproduce

  1. Spawn a tamed wolf:
    /execute summon wolf run data modify entity @s Owner set from entity @p UUID
  2. Give yourself a renamed wolf armor item:
    /give @s wolf_armor{display:{Name:'"Test"'}}
  3. Equip the wolf armor on the wolf
  4. Use shears on the wolf
    The wolf armor is dropped
    The wolf armor has lost its custom name

Fixed

Tyler Hancock

[Mojang] Gnembon

2024-01-17, 06:04 PM

2024-01-31, 08:57 AM

2024-01-31, 08:57 AM

3

5

Confirmed

Normal

1168752

Expansion A

Inventory, Items

24w03a

24w05a