{
  "type": "minecraft:cache_once",
  "argument": {
    "type": "minecraft:add",
    "argument1": "terralith:overworld/cliff/spline",
    "argument2": {
      "type": "minecraft:max",
      "argument1": {
        "type": "minecraft:add",
        "argument1": -1.65,
        "argument2": {
          "type": "minecraft:flat_cache",
          "argument": {
            "type": "minecraft:cache_2d",
            "argument": {
              "type": "minecraft:noise",
              "noise": "terralith:math/cliff/max_cut",
              "xz_scale": 1.0,
              "y_scale": 0.0
            }
          }
        }
      },
      "argument2": {
        "type": "minecraft:range_choice",
        "input": "terralith:overworld/cliff/spline",
        "min_inclusive": -1000000,
        "max_exclusive": 2.0,
        "when_in_range": {
          "type": "minecraft:add",
          "argument1": {
            "type": "minecraft:range_choice",
            "input": "terralith:overworld/cliff/carve_depth",
            "min_inclusive": -1000000,
            "max_exclusive": 0.0,
            "when_in_range": "terralith:overworld/cliff/carve_depth",
            "when_out_of_range": 64
          },
          "argument2": {
            "type": "minecraft:y_clamped_gradient",
            "from_value": -0.2,
            "from_y": 53,
            "to_value": 7.5,
            "to_y": 40
          }
        },
        "when_out_of_range": 64
      }
    }
  }
}