{
  "type": "minecraft:clamp",
  "input": {
    "type": "minecraft:add",
    "argument1": {
      "type": "twilightforest:sqrt",
      "input": {
        "type": "minecraft:clamp",
        "input": {
          "type": "minecraft:interpolated",
          "argument": {
            "type": "minecraft:add",
            "argument1": -0.5,
            "argument2": {
              "type": "minecraft:mul",
              "argument1": 5.0,
              "argument2": {
                "type": "minecraft:add",
                "argument1": -0.5,
                "argument2": {
                  "type": "minecraft:flat_cache",
                  "argument": {
                    "type": "minecraft:add",
                    "argument1": {
                      "type": "minecraft:mul",
                      "argument1": {
                        "type": "minecraft:add",
                        "argument1": 0.5,
                        "argument2": {
                          "type": "minecraft:mul",
                          "argument1": 0.5,
                          "argument2": {
                            "type": "minecraft:noise",
                            "noise": "minecraft:ridge",
                            "xz_scale": 1.0,
                            "y_scale": 0.0
                          }
                        }
                      },
                      "argument2": {
                        "type": "minecraft:add",
                        "argument1": 1.0,
                        "argument2": {
                          "type": "minecraft:mul",
                          "argument1": -1.0,
                          "argument2": {
                            "type": "minecraft:cache_once",
                            "argument": {
                              "type": "minecraft:clamp",
                              "input": {
                                "type": "minecraft:add",
                                "argument1": 0.5,
                                "argument2": {
                                  "type": "minecraft:mul",
                                  "argument1": 0.5,
                                  "argument2": {
                                    "type": "minecraft:noise",
                                    "noise": "minecraft:surface",
                                    "xz_scale": 1.0,
                                    "y_scale": 0.0
                                  }
                                }
                              },
                              "max": 1.0,
                              "min": 0.0
                            }
                          }
                        }
                      }
                    },
                    "argument2": {
                      "type": "minecraft:mul",
                      "argument1": {
                        "type": "minecraft:add",
                        "argument1": 0.5,
                        "argument2": {
                          "type": "minecraft:mul",
                          "argument1": 0.5,
                          "argument2": {
                            "type": "minecraft:noise",
                            "noise": "minecraft:ridge",
                            "xz_scale": 4.0,
                            "y_scale": 0.0
                          }
                        }
                      },
                      "argument2": {
                        "type": "minecraft:cache_once",
                        "argument": {
                          "type": "minecraft:clamp",
                          "input": {
                            "type": "minecraft:add",
                            "argument1": 0.5,
                            "argument2": {
                              "type": "minecraft:mul",
                              "argument1": 0.5,
                              "argument2": {
                                "type": "minecraft:noise",
                                "noise": "minecraft:surface",
                                "xz_scale": 1.0,
                                "y_scale": 0.0
                              }
                            }
                          },
                          "max": 1.0,
                          "min": 0.0
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "max": 2.0,
        "min": 0.0
      }
    },
    "argument2": {
      "type": "minecraft:mul",
      "argument1": -0.25,
      "argument2": {
        "type": "minecraft:abs",
        "argument": {
          "type": "minecraft:half_negative",
          "argument": {
            "type": "minecraft:mul",
            "argument1": -1.0,
            "argument2": {
              "type": "minecraft:add",
              "argument1": "twilightforest:raw_biome_terrain",
              "argument2": {
                "type": "minecraft:y_clamped_gradient",
                "from_value": 31.0,
                "from_y": -31,
                "to_value": -256.0,
                "to_y": 256
              }
            }
          }
        }
      }
    }
  },
  "max": 1.0,
  "min": -0.1
}