{
  "type": "minecraft:cache_once",
  "argument": {
    "type": "minecraft:range_choice",
    "input": "angel_islands:y",
    "min_inclusive": 80,
    "max_exclusive": 144,
    "when_in_range": {
      "type": "minecraft:max",
      "argument1": "angel_islands:islands/layer1/depth_bottom",
      "argument2": "angel_islands:islands/layer2/depth_bottom"
    },
    "when_out_of_range": {
      "type": "minecraft:range_choice",
      "input": "angel_islands:y",
      "min_inclusive": 144,
      "max_exclusive": 192,
      "when_in_range": {
        "type": "minecraft:max",
        "argument1": "angel_islands:islands/layer1/depth_top",
        "argument2": {
          "type": "minecraft:max",
          "argument1": "angel_islands:islands/layer2/depth_bottom",
          "argument2": "angel_islands:islands/layer3/depth_bottom"
        }
      },
      "when_out_of_range": {
        "type": "minecraft:range_choice",
        "input": "angel_islands:y",
        "min_inclusive": 192,
        "max_exclusive": 240,
        "when_in_range": {
          "type": "minecraft:max",
          "argument1": "angel_islands:islands/layer1/depth_top",
          "argument2": {
            "type": "minecraft:max",
            "argument1": "angel_islands:islands/layer2/depth_top",
            "argument2": {
              "type": "minecraft:max",
              "argument1": "angel_islands:islands/layer3/depth_bottom",
              "argument2": "angel_islands:islands/layer4/depth_bottom"
            }
          }
        },
        "when_out_of_range": {
          "type": "minecraft:range_choice",
          "input": "angel_islands:y",
          "min_inclusive": 240,
          "max_exclusive": 288,
          "when_in_range": {
            "type": "minecraft:max",
            "argument1": "angel_islands:islands/layer2/depth_top",
            "argument2": {
              "type": "minecraft:max",
              "argument1": "angel_islands:islands/layer3/depth_top",
              "argument2": "angel_islands:islands/layer4/depth_bottom"
            }
          },
          "when_out_of_range": {
            "type": "minecraft:range_choice",
            "input": "angel_islands:y",
            "min_inclusive": 288,
            "max_exclusive": 336,
            "when_in_range": {
              "type": "minecraft:max",
              "argument1": "angel_islands:islands/layer3/depth_top",
              "argument2": "angel_islands:islands/layer4/depth_top"
            },
            "when_out_of_range": {
              "type": "minecraft:range_choice",
              "input": "angel_islands:y",
              "min_inclusive": 336,
              "max_exclusive": 400,
              "when_in_range": "angel_islands:islands/layer4/depth_top",
              "when_out_of_range": -0.1
            }
          }
        }
      }
    }
  }
}
