mojira.dev
MC-275118

CustomModelData can't work on the item "spyglass"

first of all, Model – Minecraft Wiki in chinese show

[media]

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.

Linked issues

Attachments

Comments 1

Thank you for your report!
We're tracking this issue in MC-229142, so this ticket is being resolved and linked as a duplicate.

If you would like to add a vote and any extra information to the main ticket it would be appreciated.

If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

FalsonAuYeung

(Unassigned)

Unconfirmed

(Unassigned)

1.21.1

Retrieved