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

Missing texture when giving an item with an invalid tooltip style

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Works As Intended
    • None
    • 24w37a
    • None
    • Confirmed
    • Commands, UI

      The bug

      When using commands to create items with a "tooltip_style" which does not match any existing tooltip texture, the missing texture is used.

      This is inconsistent with other components such as custom_model_data, where the default textures are used as a fallback option.

      How to reproduce

      1. /give @s stone[minecraft:tooltip_style=invalid_texture]
      2. Mouse over

      Expected results

      Since this doesn't match any existing textures, the default tooltip texture would be used as a fallback.

      The missing texture should only appear in cases where there are issues with the current resource pack.

      Actual results

      The missing texture is present and prominent.

      How to fix

      Use the default tooltip as a fallback texture if the specified tooltip style does not match anything in a loaded resource pack.

        1. 2024-09-13_14.08.42.png
          180 kB
          Connor Steppie
        2. image-2024-09-14-04-14-10-148.png
          1.04 MB
          BugTracker

            Unassigned Unassigned
            Awesoman3000 Connor Steppie
            Votes:
            2 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: