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

item_name component is never visible on potions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.21.3, 24w45a
    • None
    • Unconfirmed
    • (Unassigned)

      The contents of an item_name component are never visible on potions, because they are always overridden by "(Splash / Lingering) Uncraftable Potion", when the item_name component should only be overridden by a minecraft:potion_contents, minecraft:custom_name, or minecraft:written_book_content component.

      Steps to Reproduce:

        1. Give yourself a potion with an item_name component

      /give @s lingering_potion[minecraft:item_name=f]

       

      Observed Results:

      The name of the item is "Lingering Uncraftable Potion"

      Expected Results:

      To have a potion with the name "f"

      Screenshots/Videos:

      Result in versions 24w36a and above:


      Result in version 24w35a:

        1. image-2024-11-07-19-26-01-111.png
          508 kB
          Penguh
        2. image-2024-11-07-19-38-02-876.png
          24 kB
          Penguh
        3. image-2024-11-07-20-03-01-888.png
          494 kB
          Penguh
        4. image-2024-11-07-20-03-42-381.png
          30 kB
          Penguh
        5. image-2024-11-07-20-07-55-219.png
          508 kB
          Penguh

            Unassigned Unassigned
            Penguh Penguh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: