{
  "type": "minecraft:clamp",
  "input": {
    "type": "minecraft:max",
    "argument1": {
      "type": "minecraft:add",
      "argument1": {
        "type": "minecraft:weird_scaled_sampler",
        "input": {
          "type": "minecraft:noise",
          "noise": "minecraft:spaghetti_2d_modulator",
          "xz_scale": 2.0,
          "y_scale": 1.0
        },
        "noise": "minecraft:spaghetti_2d",
        "rarity_value_mapper": "type_2"
      },
      "argument2": {
        "type": "minecraft:mul",
        "argument1": 0.083,
        "argument2": "minecraft:overworld/caves/spaghetti_2d_thickness_modulator"
      }
    },
    "argument2": {
      "type": "minecraft:cube",
      "argument": {
        "type": "minecraft:add",
        "argument1": {
          "type": "minecraft:abs",
          "argument": {
            "type": "minecraft:add",
            "argument1": {
              "type": "minecraft:add",
              "argument1": 0.0,
              "argument2": {
                "type": "minecraft:mul",
                "argument1": 8.0,
                "argument2": {
                  "type": "minecraft:noise",
                  "noise": "minecraft:spaghetti_2d_elevation",
                  "xz_scale": 1.0,
                  "y_scale": 0.0
                }
              }
            },
            "argument2": {
              "type": "minecraft:y_clamped_gradient",
              "from_value": 8.0,
              "from_y": -64,
              "to_value": -40.0,
              "to_y": 320
            }
          }
        },
        "argument2": "minecraft:overworld/caves/spaghetti_2d_thickness_modulator"
      }
    }
  },
  "max": 1.0,
  "min": -1.0
}