{
  "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": 4.2,
          "y_scale": 3.5
        },
        "noise": "minecraft:spaghetti_2d",
        "rarity_value_mapper": "type_1"
      },
      "argument2": {
        "type": "minecraft:mul",
        "argument1": 0.083,
        "argument2": "infinity_cave: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": 0.9,
                  "y_scale": 0.8
                }
              }
            },
            "argument2": {
              "type": "minecraft:y_clamped_gradient",
              "from_value": 4,
              "from_y": 240,
              "to_value": 256,
              "to_y": 256
            }
          }
        },
        "argument2": "infinity_cave:caves/spaghetti_2d_thickness_modulator"
      }
    }
  },
  "max": 1.0,
  "min": -1.0
}