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

Goat Horn without instrument NBT and with other NBT data (such as text) does not play

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 23w03a
    • 1.19, 1.19.1 Pre-release 1, 1.19.1 Pre-release 4, 1.19.1 Pre-release 5, 1.19.1, 1.19.2, 1.19.3 Release Candidate 1
    • Confirmed
    • Items
    • Low

      The bug

      Goat horns with any NBT data but without the instrument NBT data fails to play.

      To reproduce

      1. /give @p goat_horn
      2. Rename the given goat horn using an anvil.

      Expected result

      The goat horn would still play.

      Observed result

      The goat horn no longer plays.

      Original description

      I named my Goat Horn using an anvil after that, I tried using it, but I can't blow it anymore. No sound comes out, nor does the animation for it work. It's just a useless object now.

      Code analysis

      Code analysis by apple502j can be found in this comment.

        1. 2022-06-10_15.13.20.png
          694 kB
          user-f2760
        2. 2022-06-10_15.13.21.png
          686 kB
          user-f2760

            panda4994 [Mojang] Panda
            sappheric sappheric
            Votes:
            4 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: