mojira.dev
MC-166101

Enchantment glint is applied to models once for each texture layer

The bug

When an enchanted item model uses more than one layer, the opacity of the enchantment glint on it is increased for each additional layer. This can be seen on leather armour both when worn and in the inventory, although I first noticed this with a resource pack that added an alternate model for enchanted books using CustomModelData. I have provided a resource pack that demonstrates this in this report.

How to reproduce

  1. Download the attached resource pack

[media]
Pre-24w09a:
/give @s minecraft:enchanted_book
/give @s minecraft:enchanted_book{CustomModelData:1}
/give @s minecraft:enchanted_book{CustomModelData:2}
/give @s minecraft:enchanted_book{CustomModelData:3}
Post-24w09a:
/give @s minecraft:enchanted_book
/give @s minecraft:enchanted_book[minecraft:custom_model_data=1]
/give @s minecraft:enchanted_book[minecraft:custom_model_data=2]
/give @s minecraft:enchanted_book[minecraft:custom_model_data=3]

→ ❌ The enchantment glint intensity increases with an increasing amount of layers

 

Linked issues

Attachments

Comments 5

So THIS is why enchanted dyed leather armor looks so god-awful? Interesting

The 1.19.4-pre1 changelog mentioned something about making enchantment glints more visible on items, does this mean that this issue is even more pronounced?

The issue is just as present, nothing about it has changed; only the enchantment glint texture on items in general (not specific to layered textures) was made more visible.

In 1.20.3

This also effects resourcepacks using the composite type item models (>1.21.2)

Squid Eevee

(Unassigned)

Confirmed

Platform

Normal

Items, Rendering, Resource Packs

1.15 Pre-release 1, 1.15 Pre-Release 2, 1.15 Pre-release 3, 1.15 Pre-release 4, 1.15 Pre-release 6, ..., 25w02a, 25w03a, 25w05a, 25w06a, 25w20a

Retrieved