mojira.dev
MC-276728

Tridents and spyglasses appear dark in the inventory if given a custom item model for a block

Relates to MC-229142 and MC-276654.

The bug

If a spyglass or a trident has an associated item model component which points to a model used by a block in the inventory, it will appear darker than other items.

How to reproduce

/give @s trident[item_model="minecraft:stone"]
/give @s spyglass[item_model="minecraft:stone"]

Expected results

Normal shading.

Actual results

Unexpected darkening.

How to fix

Whatever part of code that forces tridents and spyglasses to have separate inventory models from their handheld versions needs to be remade into something that supports components for items as to resolve this conflict.

Linked issues

Attachments

Comments 0

No comments.

muzikbike

(Unassigned)

Confirmed

Platform

Low

Commands, Rendering, Textures and models

24w37a, 24w39a

24w45a

Retrieved