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

Item frame tooltips are not hidden by the hide tooltip component

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 24w12a
    • None
    • Confirmed
    • Commands, Items

      Minecraft snapshot 24w12a introduces an item stack component for hiding the tooltip, aptly named minecraft:hide_tooltip. However, when this component is assigned to a renamed item stack that is placed into an item frame, the tooltip will still appear in-world when targeting the item frame.

      Since the component name refers to tooltips (and not just slot tooltips), I would expect every instance of a tooltip appearing tied specifically to a certain item stack to follow that component. I believe that what item frames render for renamed items are in fact tooltips, so I believe this to be an oversight in the component's implementation.

      Steps to reproduce

      1. Obtain an item with the hide tooltip component: /give @s minecraft:diamond_block[minecraft:hide_tooltip=\{\},minecraft:custom_name='\{"text":"Test"\}']
      2. Place this item into an item frame.
      3. Observe that when facing the item frame, the the name 'Test' appears.

      Note: a workaround does exist in /give @s minecraft:diamond_block[minecraft:custom_name='\{"text":""\}'], but this workaround affects the item name in other places as well, so it is not a true workaround.

      Relates to MC-269678 as both issues are about places that the minecraft:hide_tooltip item stack component does not affect.

            Unassigned Unassigned
            haykam haykam
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: