{
  "feature": {
    "type": "minecraft:simple_block",
    "config": {
      "to_place": {
        "type": "minecraft:simple_state_provider",
        "state": {
          "Name": "minecraft:firefly_bush"
        }
      }
    }
  },
  "placement": [
    {
      "type": "minecraft:count",
      "count": 10
    },
    {
      "type": "minecraft:in_square"
    },
    {
      "heightmap": "MOTION_BLOCKING_NO_LEAVES",
      "type": "minecraft:heightmap"
    },
    {
      "predicate": {
        "predicates": [
          {
            "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
            ],
            "type": "minecraft:matching_fluids"
          }
        ],
        "type": "minecraft:any_of"
      },
      "type": "minecraft:block_predicate_filter"
    },
    {
      "xz_spread": {
        "type": "minecraft:uniform",
        "min_inclusive": -6,
        "max_inclusive": 6
      },
      "y_spread": 0,
      "type": "minecraft:random_offset"
    },
    {
      "heightmap": "MOTION_BLOCKING_NO_LEAVES",
      "type": "minecraft:heightmap"
    },
    {
      "predicate": {
        "predicates": [
          {
            "blocks": "minecraft:air",
            "type": "minecraft:matching_blocks"
          },
          {
            "state": {
              "Name": "minecraft:firefly_bush"
            },
            "type": "minecraft:would_survive"
          }
        ],
        "type": "minecraft:all_of"
      },
      "type": "minecraft:block_predicate_filter"
    },
    {
      "type": "minecraft:biome"
    }
  ]
}