{
    "feature": "terralith:swamp/vanilla/tree",
    "placement": [
        {
            "type": "minecraft:count",
            "count": {
                "type": "minecraft:biased_to_bottom",
                "min_inclusive": 2,
                "max_inclusive": 5
            }
        },
        {
            "type": "minecraft:in_square"
        },
        {
            "type": "minecraft:surface_water_depth_filter",
            "max_water_depth": 4
        },
        {
            "type": "minecraft:heightmap",
            "heightmap": "OCEAN_FLOOR"
        },
        {
            "type": "minecraft:biome"
        },
        {
            "type": "minecraft:block_predicate_filter",
            "predicate": {
                "type": "minecraft:would_survive",
                "state": {
                    "Name": "minecraft:mangrove_propagule",
                    "Properties": {
                        "stage": "0",
                        "age": "0",
                        "hanging": "false",
                        "waterlogged": "false"
                    }
                }
            }
        }
    ]
}