mojira.dev
MC-229142

Spyglass texture doesn't allow override through resource pack

The spyglass texture in the gui cannot be influenced by using custom_model_data.

I've provided a small world with a resourcepack and a few commandblocks to show the problem.

Linked issues

Attachments

Comments 15

Can reproduce in 1.17.1 PR-1

Can confirm in 1.17.1

I am also experiencing this issue in 1.17.1. I can override the spyglass model that is held in the hand (spyglass_in_hand.json) as expected, but using the same method on the inventory texture (spyglass.json) does not work.

Can confirm in 1.18.1, spyglass_in_hand.json can be modified with CustomModelData, but spyglass.json can't.

This issue still persists in the current version of Minecraft. I am unable to change what the gui texture of the spyglass is

5 more comments

I've also found that doing custom armor trims also has this same issue (I have custom trims and materials on my server using a datapack and resource pack); its not just custom model data- its any override data at all. confirmed for 1.20.4

Can confirm in 24w21b. Could this be related to MC-166716? – While doing some testing, I found out that if you give the in-hand model for a spyglass (or a trident) an override predicate with an item model that doesn't exist, the 2D item appears darker in the inventory just like in MC-166716.

Here's a quick resource pack I whipped up to demonstrate. If you enable this pack and give yourself a spyglass or trident with custom_model_data 1, the 2D item looks darker, but as you can see in the resource pack files, only the in-hand models have been edited.

[media]

Can confirm in 1.21

Would this ticket also cover the item if given a custom model, or should that be reported separately? Example:
/give @s spyglass[item_model="minecraft:stick"]

David Klostermann

(Unassigned)

Confirmed

Platform

Low

Resource Packs

1.17, 1.17.1 Pre-release 1, 1.17.1, 1.18.1, 22w15a, ..., 1.20.4, 24w04a, 24w11a, 1.21, 1.21.1

24w45a

Retrieved