{
  "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.6,
          "y_scale": 0.85
        },
        "noise": "minecraft:spaghetti_2d",
        "rarity_value_mapper": "type_2"
      },
      "argument2": {
        "type": "minecraft:mul",
        "argument1": 0.065,
        "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": 6.2,
                "argument2": {
                  "type": "minecraft:noise",
                  "noise": "minecraft:spaghetti_2d_elevation",
                  "xz_scale": 1.4,
                  "y_scale": 0.0
                }
              }
            },
            "argument2": {
              "type": "minecraft:y_clamped_gradient",
              "from_value": 5.5,
              "from_y": -128,
              "to_value": -48.0,
              "to_y": 960
            }
          }
        },
        "argument2": "minecraft:overworld/caves/spaghetti_2d_thickness_modulator"
      }
    }
  },
  "max": 1.0,
  "min": -1.0
}