{
  "type": "add",
  "argument1": {
    "type": "add",
    "argument1": "cavernous:myst_layers",
    "argument2": "cavernous:pillars"
  },
  "argument2": {
    "type": "max",
    "argument1": {
      "type": "add",
      "argument1": "cavernous:middle_layer_terrain",
      "argument2": {
        "type": "add",
        "argument1": {
          "type": "add",
          "argument1": {
            "type": "mul",
            "argument1": {
              "type": "noise",
              "noise": "cavernous:myst_base",
              "xz_scale": 3,
              "y_scale": 7
            },
            "argument2": {
              "type": "add",
              "argument1": {
                "type": "add",
                "argument1": {
                  "type": "range_choice",
                  "min_inclusive": 0,
                  "max_exclusive": 75,
                  "input": "minecraft:y",
                  "when_in_range": {
                    "type": "y_clamped_gradient",
                    "from_y": 0,
                    "to_y": 75,
                    "from_value": 1,
                    "to_value": 0.1
                  },
                  "when_out_of_range": 0
                },
                "argument2": {
                  "type": "range_choice",
                  "min_inclusive": 75,
                  "max_exclusive": 110,
                  "input": "minecraft:y",
                  "when_in_range": {
                    "type": "y_clamped_gradient",
                    "from_y": 75,
                    "to_y": 110,
                    "from_value": 0.1,
                    "to_value": 1.5
                  },
                  "when_out_of_range": 0
                }
              },
              "argument2": {
                "type": "add",
                "argument1": {
                  "type": "range_choice",
                  "min_inclusive": 110,
                  "max_exclusive": 160,
                  "input": "minecraft:y",
                  "when_in_range": {
                    "type": "y_clamped_gradient",
                    "from_y": 110,
                    "to_y": 160,
                    "from_value": 1.5,
                    "to_value": 0.1
                  },
                  "when_out_of_range": 0
                },
                "argument2": {
                  "type": "range_choice",
                  "min_inclusive": 160,
                  "max_exclusive": 210,
                  "input": "minecraft:y",
                  "when_in_range": {
                    "type": "y_clamped_gradient",
                    "from_y": 160,
                    "to_y": 210,
                    "from_value": 0.1,
                    "to_value": 1
                  },
                  "when_out_of_range": 0
                }
              }
            }
          },
          "argument2": -0.25
        },
        "argument2": {
          "type": "mul",
          "argument1": {
            "type": "noise",
            "noise": "minecraft:gravel",
            "xz_scale": 2.85,
            "y_scale": 1
          },
          "argument2": 0.4
        }
      }
    },
    "argument2": {
      "type": "range_choice",
      "min_inclusive": 0,
      "max_exclusive": 35,
      "input": "minecraft:y",
      "when_in_range": {
        "type": "clamp",
        "min": -100,
        "max": 100,
        "input": {
          "type": "add",
          "argument1": {
            "type": "noise",
            "noise": "minecraft:surface_swamp",
            "xz_scale": 0.47,
            "y_scale": 0.15
          },
          "argument2": {
            "type": "y_clamped_gradient",
            "from_y": 20,
            "to_y": 36,
            "from_value": 0.5,
            "to_value": -1
          }
        }
      },
      "when_out_of_range": -1000
    }
  }
}