{
    "type": "minecraft:cache_once",
    "argument": {
        "type": "minecraft:min",
        "argument1": {
            "type": "minecraft:add",
            "argument1": {
                "type": "minecraft:add",
                "argument1": 0.28,
                "argument2": {
                    "type": "minecraft:noise",
                    "noise": "minecraft:cave_entrance",
                    "xz_scale": 0.475,
                    "y_scale": 0.325
                }
            },
            "argument2": {
                "type": "minecraft:y_clamped_gradient",
                "from_value": 0.35,
                "from_y": -10,
                "to_value": 0.0,
                "to_y": 2032
            }
        },
        "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": 0.18,
                                    "y_scale": 0.085
                                }
                            },
                            "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": 0.18,
                                    "y_scale": 0.085
                                }
                            },
                            "noise": "minecraft:spaghetti_3d_2",
                            "rarity_value_mapper": "type_1"
                        }
                    },
                    "argument2": {
                        "type": "minecraft:add",
                        "argument1": -0.05,
                        "argument2": {
                            "type": "minecraft:mul",
                            "argument1": -0.014,
                            "argument2": {
                                "type": "minecraft:noise",
                                "noise": "minecraft:spaghetti_3d_thickness",
                                "xz_scale": 0.6,
                                "y_scale": 0.45
                            }
                        }
                    }
                },
                "max": 1.0,
                "min": -1.0
            }
        }
    }
}