{
  "type": "minecraft:add",
  "argument1": 0.2,
  "argument2": {
    "type": "minecraft:mul",
    "argument1": {
      "type": "minecraft:spline",
      "spline": {
        "coordinate": "tectonic:depth",
        "points": [
          {
            "location": 0.1,
            "derivative": 0,
            "value": 0
          },
          {
            "location": 0.2,
            "derivative": 0,
            "value": 1
          }
        ]
      }
    },
    "argument2": {
      "type": "minecraft:add",
      "argument1": -0.2,
      "argument2": {
        "type": "minecraft:max",
        "argument1": {
          "type": "minecraft:min",
          "argument1": {
            "type": "minecraft:min",
            "argument1": {
              "type": "minecraft:add",
              "argument1": {
                "type": "minecraft:mul",
                "argument1": 4,
                "argument2": {
                  "type": "minecraft:square",
                  "argument": {
                    "type": "minecraft:noise",
                    "noise": "minecraft:cave_layer",
                    "xz_scale": 1,
                    "y_scale": 8
                  }
                }
              },
              "argument2": {
                "type": "minecraft:add",
                "argument1": {
                  "type": "minecraft:clamp",
                  "input": {
                    "type": "minecraft:add",
                    "argument1": 0.27,
                    "argument2": {
                      "type": "minecraft:noise",
                      "noise": "minecraft:cave_cheese",
                      "xz_scale": 1,
                      "y_scale": 0.6666666666666666
                    }
                  },
                  "max": 1,
                  "min": -1
                },
                "argument2": {
                  "type": "minecraft:clamp",
                  "input": {
                    "type": "minecraft:add",
                    "argument1": 1.5,
                    "argument2": {
                      "type": "minecraft:mul",
                      "argument1": -0.64,
                      "argument2": "tectonic:sloped_cheese"
                    }
                  },
                  "max": 0.5,
                  "min": 0
                }
              }
            },
            "argument2": "minecraft:overworld/caves/entrances"
          },
          "argument2": {
            "type": "minecraft:add",
            "argument1": "minecraft:overworld/caves/spaghetti_2d",
            "argument2": "minecraft:overworld/caves/spaghetti_roughness_function"
          }
        },
        "argument2": {
          "type": "minecraft:range_choice",
          "input": "minecraft:overworld/caves/pillars",
          "max_exclusive": 0.03,
          "min_inclusive": -1000000,
          "when_in_range": -1000000,
          "when_out_of_range": "minecraft:overworld/caves/pillars"
        }
      }
    }
  }
}