mojira.dev
MC-222007

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

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.

Linked issues

Attachments

Comments 8

Can confirm in 21w14a.

Can confirm in 21w15a.

Can confirm in 21w16a.

Can confirm in 21w17a.

This has been "fixed" in 21w18a, it no longer shows the particle texture, but the level 0 texture; despite placing a level 15 light block.
Should a new report be made for that?

I already made it a while ago: MC-235665.

user-f2760

(Unassigned)

Confirmed

Low

Block states

21w13a, 21w14a, 21w15a, 21w16a, 21w17a, 21w18a, 1.17

21w18a

Retrieved