mojira.dev
MC-258360

Horse armor loses its NBT data when equipped on horses via right-clicking

The Bug:

Horse armor loses its NBT data when equipped on horses via right-clicking.

It's important to note that this issue does not occur when equipping the horse armor through the horses' inventory. This problem is most noticeable with dyed leather horse armor; when right-clicking a horse with dyed horse armor, the horse armor loses its color.

Steps to Reproduce:

  1. Summon a tamed horse by using the command provided below.

    /summon minecraft:horse ~ ~ ~ {NoAI:1b,Tame:1b}
  2. Give yourself some leather horse armor that contains custom NBT data by using the command provided below.

    /give @s minecraft:leather_horse_armor{display:{Name:'{"text":"MC-258360","italic":"false"}',color:11141290}}
  3. Right-click on the horse while holding the horse armor to equip the horse with the horse armor.

  4. Take note as to whether or not horse armor loses its NBT data when equipped on horses via right-clicking.

Observed Behavior:

NBT data of the horse armor is lost.

Expected Behavior:

NBT data of horse armor would not be lost.

Video:

https://www.youtube.com/watch?v=2htKzz-VOXc

Related issues

Attachments

Comments

migrated
[media][media][media][media][media][media]
NBG-bootmgr

Can you provide a picture please?

migrated

I added a photo to the attached file. Do you need any more information?

Avoma

The problem here has arisen due to the fix of MC-197150. This ticket very closely relates to MC-191591.

Avoma

This issue isn't just exclusive to colored leather horse armor; it's present with horse armor in general. The problem here is that horse armor loses its NBT data when equipped on horses via right-clicking. I've updated this ticket accordingly to reflect this new information.

Brevort

Affects 1.19.4.

migrated

gegy

Confirmed

Platform

Low

Items

horse, horse_armor

1.19.3, 23w05a, 1.19.4, 1.20 Pre-release 1

1.20 Pre-release 2

Retrieved