{
  "model": {
    "type": "minecraft:select",
    "property": "minecraft:custom_model_data",
    "cases": [
      {
        "when": "horns",
        "model": {
          "type": "minecraft:select",
          "property": "minecraft:display_context",
          "cases": [
            {
              "when": [
                "gui"
              ],
              "model": {
                "type": "minecraft:model",
                "model": "item/air"
              }
            }
          ],
          "fallback": {
            "type": "minecraft:model",
            "model": "item/horns"
          }
        }
      },
      {
        "when": "fractured_mask_equipped",
        "model": {
          "type": "minecraft:select",
          "property": "minecraft:display_context",
          "cases": [
            {
              "when": [
                "gui"
              ],
              "model": {
                "type": "minecraft:model",
                "model": "item/air"
              }
            }
          ],
          "fallback": {
            "type": "minecraft:model",
            "model": "item/fractured_mask_equipped"
          }
        }
      },
      {
        "when": "memory_crystal_head",
        "model": {
          "type": "minecraft:select",
          "property": "minecraft:display_context",
          "cases": [
            {
              "when": [
                "gui"
              ],
              "model": {
                "type": "minecraft:model",
                "model": "item/air"
              }
            }
          ],
          "fallback": {
            "type": "minecraft:model",
            "model": "item/memory_crystal_head"
          }
        }
      }
    ],
    "fallback": {
      "type": "minecraft:model",
      "model": "minecraft:block/carved_pumpkin"
    }
  }
}
