{
  "feature": "minecraft:patch_firefly_bush",
  "placement": [
    {
      "type": "minecraft:count",
      "count": 3
    },
    {
      "type": "minecraft:in_square"
    },
    {
      "type": "minecraft:heightmap",
      "heightmap": "MOTION_BLOCKING"
    },
    {
      "type": "minecraft:biome"
    },
    {
      "type": "minecraft:block_predicate_filter",
      "predicate": {
        "type": "minecraft:all_of",
        "predicates": [
          {
            "type": "minecraft:matching_blocks",
            "blocks": "minecraft:air"
          },
          {
            "type": "minecraft:would_survive",
            "state": {
              "Name": "minecraft:firefly_bush"
            }
          },
          {
            "type": "minecraft:any_of",
            "predicates": [
              {
                "type": "minecraft:matching_fluids",
                "fluids": [
                  "minecraft:water",
                  "minecraft:flowing_water"
                ],
                "offset": [
                  1,
                  -1,
                  0
                ]
              },
              {
                "type": "minecraft:matching_fluids",
                "fluids": [
                  "minecraft:water",
                  "minecraft:flowing_water"
                ],
                "offset": [
                  -1,
                  -1,
                  0
                ]
              },
              {
                "type": "minecraft:matching_fluids",
                "fluids": [
                  "minecraft:water",
                  "minecraft:flowing_water"
                ],
                "offset": [
                  0,
                  -1,
                  1
                ]
              },
              {
                "type": "minecraft:matching_fluids",
                "fluids": [
                  "minecraft:water",
                  "minecraft:flowing_water"
                ],
                "offset": [
                  0,
                  -1,
                  -1
                ]
              }
            ]
          }
        ]
      }
    }
  ]
}