#How to use fallback for player_head

5 messages · Page 1 of 1 (latest)

glad nexus
#

I'm trying to implement custom model for player_head (not custom texture) using custom_model_data. However while doing so, all the playerheads are broken with missing model. How do i implement fallback in a way so the player heads will work as usual? If even possible. Minecraft 1.21.5 Vanilla

steep turretBOT
#
Welcome to the help forum!

Please make sure to read #1029373817119838218 as it may answer your question!

Once your question has been resolved, please mark the post as closed by using the </close:1163944441741049897> command.

glad nexus
#

i found the solution

#

for anyone in the future

#
{
  "model": {
    "type": "minecraft:range_dispatch",
    "property": "minecraft:custom_model_data",
    "entries": [
      {
        "threshold": 9,
        "model": {
          "type": "minecraft:model",
          "model": "minecraft:item/spirit_skull"
        }
      }
    ],
    "fallback": {
      "type": "minecraft:special",
      "model": {
        "type": "minecraft:head",
        "kind": "player"
      },
      "base": "minecraft:item/template_skull"
    }
  }
}