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

Giving a light block with a negative BlockStateTag.level value shows particle texture in inventory

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 21w18a
    • 21w13a, 21w14a, 21w15a, 21w16a, 21w17a, 21w18a, 1.17
    • None
    • Confirmed
    • Block states
    • Low

      See title.
      Rather than show the light bulb with 0, or 15, it shows the particle that is displayed when held, as the item's texture. When placed, it still places a light that outputs level 15.

      /give @s light{BlockStateTag:{level:"-1"}}

      The resource pack in the screenshot does not modify lights in any way.

      Cause: in assets/minecraft/models/item/light.json, the selected texture is light.png, which is the particle texture, rather than any of the light bulbs; it is normally overwritten via the predicates, but negative values aren't covered. The default texture should instead be set to light_15, as it places a level 15 light block.
      See attached file for the current model file.

        1. unknown-49.png
          unknown-49.png
          1.10 MB
        2. light.json
          1 kB
        3. MC-222007.mp4
          3.64 MB
        4. 2021-05-05_20.10.13.png
          2021-05-05_20.10.13.png
          179 kB

            Unassigned Unassigned
            jirauser71590 user-f2760 (Inactive)
            Votes:
            5 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: