{
  "feature": {
    "config": {
      "allowed_placement": {
        "blocks": "minecraft:air",
        "type": "minecraft:matching_blocks"
      },
      "direction": "up",
      "layers": [
        {
          "height": {
            "type": "minecraft:uniform",
            "min_inclusive": 2,
            "max_inclusive": 4
          },
          "provider": {
            "state": {
              "Name": "minecraft:sugar_cane",
              "Properties": {
                "age": "0"
              }
            },
            "type": "minecraft:simple_state_provider"
          }
        }
      ],
      "prioritize_tip": false
    },
    "type": "minecraft:block_column"
  },
  "placement": [
    {
      "count": 24,
      "type": "minecraft:count"
    },
    {
      "type": "minecraft:in_square"
    },
    {
      "heightmap": "MOTION_BLOCKING_NO_LEAVES",
      "type": "minecraft:heightmap"
    },
    {
      "predicate": {
        "predicates": [
          {
            "blocks": "minecraft:air",
            "type": "minecraft:matching_blocks"
          },
          {
            "state": {
              "Name": "minecraft:sugar_cane",
              "Properties": {
                "age": "0"
              }
            },
            "type": "minecraft:would_survive"
          },
          {
            "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:all_of"
      },
      "type": "minecraft:block_predicate_filter"
    },
    {
      "type": "minecraft:biome"
    }
  ]
}