{
    "type": "minecraft:random_selector",
    "config": {
        "features": [
            {
                "chance": 0.1,
                "feature": {
                    "feature": "terralith:cave/generic/mega_geode",
                    "placement": [
                        {
                            "type": "minecraft:block_predicate_filter",
                            "predicate": {
                                "type": "minecraft:all_of",
                                "predicates": [
                                    {
                                        "type": "minecraft:matching_blocks",
                                        "offset": [
                                            0,
                                            0,
                                            0
                                        ],
                                        "blocks": "#minecraft:deepslate_ore_replaceables"
                                    },
                                    {
                                        "type": "minecraft:not",
                                        "predicate": {
                                            "type": "minecraft:any_of",
                                            "predicates": [
                                                {
                                                    "type": "minecraft:matching_blocks",
                                                    "offset": [
                                                        0,
                                                        0,
                                                        0
                                                    ],
                                                    "blocks": [
                                                        "minecraft:air",
                                                        "minecraft:water"
                                                    ]
                                                },
                                                {
                                                    "type": "minecraft:matching_blocks",
                                                    "offset": [
                                                        0,
                                                        0,
                                                        0
                                                    ],
                                                    "blocks": [
                                                        "minecraft:air",
                                                        "minecraft:water"
                                                    ]
                                                },
                                                {
                                                    "type": "minecraft:matching_blocks",
                                                    "offset": [
                                                        15,
                                                        0,
                                                        0
                                                    ],
                                                    "blocks": [
                                                        "minecraft:air",
                                                        "minecraft:water"
                                                    ]
                                                },
                                                {
                                                    "type": "minecraft:matching_blocks",
                                                    "offset": [
                                                        0,
                                                        0,
                                                        15
                                                    ],
                                                    "blocks": [
                                                        "minecraft:air",
                                                        "minecraft:water"
                                                    ]
                                                },
                                                {
                                                    "type": "minecraft:matching_blocks",
                                                    "offset": [
                                                        -15,
                                                        0,
                                                        0
                                                    ],
                                                    "blocks": [
                                                        "minecraft:air",
                                                        "minecraft:water"
                                                    ]
                                                },
                                                {
                                                    "type": "minecraft:matching_blocks",
                                                    "offset": [
                                                        0,
                                                        0,
                                                        -15
                                                    ],
                                                    "blocks": [
                                                        "minecraft:air",
                                                        "minecraft:water"
                                                    ]
                                                },
                                                {
                                                    "type": "minecraft:matching_blocks",
                                                    "offset": [
                                                        15,
                                                        0,
                                                        15
                                                    ],
                                                    "blocks": [
                                                        "minecraft:air",
                                                        "minecraft:water"
                                                    ]
                                                },
                                                {
                                                    "type": "minecraft:matching_blocks",
                                                    "offset": [
                                                        15,
                                                        0,
                                                        -15
                                                    ],
                                                    "blocks": [
                                                        "minecraft:air",
                                                        "minecraft:water"
                                                    ]
                                                },
                                                {
                                                    "type": "minecraft:matching_blocks",
                                                    "offset": [
                                                        -15,
                                                        0,
                                                        15
                                                    ],
                                                    "blocks": [
                                                        "minecraft:air",
                                                        "minecraft:water"
                                                    ]
                                                },
                                                {
                                                    "type": "minecraft:matching_blocks",
                                                    "offset": [
                                                        -15,
                                                        0,
                                                        -15
                                                    ],
                                                    "blocks": [
                                                        "minecraft:air",
                                                        "minecraft:water"
                                                    ]
                                                },
                                                {
                                                    "type": "minecraft:matching_blocks",
                                                    "offset": [
                                                        0,
                                                        15,
                                                        0
                                                    ],
                                                    "blocks": [
                                                        "minecraft:air",
                                                        "minecraft:water"
                                                    ]
                                                },
                                                {
                                                    "type": "minecraft:matching_blocks",
                                                    "offset": [
                                                        15,
                                                        15,
                                                        0
                                                    ],
                                                    "blocks": [
                                                        "minecraft:air",
                                                        "minecraft:water"
                                                    ]
                                                },
                                                {
                                                    "type": "minecraft:matching_blocks",
                                                    "offset": [
                                                        0,
                                                        15,
                                                        15
                                                    ],
                                                    "blocks": [
                                                        "minecraft:air",
                                                        "minecraft:water"
                                                    ]
                                                },
                                                {
                                                    "type": "minecraft:matching_blocks",
                                                    "offset": [
                                                        -15,
                                                        15,
                                                        0
                                                    ],
                                                    "blocks": [
                                                        "minecraft:air",
                                                        "minecraft:water"
                                                    ]
                                                },
                                                {
                                                    "type": "minecraft:matching_blocks",
                                                    "offset": [
                                                        0,
                                                        15,
                                                        -15
                                                    ],
                                                    "blocks": [
                                                        "minecraft:air",
                                                        "minecraft:water"
                                                    ]
                                                },
                                                {
                                                    "type": "minecraft:matching_blocks",
                                                    "offset": [
                                                        15,
                                                        15,
                                                        15
                                                    ],
                                                    "blocks": [
                                                        "minecraft:air",
                                                        "minecraft:water"
                                                    ]
                                                },
                                                {
                                                    "type": "minecraft:matching_blocks",
                                                    "offset": [
                                                        15,
                                                        15,
                                                        -15
                                                    ],
                                                    "blocks": [
                                                        "minecraft:air",
                                                        "minecraft:water"
                                                    ]
                                                },
                                                {
                                                    "type": "minecraft:matching_blocks",
                                                    "offset": [
                                                        -15,
                                                        15,
                                                        15
                                                    ],
                                                    "blocks": [
                                                        "minecraft:air",
                                                        "minecraft:water"
                                                    ]
                                                },
                                                {
                                                    "type": "minecraft:matching_blocks",
                                                    "offset": [
                                                        -15,
                                                        15,
                                                        -15
                                                    ],
                                                    "blocks": [
                                                        "minecraft:air",
                                                        "minecraft:water"
                                                    ]
                                                },
                                                {
                                                    "type": "minecraft:matching_blocks",
                                                    "offset": [
                                                        0,
                                                        -15,
                                                        0
                                                    ],
                                                    "blocks": [
                                                        "minecraft:air",
                                                        "minecraft:water"
                                                    ]
                                                },
                                                {
                                                    "type": "minecraft:matching_blocks",
                                                    "offset": [
                                                        15,
                                                        -15,
                                                        0
                                                    ],
                                                    "blocks": [
                                                        "minecraft:air",
                                                        "minecraft:water"
                                                    ]
                                                },
                                                {
                                                    "type": "minecraft:matching_blocks",
                                                    "offset": [
                                                        0,
                                                        -15,
                                                        15
                                                    ],
                                                    "blocks": [
                                                        "minecraft:air",
                                                        "minecraft:water"
                                                    ]
                                                },
                                                {
                                                    "type": "minecraft:matching_blocks",
                                                    "offset": [
                                                        -15,
                                                        -15,
                                                        0
                                                    ],
                                                    "blocks": [
                                                        "minecraft:air",
                                                        "minecraft:water"
                                                    ]
                                                },
                                                {
                                                    "type": "minecraft:matching_blocks",
                                                    "offset": [
                                                        0,
                                                        -15,
                                                        -15
                                                    ],
                                                    "blocks": [
                                                        "minecraft:air",
                                                        "minecraft:water"
                                                    ]
                                                },
                                                {
                                                    "type": "minecraft:matching_blocks",
                                                    "offset": [
                                                        15,
                                                        -15,
                                                        15
                                                    ],
                                                    "blocks": [
                                                        "minecraft:air",
                                                        "minecraft:water"
                                                    ]
                                                },
                                                {
                                                    "type": "minecraft:matching_blocks",
                                                    "offset": [
                                                        15,
                                                        -15,
                                                        -15
                                                    ],
                                                    "blocks": [
                                                        "minecraft:air",
                                                        "minecraft:water"
                                                    ]
                                                },
                                                {
                                                    "type": "minecraft:matching_blocks",
                                                    "offset": [
                                                        -15,
                                                        -15,
                                                        15
                                                    ],
                                                    "blocks": [
                                                        "minecraft:air",
                                                        "minecraft:water"
                                                    ]
                                                },
                                                {
                                                    "type": "minecraft:matching_blocks",
                                                    "offset": [
                                                        -15,
                                                        -15,
                                                        -15
                                                    ],
                                                    "blocks": [
                                                        "minecraft:air",
                                                        "minecraft:water"
                                                    ]
                                                },
                                                {
                                                    "type": "minecraft:matching_blocks",
                                                    "offset": [
                                                        0,
                                                        0,
                                                        0
                                                    ],
                                                    "blocks": [
                                                        "minecraft:air",
                                                        "minecraft:water"
                                                    ]
                                                },
                                                {
                                                    "type": "minecraft:matching_blocks",
                                                    "offset": [
                                                        8,
                                                        0,
                                                        0
                                                    ],
                                                    "blocks": [
                                                        "minecraft:air",
                                                        "minecraft:water"
                                                    ]
                                                },
                                                {
                                                    "type": "minecraft:matching_blocks",
                                                    "offset": [
                                                        0,
                                                        0,
                                                        8
                                                    ],
                                                    "blocks": [
                                                        "minecraft:air",
                                                        "minecraft:water"
                                                    ]
                                                },
                                                {
                                                    "type": "minecraft:matching_blocks",
                                                    "offset": [
                                                        -8,
                                                        0,
                                                        0
                                                    ],
                                                    "blocks": [
                                                        "minecraft:air",
                                                        "minecraft:water"
                                                    ]
                                                },
                                                {
                                                    "type": "minecraft:matching_blocks",
                                                    "offset": [
                                                        0,
                                                        0,
                                                        -8
                                                    ],
                                                    "blocks": [
                                                        "minecraft:air",
                                                        "minecraft:water"
                                                    ]
                                                },
                                                {
                                                    "type": "minecraft:matching_blocks",
                                                    "offset": [
                                                        8,
                                                        0,
                                                        8
                                                    ],
                                                    "blocks": [
                                                        "minecraft:air",
                                                        "minecraft:water"
                                                    ]
                                                },
                                                {
                                                    "type": "minecraft:matching_blocks",
                                                    "offset": [
                                                        8,
                                                        0,
                                                        -8
                                                    ],
                                                    "blocks": [
                                                        "minecraft:air",
                                                        "minecraft:water"
                                                    ]
                                                },
                                                {
                                                    "type": "minecraft:matching_blocks",
                                                    "offset": [
                                                        -8,
                                                        0,
                                                        8
                                                    ],
                                                    "blocks": [
                                                        "minecraft:air",
                                                        "minecraft:water"
                                                    ]
                                                },
                                                {
                                                    "type": "minecraft:matching_blocks",
                                                    "offset": [
                                                        -8,
                                                        0,
                                                        -8
                                                    ],
                                                    "blocks": [
                                                        "minecraft:air",
                                                        "minecraft:water"
                                                    ]
                                                },
                                                {
                                                    "type": "minecraft:matching_blocks",
                                                    "offset": [
                                                        0,
                                                        8,
                                                        0
                                                    ],
                                                    "blocks": [
                                                        "minecraft:air",
                                                        "minecraft:water"
                                                    ]
                                                },
                                                {
                                                    "type": "minecraft:matching_blocks",
                                                    "offset": [
                                                        8,
                                                        8,
                                                        0
                                                    ],
                                                    "blocks": [
                                                        "minecraft:air",
                                                        "minecraft:water"
                                                    ]
                                                },
                                                {
                                                    "type": "minecraft:matching_blocks",
                                                    "offset": [
                                                        0,
                                                        8,
                                                        8
                                                    ],
                                                    "blocks": [
                                                        "minecraft:air",
                                                        "minecraft:water"
                                                    ]
                                                },
                                                {
                                                    "type": "minecraft:matching_blocks",
                                                    "offset": [
                                                        -8,
                                                        8,
                                                        0
                                                    ],
                                                    "blocks": [
                                                        "minecraft:air",
                                                        "minecraft:water"
                                                    ]
                                                },
                                                {
                                                    "type": "minecraft:matching_blocks",
                                                    "offset": [
                                                        0,
                                                        8,
                                                        -8
                                                    ],
                                                    "blocks": [
                                                        "minecraft:air",
                                                        "minecraft:water"
                                                    ]
                                                },
                                                {
                                                    "type": "minecraft:matching_blocks",
                                                    "offset": [
                                                        8,
                                                        8,
                                                        8
                                                    ],
                                                    "blocks": [
                                                        "minecraft:air",
                                                        "minecraft:water"
                                                    ]
                                                },
                                                {
                                                    "type": "minecraft:matching_blocks",
                                                    "offset": [
                                                        8,
                                                        8,
                                                        -8
                                                    ],
                                                    "blocks": [
                                                        "minecraft:air",
                                                        "minecraft:water"
                                                    ]
                                                },
                                                {
                                                    "type": "minecraft:matching_blocks",
                                                    "offset": [
                                                        -8,
                                                        8,
                                                        8
                                                    ],
                                                    "blocks": [
                                                        "minecraft:air",
                                                        "minecraft:water"
                                                    ]
                                                },
                                                {
                                                    "type": "minecraft:matching_blocks",
                                                    "offset": [
                                                        -8,
                                                        8,
                                                        -8
                                                    ],
                                                    "blocks": [
                                                        "minecraft:air",
                                                        "minecraft:water"
                                                    ]
                                                },
                                                {
                                                    "type": "minecraft:matching_blocks",
                                                    "offset": [
                                                        0,
                                                        -8,
                                                        0
                                                    ],
                                                    "blocks": [
                                                        "minecraft:air",
                                                        "minecraft:water"
                                                    ]
                                                },
                                                {
                                                    "type": "minecraft:matching_blocks",
                                                    "offset": [
                                                        8,
                                                        -8,
                                                        0
                                                    ],
                                                    "blocks": [
                                                        "minecraft:air",
                                                        "minecraft:water"
                                                    ]
                                                },
                                                {
                                                    "type": "minecraft:matching_blocks",
                                                    "offset": [
                                                        0,
                                                        -8,
                                                        8
                                                    ],
                                                    "blocks": [
                                                        "minecraft:air",
                                                        "minecraft:water"
                                                    ]
                                                },
                                                {
                                                    "type": "minecraft:matching_blocks",
                                                    "offset": [
                                                        -8,
                                                        -8,
                                                        0
                                                    ],
                                                    "blocks": [
                                                        "minecraft:air",
                                                        "minecraft:water"
                                                    ]
                                                },
                                                {
                                                    "type": "minecraft:matching_blocks",
                                                    "offset": [
                                                        0,
                                                        -8,
                                                        -8
                                                    ],
                                                    "blocks": [
                                                        "minecraft:air",
                                                        "minecraft:water"
                                                    ]
                                                },
                                                {
                                                    "type": "minecraft:matching_blocks",
                                                    "offset": [
                                                        8,
                                                        -8,
                                                        8
                                                    ],
                                                    "blocks": [
                                                        "minecraft:air",
                                                        "minecraft:water"
                                                    ]
                                                },
                                                {
                                                    "type": "minecraft:matching_blocks",
                                                    "offset": [
                                                        8,
                                                        -8,
                                                        -8
                                                    ],
                                                    "blocks": [
                                                        "minecraft:air",
                                                        "minecraft:water"
                                                    ]
                                                },
                                                {
                                                    "type": "minecraft:matching_blocks",
                                                    "offset": [
                                                        -8,
                                                        -8,
                                                        8
                                                    ],
                                                    "blocks": [
                                                        "minecraft:air",
                                                        "minecraft:water"
                                                    ]
                                                },
                                                {
                                                    "type": "minecraft:matching_blocks",
                                                    "offset": [
                                                        -8,
                                                        -8,
                                                        -8
                                                    ],
                                                    "blocks": [
                                                        "minecraft:air",
                                                        "minecraft:water"
                                                    ]
                                                }
                                            ]
                                        }
                                    }
                                ]
                            }
                        }
                    ]
                }
            }
        ],
        "default": {
            "feature": "minecraft:amethyst_geode",
            "placement": [
                {
                    "type": "minecraft:random_offset",
                    "xz_spread": {
                        "type": "minecraft:uniform",
                        "min_inclusive": -8,
                        "max_inclusive": 7
                    },
                    "y_spread": 0
                }
            ]
        }
    }
}