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