{
  "type": "minecraft:cache_once",
  "argument": {
    "type": "minecraft:min",
    "argument1": {
      "type": "minecraft:add",
      "argument1": {
        "type": "minecraft:add",
        "argument1": 0.37,
        "argument2": {
          "type": "minecraft:noise",
          "noise": "minecraft:cave_entrance",
          "xz_scale": 0.75,
          "y_scale": 0.5
        }
      },
      "argument2": {
        "type": "minecraft:y_clamped_gradient",
        "from_value": 0.3,
        "from_y": -10,
        "to_value": 0.0,
        "to_y": 30
      }
    },
    "argument2": {
      "type": "minecraft:add",
      "argument1": "minecraft:overworld/caves/spaghetti_roughness_function",
      "argument2": {
        "type": "minecraft:clamp",
        "input": {
          "type": "minecraft:add",
          "argument1": {
            "type": "minecraft:max",
            "argument1": {
              "type": "minecraft:weird_scaled_sampler",
              "input": {
                "type": "minecraft:cache_once",
                "argument": {
                  "type": "minecraft:noise",
                  "noise": "minecraft:spaghetti_3d_rarity",
                  "xz_scale": 2.0,
                  "y_scale": 1.0
                }
              },
              "noise": "minecraft:spaghetti_3d_1",
              "rarity_value_mapper": "type_1"
            },
            "argument2": {
              "type": "minecraft:weird_scaled_sampler",
              "input": {
                "type": "minecraft:cache_once",
                "argument": {
                  "type": "minecraft:noise",
                  "noise": "minecraft:spaghetti_3d_rarity",
                  "xz_scale": 2.0,
                  "y_scale": 1.0
                }
              },
              "noise": "minecraft:spaghetti_3d_2",
              "rarity_value_mapper": "type_1"
            }
          },
          "argument2": {
            "type": "minecraft:add",
            "argument1": -0.0765,
            "argument2": {
              "type": "minecraft:mul",
              "argument1": -0.011499999999999996,
              "argument2": {
                "type": "minecraft:noise",
                "noise": "minecraft:spaghetti_3d_thickness",
                "xz_scale": 1.0,
                "y_scale": 1.0
              }
            }
          }
        },
        "max": 1.0,
        "min": -1.0
      }
    }
  }
}