{
    "feature": {
        "type": "minecraft:simple_block",
        "config": {
            "to_place": {
                "type": "minecraft:simple_state_provider",
                "state": {
                    "Name": "minecraft:cactus_flower"
                }
            }
        }
    },
    "placement": [
        {
            "type": "rarity_filter",
            "chance": 2
        },
        {
            "type": "minecraft:in_square"
        },
        {
            "type": "minecraft:heightmap",
            "heightmap": "MOTION_BLOCKING"
        },
        {
            "type": "minecraft:block_predicate_filter",
            "predicate": {
                "type": "minecraft:all_of",
                "predicates": [
                    {
                        "type": "minecraft:matching_blocks",
                        "blocks": [
                            "minecraft:air"
                        ],
                        "offset": [
                            0,
                            0,
                            0
                        ]
                    },
                    {
                        "type": "minecraft:matching_blocks",
                        "blocks": [
                            "minecraft:packed_mud",
                            "minecraft:coarse_dirt",
                            "minecraft:grass_block",
                            "minecraft:red_sand"
                        ],
                        "offset": [
                            0,
                            -1,
                            0
                        ]
                    },
                    {
                        "type": "minecraft:would_survive",
                        "state": {
                            "Name": "minecraft:short_grass"
                        }
                    }
                ]
            }
        },
        {
            "type": "minecraft:biome"
        }
    ]
}