{
  "type": "minecraft:random_patch",
  "config": {
    "tries": 50,
    "xz_spread": 8,
    "y_spread": 3,
    "feature": {
      "feature": {
        "type": "minecraft:simple_block",
        "config": {
          "to_place": {
            "type": "minecraft:weighted_state_provider",
            "entries": [
              {
                "weight": 5,
                "data": {
                  "Name": "minecraft:small_amethyst_bud",
                  "Properties": {
                    "facing": "east",
                    "waterlogged": "false"
                  }
                }
              },
              {
                "weight": 4,
                "data": {
                  "Name": "minecraft:medium_amethyst_bud",
                  "Properties": {
                    "facing": "east",
                    "waterlogged": "false"
                  }
                }
              },
              {
                "weight": 3,
                "data": {
                  "Name": "minecraft:large_amethyst_bud",
                  "Properties": {
                    "facing": "east",
                    "waterlogged": "false"
                  }
                }
              },
              {
                "weight": 2,
                "data": {
                  "Name": "minecraft:amethyst_cluster",
                  "Properties": {
                    "facing": "east",
                    "waterlogged": "false"
                  }
                }
              }
            ]
          }
        }
      },
      "placement": [
        {
          "type": "minecraft:block_predicate_filter",
          "predicate": {
            "type": "minecraft:all_of",
            "predicates": [
              {
                "type": "minecraft:matching_blocks",
                "offset": [
                  0,
                  0,
                  0
                ],
                "blocks": [
                  "minecraft:air"
                ]
              },
              {
                "type": "minecraft:any_of",
                "predicates": [
                  {
                    "type": "minecraft:matching_blocks",
                    "offset": [
                      -1,
                      0,
                      0
                    ],
                    "blocks": "minecraft:amethyst_block"
                  },
                  {
                    "type": "minecraft:matching_blocks",
                    "offset": [
                      -1,
                      0,
                      0
                    ],
                    "blocks": "minecraft:budding_amethyst"
                  }
                ]
              },
              {
                "type": "minecraft:would_survive",
                "state": {
                  "Name": "minecraft:amethyst_cluster",
                  "Properties": {
                    "facing": "east",
                    "waterlogged": "false"
                  }
                }
              }
            ]
          }
        }
      ]
    }
  }
}
