{
    "feature": {
        "type": "minecraft:random_selector",
        "config": {
            "default": {
                "feature": "terralith:cave/infested/patch_pale_moss",
                "placement": []
            },
            "features": [
                {
                    "feature": {
                        "feature": "terralith:cave/infested/spider_egg",
                        "placement": []
                    },
                    "chance": 0.2
                },
                {
                    "feature": {
                        "feature": "terralith:cave/infested/cobweb",
                        "placement": []
                    },
                    "chance": 0.3
                }
            ]
        }
    },
    "placement": [
        {
            "type": "minecraft:count",
            "count": 256
        },
        {
            "type": "minecraft:in_square"
        },
        {
            "type": "minecraft:height_range",
            "height": {
                "type": "minecraft:uniform",
                "min_inclusive": {
                    "above_bottom": -64
                },
                "max_inclusive": {
                    "absolute": 192
                }
            }
        },
        {
            "type": "minecraft:environment_scan",
            "direction_of_search": "down",
            "max_steps": 32,
            "target_condition": {
                "type": "minecraft:has_sturdy_face",
                "direction": "up",
                "offset": [
                    0,
                    -1,
                    0
                ]
            }
        },
        {
            "type": "minecraft:block_predicate_filter",
            "predicate": {
                "type": "minecraft:matching_block_tag",
                "tag": "minecraft:air",
                "offset": [
                    0,
                    0,
                    0
                ]
            }
        },
        {
            "type": "minecraft:biome"
        }
    ]
}