{
  "model": {
    "type": "minecraft:condition",
    "component": "minecraft:lodestone_tracker",
    "on_false": {
      "type": "minecraft:select",
      "cases": [
        {
          "model": {
            "type": "minecraft:range_dispatch",
            "entries": [
              {
                "model": {
                  "type": "minecraft:model",
                  "model": "minecraft:item/compass_16"
                },
                "threshold": 0.0
              },
              {
                "model": {
                  "type": "minecraft:model",
                  "model": "minecraft:item/compass_17"
                },
                "threshold": 0.5
              },
              {
                "model": {
                  "type": "minecraft:model",
                  "model": "minecraft:item/compass_18"
                },
                "threshold": 1.5
              },
              {
                "model": {
                  "type": "minecraft:model",
                  "model": "minecraft:item/compass_19"
                },
                "threshold": 2.5
              },
              {
                "model": {
                  "type": "minecraft:model",
                  "model": "minecraft:item/compass_20"
                },
                "threshold": 3.5
              },
              {
                "model": {
                  "type": "minecraft:model",
                  "model": "minecraft:item/compass_21"
                },
                "threshold": 4.5
              },
              {
                "model": {
                  "type": "minecraft:model",
                  "model": "minecraft:item/compass_22"
                },
                "threshold": 5.5
              },
              {
                "model": {
                  "type": "minecraft:model",
                  "model": "minecraft:item/compass_23"
                },
                "threshold": 6.5
              },
              {
                "model": {
                  "type": "minecraft:model",
                  "model": "minecraft:item/compass_24"
                },
                "threshold": 7.5
              },
              {
                "model": {
                  "type": "minecraft:model",
                  "model": "minecraft:item/compass_25"
                },
                "threshold": 8.5
              },
              {
                "model": {
                  "type": "minecraft:model",
                  "model": "minecraft:item/compass_26"
                },
                "threshold": 9.5
              },
              {
                "model": {
                  "type": "minecraft:model",
                  "model": "minecraft:item/compass_27"
                },
                "threshold": 10.5
              },
              {
                "model": {
                  "type": "minecraft:model",
                  "model": "minecraft:item/compass_28"
                },
                "threshold": 11.5
              },
              {
                "model": {
                  "type": "minecraft:model",
                  "model": "minecraft:item/compass_29"
                },
                "threshold": 12.5
              },
              {
                "model": {
                  "type": "minecraft:model",
                  "model": "minecraft:item/compass_30"
                },
                "threshold": 13.5
              },
              {
                "model": {
                  "type": "minecraft:model",
                  "model": "minecraft:item/compass_31"
                },
                "threshold": 14.5
              },
              {
                "model": {
                  "type": "minecraft:model",
                  "model": "minecraft:item/compass_00"
                },
                "threshold": 15.5
              },
              {
                "model": {
                  "type": "minecraft:model",
                  "model": "minecraft:item/compass_01"
                },
                "threshold": 16.5
              },
              {
                "model": {
                  "type": "minecraft:model",
                  "model": "minecraft:item/compass_02"
                },
                "threshold": 17.5
              },
              {
                "model": {
                  "type": "minecraft:model",
                  "model": "minecraft:item/compass_03"
                },
                "threshold": 18.5
              },
              {
                "model": {
                  "type": "minecraft:model",
                  "model": "minecraft:item/compass_04"
                },
                "threshold": 19.5
              },
              {
                "model": {
                  "type": "minecraft:model",
                  "model": "minecraft:item/compass_05"
                },
                "threshold": 20.5
              },
              {
                "model": {
                  "type": "minecraft:model",
                  "model": "minecraft:item/compass_06"
                },
                "threshold": 21.5
              },
              {
                "model": {
                  "type": "minecraft:model",
                  "model": "minecraft:item/compass_07"
                },
                "threshold": 22.5
              },
              {
                "model": {
                  "type": "minecraft:model",
                  "model": "minecraft:item/compass_08"
                },
                "threshold": 23.5
              },
              {
                "model": {
                  "type": "minecraft:model",
                  "model": "minecraft:item/compass_09"
                },
                "threshold": 24.5
              },
              {
                "model": {
                  "type": "minecraft:model",
                  "model": "minecraft:item/compass_10"
                },
                "threshold": 25.5
              },
              {
                "model": {
                  "type": "minecraft:model",
                  "model": "minecraft:item/compass_11"
                },
                "threshold": 26.5
              },
              {
                "model": {
                  "type": "minecraft:model",
                  "model": "minecraft:item/compass_12"
                },
                "threshold": 27.5
              },
              {
                "model": {
                  "type": "minecraft:model",
                  "model": "minecraft:item/compass_13"
                },
                "threshold": 28.5
              },
              {
                "model": {
                  "type": "minecraft:model",
                  "model": "minecraft:item/compass_14"
                },
                "threshold": 29.5
              },
              {
                "model": {
                  "type": "minecraft:model",
                  "model": "minecraft:item/compass_15"
                },
                "threshold": 30.5
              },
              {
                "model": {
                  "type": "minecraft:model",
                  "model": "minecraft:item/compass_16"
                },
                "threshold": 31.5
              }
            ],
            "property": "minecraft:compass",
            "scale": 32.0,
            "target": "spawn"
          },
          "when": "minecraft:overworld"
        }
      ],
      "fallback": {
        "type": "minecraft:range_dispatch",
        "entries": [
          {
            "model": {
              "type": "minecraft:model",
              "model": "minecraft:item/compass_16"
            },
            "threshold": 0.0
          },
          {
            "model": {
              "type": "minecraft:model",
              "model": "minecraft:item/compass_17"
            },
            "threshold": 0.5
          },
          {
            "model": {
              "type": "minecraft:model",
              "model": "minecraft:item/compass_18"
            },
            "threshold": 1.5
          },
          {
            "model": {
              "type": "minecraft:model",
              "model": "minecraft:item/compass_19"
            },
            "threshold": 2.5
          },
          {
            "model": {
              "type": "minecraft:model",
              "model": "minecraft:item/compass_20"
            },
            "threshold": 3.5
          },
          {
            "model": {
              "type": "minecraft:model",
              "model": "minecraft:item/compass_21"
            },
            "threshold": 4.5
          },
          {
            "model": {
              "type": "minecraft:model",
              "model": "minecraft:item/compass_22"
            },
            "threshold": 5.5
          },
          {
            "model": {
              "type": "minecraft:model",
              "model": "minecraft:item/compass_23"
            },
            "threshold": 6.5
          },
          {
            "model": {
              "type": "minecraft:model",
              "model": "minecraft:item/compass_24"
            },
            "threshold": 7.5
          },
          {
            "model": {
              "type": "minecraft:model",
              "model": "minecraft:item/compass_25"
            },
            "threshold": 8.5
          },
          {
            "model": {
              "type": "minecraft:model",
              "model": "minecraft:item/compass_26"
            },
            "threshold": 9.5
          },
          {
            "model": {
              "type": "minecraft:model",
              "model": "minecraft:item/compass_27"
            },
            "threshold": 10.5
          },
          {
            "model": {
              "type": "minecraft:model",
              "model": "minecraft:item/compass_28"
            },
            "threshold": 11.5
          },
          {
            "model": {
              "type": "minecraft:model",
              "model": "minecraft:item/compass_29"
            },
            "threshold": 12.5
          },
          {
            "model": {
              "type": "minecraft:model",
              "model": "minecraft:item/compass_30"
            },
            "threshold": 13.5
          },
          {
            "model": {
              "type": "minecraft:model",
              "model": "minecraft:item/compass_31"
            },
            "threshold": 14.5
          },
          {
            "model": {
              "type": "minecraft:model",
              "model": "minecraft:item/compass_00"
            },
            "threshold": 15.5
          },
          {
            "model": {
              "type": "minecraft:model",
              "model": "minecraft:item/compass_01"
            },
            "threshold": 16.5
          },
          {
            "model": {
              "type": "minecraft:model",
              "model": "minecraft:item/compass_02"
            },
            "threshold": 17.5
          },
          {
            "model": {
              "type": "minecraft:model",
              "model": "minecraft:item/compass_03"
            },
            "threshold": 18.5
          },
          {
            "model": {
              "type": "minecraft:model",
              "model": "minecraft:item/compass_04"
            },
            "threshold": 19.5
          },
          {
            "model": {
              "type": "minecraft:model",
              "model": "minecraft:item/compass_05"
            },
            "threshold": 20.5
          },
          {
            "model": {
              "type": "minecraft:model",
              "model": "minecraft:item/compass_06"
            },
            "threshold": 21.5
          },
          {
            "model": {
              "type": "minecraft:model",
              "model": "minecraft:item/compass_07"
            },
            "threshold": 22.5
          },
          {
            "model": {
              "type": "minecraft:model",
              "model": "minecraft:item/compass_08"
            },
            "threshold": 23.5
          },
          {
            "model": {
              "type": "minecraft:model",
              "model": "minecraft:item/compass_09"
            },
            "threshold": 24.5
          },
          {
            "model": {
              "type": "minecraft:model",
              "model": "minecraft:item/compass_10"
            },
            "threshold": 25.5
          },
          {
            "model": {
              "type": "minecraft:model",
              "model": "minecraft:item/compass_11"
            },
            "threshold": 26.5
          },
          {
            "model": {
              "type": "minecraft:model",
              "model": "minecraft:item/compass_12"
            },
            "threshold": 27.5
          },
          {
            "model": {
              "type": "minecraft:model",
              "model": "minecraft:item/compass_13"
            },
            "threshold": 28.5
          },
          {
            "model": {
              "type": "minecraft:model",
              "model": "minecraft:item/compass_14"
            },
            "threshold": 29.5
          },
          {
            "model": {
              "type": "minecraft:model",
              "model": "minecraft:item/compass_15"
            },
            "threshold": 30.5
          },
          {
            "model": {
              "type": "minecraft:model",
              "model": "minecraft:item/compass_16"
            },
            "threshold": 31.5
          }
        ],
        "property": "minecraft:compass",
        "scale": 32.0,
        "target": "none"
      },
      "property": "minecraft:context_dimension"
    },
    "on_true": {
      "type": "minecraft:range_dispatch",
      "entries": [
        {
          "model": {
            "type": "minecraft:model",
            "model": "minecraft:item/compass_16"
          },
          "threshold": 0.0
        },
        {
          "model": {
            "type": "minecraft:model",
            "model": "minecraft:item/compass_17"
          },
          "threshold": 0.5
        },
        {
          "model": {
            "type": "minecraft:model",
            "model": "minecraft:item/compass_18"
          },
          "threshold": 1.5
        },
        {
          "model": {
            "type": "minecraft:model",
            "model": "minecraft:item/compass_19"
          },
          "threshold": 2.5
        },
        {
          "model": {
            "type": "minecraft:model",
            "model": "minecraft:item/compass_20"
          },
          "threshold": 3.5
        },
        {
          "model": {
            "type": "minecraft:model",
            "model": "minecraft:item/compass_21"
          },
          "threshold": 4.5
        },
        {
          "model": {
            "type": "minecraft:model",
            "model": "minecraft:item/compass_22"
          },
          "threshold": 5.5
        },
        {
          "model": {
            "type": "minecraft:model",
            "model": "minecraft:item/compass_23"
          },
          "threshold": 6.5
        },
        {
          "model": {
            "type": "minecraft:model",
            "model": "minecraft:item/compass_24"
          },
          "threshold": 7.5
        },
        {
          "model": {
            "type": "minecraft:model",
            "model": "minecraft:item/compass_25"
          },
          "threshold": 8.5
        },
        {
          "model": {
            "type": "minecraft:model",
            "model": "minecraft:item/compass_26"
          },
          "threshold": 9.5
        },
        {
          "model": {
            "type": "minecraft:model",
            "model": "minecraft:item/compass_27"
          },
          "threshold": 10.5
        },
        {
          "model": {
            "type": "minecraft:model",
            "model": "minecraft:item/compass_28"
          },
          "threshold": 11.5
        },
        {
          "model": {
            "type": "minecraft:model",
            "model": "minecraft:item/compass_29"
          },
          "threshold": 12.5
        },
        {
          "model": {
            "type": "minecraft:model",
            "model": "minecraft:item/compass_30"
          },
          "threshold": 13.5
        },
        {
          "model": {
            "type": "minecraft:model",
            "model": "minecraft:item/compass_31"
          },
          "threshold": 14.5
        },
        {
          "model": {
            "type": "minecraft:model",
            "model": "minecraft:item/compass_00"
          },
          "threshold": 15.5
        },
        {
          "model": {
            "type": "minecraft:model",
            "model": "minecraft:item/compass_01"
          },
          "threshold": 16.5
        },
        {
          "model": {
            "type": "minecraft:model",
            "model": "minecraft:item/compass_02"
          },
          "threshold": 17.5
        },
        {
          "model": {
            "type": "minecraft:model",
            "model": "minecraft:item/compass_03"
          },
          "threshold": 18.5
        },
        {
          "model": {
            "type": "minecraft:model",
            "model": "minecraft:item/compass_04"
          },
          "threshold": 19.5
        },
        {
          "model": {
            "type": "minecraft:model",
            "model": "minecraft:item/compass_05"
          },
          "threshold": 20.5
        },
        {
          "model": {
            "type": "minecraft:model",
            "model": "minecraft:item/compass_06"
          },
          "threshold": 21.5
        },
        {
          "model": {
            "type": "minecraft:model",
            "model": "minecraft:item/compass_07"
          },
          "threshold": 22.5
        },
        {
          "model": {
            "type": "minecraft:model",
            "model": "minecraft:item/compass_08"
          },
          "threshold": 23.5
        },
        {
          "model": {
            "type": "minecraft:model",
            "model": "minecraft:item/compass_09"
          },
          "threshold": 24.5
        },
        {
          "model": {
            "type": "minecraft:model",
            "model": "minecraft:item/compass_10"
          },
          "threshold": 25.5
        },
        {
          "model": {
            "type": "minecraft:model",
            "model": "minecraft:item/compass_11"
          },
          "threshold": 26.5
        },
        {
          "model": {
            "type": "minecraft:model",
            "model": "minecraft:item/compass_12"
          },
          "threshold": 27.5
        },
        {
          "model": {
            "type": "minecraft:model",
            "model": "minecraft:item/compass_13"
          },
          "threshold": 28.5
        },
        {
          "model": {
            "type": "minecraft:model",
            "model": "minecraft:item/compass_14"
          },
          "threshold": 29.5
        },
        {
          "model": {
            "type": "minecraft:model",
            "model": "minecraft:item/compass_15"
          },
          "threshold": 30.5
        },
        {
          "model": {
            "type": "minecraft:model",
            "model": "minecraft:item/compass_16"
          },
          "threshold": 31.5
        }
      ],
      "property": "minecraft:compass",
      "scale": 32.0,
      "target": "lodestone"
    },
    "property": "minecraft:has_component"
  }
}