{
  "model": {
    "type": "minecraft:condition",
    "property": "minecraft:has_component",
    "component": "minecraft:lodestone_tracker",
    "on_true": {
      "type": "minecraft:select",
      "property": "minecraft:display_context",
      "cases": [
        {
          "when": [
            "firstperson_lefthand",
            "firstperson_righthand",
            "thirdperson_lefthand",
            "thirdperson_righthand"
          ],
          "model": {
            "type": "minecraft:range_dispatch",
            "property": "minecraft:compass",
            "target": "lodestone",
            "scale": 32,
   "entries": [
              { "threshold": 0, "model": { "type": "minecraft:model", "model": "item/enchanted_compass_hand_16" } },
              { "threshold": 0.5, "model": { "type": "minecraft:model", "model": "item/enchanted_compass_hand_17" } },
              { "threshold": 1.5, "model": { "type": "minecraft:model", "model": "item/enchanted_compass_hand_18" } },
              { "threshold": 2.5, "model": { "type": "minecraft:model", "model": "item/enchanted_compass_hand_19" } },
              { "threshold": 3.5, "model": { "type": "minecraft:model", "model": "item/enchanted_compass_hand_20" } },
              { "threshold": 4.5, "model": { "type": "minecraft:model", "model": "item/enchanted_compass_hand_21" } },
              { "threshold": 5.5, "model": { "type": "minecraft:model", "model": "item/enchanted_compass_hand_22" } },
              { "threshold": 6.5, "model": { "type": "minecraft:model", "model": "item/enchanted_compass_hand_23" } },
              { "threshold": 7.5, "model": { "type": "minecraft:model", "model": "item/enchanted_compass_hand_24" } },
              { "threshold": 8.5, "model": { "type": "minecraft:model", "model": "item/enchanted_compass_hand_25" } },
              { "threshold": 9.5, "model": { "type": "minecraft:model", "model": "item/enchanted_compass_hand_26" } },
              { "threshold": 10.5, "model": { "type": "minecraft:model", "model": "item/enchanted_compass_hand_27" } },
              { "threshold": 11.5, "model": { "type": "minecraft:model", "model": "item/enchanted_compass_hand_28" } },
              { "threshold": 12.5, "model": { "type": "minecraft:model", "model": "item/enchanted_compass_hand_29" } },
              { "threshold": 13.5, "model": { "type": "minecraft:model", "model": "item/enchanted_compass_hand_30" } },
              { "threshold": 14.5, "model": { "type": "minecraft:model", "model": "item/enchanted_compass_hand_31" } },
              { "threshold": 15.5, "model": { "type": "minecraft:model", "model": "item/enchanted_compass_hand_00" } },
              { "threshold": 16.5, "model": { "type": "minecraft:model", "model": "item/enchanted_compass_hand_01" } },
              { "threshold": 17.5, "model": { "type": "minecraft:model", "model": "item/enchanted_compass_hand_02" } },
              { "threshold": 18.5, "model": { "type": "minecraft:model", "model": "item/enchanted_compass_hand_03" } },
              { "threshold": 19.5, "model": { "type": "minecraft:model", "model": "item/enchanted_compass_hand_04" } },
              { "threshold": 20.5, "model": { "type": "minecraft:model", "model": "item/enchanted_compass_hand_05" } },
              { "threshold": 21.5, "model": { "type": "minecraft:model", "model": "item/enchanted_compass_hand_06" } },
              { "threshold": 22.5, "model": { "type": "minecraft:model", "model": "item/enchanted_compass_hand_07" } },
              { "threshold": 23.5, "model": { "type": "minecraft:model", "model": "item/enchanted_compass_hand_08" } },
              { "threshold": 24.5, "model": { "type": "minecraft:model", "model": "item/enchanted_compass_hand_09" } },
              { "threshold": 25.5, "model": { "type": "minecraft:model", "model": "item/enchanted_compass_hand_10" } },
              { "threshold": 26.5, "model": { "type": "minecraft:model", "model": "item/enchanted_compass_hand_11" } },
              { "threshold": 27.5, "model": { "type": "minecraft:model", "model": "item/enchanted_compass_hand_12" } },
              { "threshold": 28.5, "model": { "type": "minecraft:model", "model": "item/enchanted_compass_hand_13" } },
              { "threshold": 29.5, "model": { "type": "minecraft:model", "model": "item/enchanted_compass_hand_14" } },
              { "threshold": 30.5, "model": { "type": "minecraft:model", "model": "item/enchanted_compass_hand_15" } }
            ]
          }
        }
      ],
      "fallback": {
        "type": "minecraft:range_dispatch",
        "property": "minecraft:compass",
        "target": "lodestone",
        "scale": 32,
        "entries": [
              { "threshold": 0, "model": { "type": "minecraft:model", "model": "item/compass_16" } },
              { "threshold": 0.5, "model": { "type": "minecraft:model", "model": "item/compass_17" } },
              { "threshold": 1.5, "model": { "type": "minecraft:model", "model": "item/compass_18" } },
              { "threshold": 2.5, "model": { "type": "minecraft:model", "model": "item/compass_19" } },
              { "threshold": 3.5, "model": { "type": "minecraft:model", "model": "item/compass_20" } },
              { "threshold": 4.5, "model": { "type": "minecraft:model", "model": "item/compass_21" } },
              { "threshold": 5.5, "model": { "type": "minecraft:model", "model": "item/compass_22" } },
              { "threshold": 6.5, "model": { "type": "minecraft:model", "model": "item/compass_23" } },
              { "threshold": 7.5, "model": { "type": "minecraft:model", "model": "item/compass_24" } },
              { "threshold": 8.5, "model": { "type": "minecraft:model", "model": "item/compass_25" } },
              { "threshold": 9.5, "model": { "type": "minecraft:model", "model": "item/compass_26" } },
              { "threshold": 10.5, "model": { "type": "minecraft:model", "model": "item/compass_27" } },
              { "threshold": 11.5, "model": { "type": "minecraft:model", "model": "item/compass_28" } },
              { "threshold": 12.5, "model": { "type": "minecraft:model", "model": "item/compass_29" } },
              { "threshold": 13.5, "model": { "type": "minecraft:model", "model": "item/compass_30" } },
              { "threshold": 14.5, "model": { "type": "minecraft:model", "model": "item/compass_31" } },
              { "threshold": 15.5, "model": { "type": "minecraft:model", "model": "item/compass_00" } },
              { "threshold": 16.5, "model": { "type": "minecraft:model", "model": "item/compass_01" } },
              { "threshold": 17.5, "model": { "type": "minecraft:model", "model": "item/compass_02" } },
              { "threshold": 18.5, "model": { "type": "minecraft:model", "model": "item/compass_03" } },
              { "threshold": 19.5, "model": { "type": "minecraft:model", "model": "item/compass_04" } },
              { "threshold": 20.5, "model": { "type": "minecraft:model", "model": "item/compass_05" } },
              { "threshold": 21.5, "model": { "type": "minecraft:model", "model": "item/compass_06" } },
              { "threshold": 22.5, "model": { "type": "minecraft:model", "model": "item/compass_07" } },
              { "threshold": 23.5, "model": { "type": "minecraft:model", "model": "item/compass_08" } },
              { "threshold": 24.5, "model": { "type": "minecraft:model", "model": "item/compass_09" } },
              { "threshold": 25.5, "model": { "type": "minecraft:model", "model": "item/compass_10" } },
              { "threshold": 26.5, "model": { "type": "minecraft:model", "model": "item/compass_11" } },
              { "threshold": 27.5, "model": { "type": "minecraft:model", "model": "item/compass_12" } },
              { "threshold": 28.5, "model": { "type": "minecraft:model", "model": "item/compass_13" } },
              { "threshold": 29.5, "model": { "type": "minecraft:model", "model": "item/compass_14" } },
              { "threshold": 30.5, "model": { "type": "minecraft:model", "model": "item/compass_15" } }
            ]
      }
    },
    "on_false": {
      "type": "minecraft:select",
      "property": "minecraft:display_context",
      "cases": [
        {
          "when": [
            "firstperson_lefthand",
            "firstperson_righthand",
            "thirdperson_lefthand",
            "thirdperson_righthand"
          ],
          "model": {
            "type": "minecraft:range_dispatch",
            "property": "minecraft:compass",
            "target": "spawn",
            "scale": 32,
            "entries": [
              { "threshold": 0, "model": { "type": "minecraft:model", "model": "item/compass_hand_00" } },
              { "threshold": 0.5, "model": { "type": "minecraft:model", "model": "item/compass_hand_01" } },
              { "threshold": 1.5, "model": { "type": "minecraft:model", "model": "item/compass_hand_02" } },
              { "threshold": 2.5, "model": { "type": "minecraft:model", "model": "item/compass_hand_03" } },
              { "threshold": 3.5, "model": { "type": "minecraft:model", "model": "item/compass_hand_04" } },
              { "threshold": 4.5, "model": { "type": "minecraft:model", "model": "item/compass_hand_05" } },
              { "threshold": 5.5, "model": { "type": "minecraft:model", "model": "item/compass_hand_06" } },
              { "threshold": 6.5, "model": { "type": "minecraft:model", "model": "item/compass_hand_07" } },
              { "threshold": 7.5, "model": { "type": "minecraft:model", "model": "item/compass_hand_08" } },
              { "threshold": 8.5, "model": { "type": "minecraft:model", "model": "item/compass_hand_09" } },
              { "threshold": 9.5, "model": { "type": "minecraft:model", "model": "item/compass_hand_10" } },
              { "threshold": 10.5, "model": { "type": "minecraft:model", "model": "item/compass_hand_11" } },
              { "threshold": 11.5, "model": { "type": "minecraft:model", "model": "item/compass_hand_12" } },
              { "threshold": 12.5, "model": { "type": "minecraft:model", "model": "item/compass_hand_13" } },
              { "threshold": 13.5, "model": { "type": "minecraft:model", "model": "item/compass_hand_14" } },
              { "threshold": 14.5, "model": { "type": "minecraft:model", "model": "item/compass_hand_15" } },
              { "threshold": 15.5, "model": { "type": "minecraft:model", "model": "item/compass_hand_16" } },
              { "threshold": 16.5, "model": { "type": "minecraft:model", "model": "item/compass_hand_17" } },
              { "threshold": 17.5, "model": { "type": "minecraft:model", "model": "item/compass_hand_18" } },
              { "threshold": 18.5, "model": { "type": "minecraft:model", "model": "item/compass_hand_19" } },
              { "threshold": 19.5, "model": { "type": "minecraft:model", "model": "item/compass_hand_20" } },
              { "threshold": 20.5, "model": { "type": "minecraft:model", "model": "item/compass_hand_21" } },
              { "threshold": 21.5, "model": { "type": "minecraft:model", "model": "item/compass_hand_22" } },
              { "threshold": 22.5, "model": { "type": "minecraft:model", "model": "item/compass_hand_23" } },
              { "threshold": 23.5, "model": { "type": "minecraft:model", "model": "item/compass_hand_24" } },
              { "threshold": 24.5, "model": { "type": "minecraft:model", "model": "item/compass_hand_25" } },
              { "threshold": 25.5, "model": { "type": "minecraft:model", "model": "item/compass_hand_26" } },
              { "threshold": 26.5, "model": { "type": "minecraft:model", "model": "item/compass_hand_27" } },
              { "threshold": 27.5, "model": { "type": "minecraft:model", "model": "item/compass_hand_28" } },
              { "threshold": 28.5, "model": { "type": "minecraft:model", "model": "item/compass_hand_29" } },
              { "threshold": 29.5, "model": { "type": "minecraft:model", "model": "item/compass_hand_30" } },
              { "threshold": 30.5, "model": { "type": "minecraft:model", "model": "item/compass_hand_31" } },
              { "threshold": 31.5, "model": { "type": "minecraft:model", "model": "item/compass_hand_00" } }
            ]
          }
        }
      ],
      "fallback": {
        "type": "minecraft:range_dispatch",
        "property": "minecraft:compass",
        "target": "spawn",
        "scale": 32,
        "entries": [
          { "threshold": 0, "model": { "type": "minecraft:model", "model": "item/compass_00" } },
          { "threshold": 0.5, "model": { "type": "minecraft:model", "model": "item/compass_01" } },
          { "threshold": 1.5, "model": { "type": "minecraft:model", "model": "item/compass_02" } },
          { "threshold": 2.5, "model": { "type": "minecraft:model", "model": "item/compass_03" } },
          { "threshold": 3.5, "model": { "type": "minecraft:model", "model": "item/compass_04" } },
          { "threshold": 4.5, "model": { "type": "minecraft:model", "model": "item/compass_05" } },
          { "threshold": 5.5, "model": { "type": "minecraft:model", "model": "item/compass_06" } },
          { "threshold": 6.5, "model": { "type": "minecraft:model", "model": "item/compass_07" } },
          { "threshold": 7.5, "model": { "type": "minecraft:model", "model": "item/compass_08" } },
          { "threshold": 8.5, "model": { "type": "minecraft:model", "model": "item/compass_09" } },
          { "threshold": 9.5, "model": { "type": "minecraft:model", "model": "item/compass_10" } },
          { "threshold": 10.5, "model": { "type": "minecraft:model", "model": "item/compass_11" } },
          { "threshold": 11.5, "model": { "type": "minecraft:model", "model": "item/compass_12" } },
          { "threshold": 12.5, "model": { "type": "minecraft:model", "model": "item/compass_13" } },
          { "threshold": 13.5, "model": { "type": "minecraft:model", "model": "item/compass_14" } },
          { "threshold": 14.5, "model": { "type": "minecraft:model", "model": "item/compass_15" } },
          { "threshold": 15.5, "model": { "type": "minecraft:model", "model": "item/compass_16" } },
          { "threshold": 16.5, "model": { "type": "minecraft:model", "model": "item/compass_17" } },
          { "threshold": 17.5, "model": { "type": "minecraft:model", "model": "item/compass_18" } },
          { "threshold": 18.5, "model": { "type": "minecraft:model", "model": "item/compass_19" } },
          { "threshold": 19.5, "model": { "type": "minecraft:model", "model": "item/compass_20" } },
          { "threshold": 20.5, "model": { "type": "minecraft:model", "model": "item/compass_21" } },
          { "threshold": 21.5, "model": { "type": "minecraft:model", "model": "item/compass_22" } },
          { "threshold": 22.5, "model": { "type": "minecraft:model", "model": "item/compass_23" } },
          { "threshold": 23.5, "model": { "type": "minecraft:model", "model": "item/compass_24" } },
          { "threshold": 24.5, "model": { "type": "minecraft:model", "model": "item/compass_25" } },
          { "threshold": 25.5, "model": { "type": "minecraft:model", "model": "item/compass_26" } },
          { "threshold": 26.5, "model": { "type": "minecraft:model", "model": "item/compass_27" } },
          { "threshold": 27.5, "model": { "type": "minecraft:model", "model": "item/compass_28" } },
          { "threshold": 28.5, "model": { "type": "minecraft:model", "model": "item/compass_29" } },
          { "threshold": 29.5, "model": { "type": "minecraft:model", "model": "item/compass_30" } },
          { "threshold": 30.5, "model": { "type": "minecraft:model", "model": "item/compass_31" } },
          { "threshold": 31.5, "model": { "type": "minecraft:model", "model": "item/compass_00" } }
        ]
      }
    }
  }
}