{
  "type": "minecraft:min",
  "argument1": {
    "type": "minecraft:add",
    "argument1": 0.0,
    "argument2": {
      "type": "minecraft:add",
      "argument1": 0.1171875,
      "argument2": {
        "type": "minecraft:mul",
        "argument1": {
          "type": "minecraft:y_clamped_gradient",
          "from_value": 0.0,
          "from_y": -64,
          "to_value": 1.0,
          "to_y": -40
        },
        "argument2": {
          "type": "minecraft:add",
          "argument1": -0.1171875,
          "argument2": {
            "type": "minecraft:add",
            "argument1": -0.078125,
            "argument2": {
              "type": "minecraft:mul",
              "argument1": {
                "type": "minecraft:y_clamped_gradient",
                "from_value": 1.0,
                "from_y": 250,
                "to_value": 0.0,
                "to_y": 292
              },
              "argument2": {
                "type": "minecraft:add",
                "argument1": 0.078125,
                "argument2": {
                  "type": "minecraft:clamp",
                  "input": {
                    "type": "minecraft:add",
                    "argument1": -0.703125,
                    "argument2": {
                      "type": "minecraft:mul",
                      "argument1": 4.0,
                      "argument2": {
                        "type": "minecraft:quarter_negative",
                        "argument": {
                          "type": "minecraft:mul",
                          "argument1": "minecraft:overworld/depth",
                          "argument2": {
                            "type": "minecraft:cache_2d",
                            "argument": "minecraft:overworld/factor"
                          }
                        }
                      }
                    }
                  },
                  "max": 64.0,
                  "min": -64.0
                }
              }
            }
          }
        }
      }
    }
  },
  "argument2": {
    "type": "minecraft:mul",
    "argument1": 1,
    "argument2": "terralith:overworld/subtract_terrain_sum"
  }
}