Mojira Archive
MC-275118

CustomModelData can't work on the item "spyglass"

first of all, Model – Minecraft Wiki in chinese show

Question:

when I try to overwrite the model of spyglass like this when I give @s spyglass[custom_model_data=12]:
{
  "parent": "minecraft:item/generated",
  "textures":

{     "layer0": "minecraft:item/spyglass"   }

,
  "overrides": [
    {
      "predicate":

{         "custom_model_data": 12       }

,
      "model": "raycast_display:item/dirt"
    }
  ]
}
 raycast_display:item/dirt is a model that work on diamond like this when I give @s diamond[custom_model_data=12]:
{
    "parent": "minecraft:item/generated",
    "textures":

{       "layer0": "minecraft:item/diamond"     }

,
    "overrides": [
      {
        "predicate":

{           "custom_model_data": 12         }

,
        "model": "raycast_display:item/dirt"
      }
    ]
  }
 
even if I use the existing item model "glass", the diamond one is accessible, but the spyglass one not. Confused so I submit this question and hope to solve it.

Duplicate

FalsonAuYeung

2024-08-11, 04:22 PM

2024-08-11, 05:32 PM

2024-08-11, 05:32 PM

0

1

Unconfirmed

(Unassigned)

1.21.1

-