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

Item entity's name ignores `item_name` component

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 24w36a
    • 1.20.6, 24w21b, 1.21
    • None
    • Community Consensus
    • Commands, Items
    • Normal
    • Platform

      Enter the following command to give yourself an item with a custom minecraft:item_name component:

      /give @s minecraft:diamond[minecraft:item_name='"item name"']
      

      Then drop the item and enter:

      /say @e[type=minecraft:item,limit=1,sort=nearest]
      

      It prints "Diamond" to the chat instead of "item name".

      (The same applies to the minecraft:custom_name component, but I suspect that's not a bug since that's never worked before.)

            Unassigned Unassigned
            GrantGryczan Grant Gryczan
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: