{
  "type": "minecraft:clamp",
  "input": {
    "type": "minecraft:add",
    "argument1": {
      "type": "minecraft:mul",
      "argument1": 0.1666666716337204,
      "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
        }
      }
    },
    "argument2": {
      "type": "minecraft:interpolated",
      "argument": {
        "type": "minecraft:max",
        "argument1": 0.0,
        "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": 1.0,
  "min": -0.1
}