{
  "type": "minecraft:random_patch",
  "config": {
    "tries": 20,
    "xz_spread": 4,
    "y_spread": 0,
    "feature": {
      "feature": {
        "config": {
          "layers": [
            {
              "height": {
                "type": "minecraft:biased_to_bottom",
                "value": {
                  "min_inclusive": 2,
                  "max_inclusive": 4
                }
              },
              "provider": {
                "state": {
                  "Properties": {
                    "age": "0"
                  },
                  "Name": "minecraft:sugar_cane"
                },
                "type": "minecraft:simple_state_provider"
              }
            }
          ],
          "direction": "up",
          "allowed_placement": {
            "blocks": [
              "minecraft:air"
            ],
            "type": "minecraft:matching_blocks"
          },
          "prioritize_tip": false
        },
        "type": "minecraft:block_column"
      },
      "placement": [
        {
          "type": "minecraft:block_predicate_filter",
          "predicate": {
            "predicates": [
              {
                "offset": [
                  1,
                  -1,
                  0
                ],
                "fluids": [
                  "minecraft:water",
                  "minecraft:flowing_water"
                ],
                "type": "minecraft:matching_fluids"
              },
              {
                "offset": [
                  -1,
                  -1,
                  0
                ],
                "fluids": [
                  "minecraft:water",
                  "minecraft:flowing_water"
                ],
                "type": "minecraft:matching_fluids"
              },
              {
                "offset": [
                  0,
                  -1,
                  1
                ],
                "fluids": [
                  "minecraft:water",
                  "minecraft:flowing_water"
                ],
                "type": "minecraft:matching_fluids"
              },
              {
                "offset": [
                  0,
                  -1,
                  -1
                ],
                "fluids": [
                  "minecraft:water",
                  "minecraft:flowing_water"
                ],
                "type": "minecraft:matching_fluids"
              }
            ],
            "type": "minecraft:any_of"
          }
        },
        {
          "type": "minecraft:block_predicate_filter",
          "predicate": {
            "state": {
              "Properties": {
                "age": "0"
              },
              "Name": "minecraft:sugar_cane"
            },
            "type": "minecraft:would_survive"
          }
        },
        {
          "type": "minecraft:block_predicate_filter",
          "predicate": {
            "blocks": [
              "minecraft:air"
            ],
            "type": "minecraft:matching_blocks"
          }
        }
      ]
    }
  }
}
