{
  "feature": {
    "config": {
      "feature": {
        "feature": {
          "config": {
            "allowed_placement": {
              "blocks": "minecraft:air",
              "type": "minecraft:matching_blocks"
            },
            "direction": "up",
            "layers": [
              {
                "height": {
                  "type": "minecraft:uniform",
                  "min_inclusive": 1,
                  "max_inclusive": 4
                },
                "provider": {
                  "state": {
                    "Name": "minecraft:cactus",
                    "Properties": {
                      "age": "0"
                    }
                  },
                  "type": "minecraft:simple_state_provider"
                }
              },
              {
                "height": {
                  "type": "minecraft:weighted_list",
                  "distribution": [
                    {
                      "data": 0,
                      "weight": 5
                    },
                    {
                      "data": 1,
                      "weight": 2
                    }
                  ]
                },
                "provider": {
                  "type": "minecraft:simple_state_provider",
                  "state": {
                    "Name": "minecraft:cactus_flower"
                  }
                }
              }
            ],
            "prioritize_tip": false
          },
          "type": "minecraft:block_column"
        },
        "placement": [
          {
            "predicate": {
              "predicates": [
                {
                  "blocks": "minecraft:air",
                  "type": "minecraft:matching_blocks"
                },
                {
                  "state": {
                    "Name": "minecraft:cactus",
                    "Properties": {
                      "age": "0"
                    }
                  },
                  "type": "minecraft:would_survive"
                }
              ],
              "type": "minecraft:all_of"
            },
            "type": "minecraft:block_predicate_filter"
          }
        ]
      },
      "tries": 5,
      "xz_spread": 4,
      "y_spread": 3
    },
    "type": "minecraft:random_patch"
  },
  "placement": [
    {
      "type": "minecraft:in_square"
    },
    {
      "noise_factor": 320.0,
      "noise_offset": 0.55,
      "noise_to_count_ratio": 1,
      "type": "minecraft:noise_based_count"
    },
    {
      "noise_factor": 320.0,
      "noise_offset": 0.3,
      "noise_to_count_ratio": -1,
      "type": "minecraft:noise_based_count"
    },
    {
      "heightmap": "WORLD_SURFACE_WG",
      "type": "minecraft:heightmap"
    },
    {
      "type": "minecraft:biome"
    }
  ]
}