{
  "feature": {
    "type": "minecraft:random_patch",
    "config": {
      "tries": 500,
      "xz_spread": 4,
      "y_spread": 4,
      "feature": {
        "feature": {
          "type": "minecraft:random_selector",
          "config": {
            "features": [
              {
                "chance": 0.0015,
                "feature": {
                  "feature": {
                    "type": "minecraft:random_patch",
                    "config": {
                      "tries": 60,
                      "xz_spread": 3,
                      "y_spread": 3,
                      "feature": {
                        "feature": {
                          "type": "minecraft:simple_random_selector",
                          "config": {
                            "features": [
                              {
                                "feature": {
                                  "type": "minecraft:simple_block",
                                  "config": {
                                    "to_place": {
                                      "type": "minecraft:weighted_state_provider",
                                      "entries": [
                                        {
                                          "weight": 1,
                                          "data": {
                                            "Name": "minecraft:amethyst_cluster",
                                            "Properties": {
                                              "facing": "up",
                                              "waterlogged": "false"
                                            }
                                          }
                                        },
                                        {
                                          "weight": 2,
                                          "data": {
                                            "Name": "minecraft:large_amethyst_bud",
                                            "Properties": {
                                              "facing": "up",
                                              "waterlogged": "false"
                                            }
                                          }
                                        },
                                        {
                                          "weight": 4,
                                          "data": {
                                            "Name": "minecraft:medium_amethyst_bud",
                                            "Properties": {
                                              "facing": "up",
                                              "waterlogged": "false"
                                            }
                                          }
                                        },
                                        {
                                          "weight": 6,
                                          "data": {
                                            "Name": "minecraft:small_amethyst_bud",
                                            "Properties": {
                                              "facing": "up",
                                              "waterlogged": "false"
                                            }
                                          }
                                        }
                                      ]
                                    }
                                  }
                                },
                                "placement": [
                                  {
                                    "type": "minecraft:block_predicate_filter",
                                    "predicate": {
                                      "type": "minecraft:all_of",
                                      "predicates": [
                                        {
                                          "type": "minecraft:matching_blocks",
                                          "offset": [
                                            0,
                                            -1,
                                            0
                                          ],
                                          "blocks": [
                                            "minecraft:amethyst_block"
                                          ]
                                        },
                                        {
                                          "type": "minecraft:matching_blocks",
                                          "offset": [
                                            0,
                                            0,
                                            0
                                          ],
                                          "blocks": [
                                            "minecraft:air",
                                            "minecraft:cave_air"
                                          ]
                                        }
                                      ]
                                    }
                                  }
                                ]
                              },
                              {
                                "feature": {
                                  "type": "minecraft:simple_block",
                                  "config": {
                                    "to_place": {
                                      "type": "minecraft:weighted_state_provider",
                                      "entries": [
                                        {
                                          "weight": 1,
                                          "data": {
                                            "Name": "minecraft:amethyst_cluster",
                                            "Properties": {
                                              "facing": "down",
                                              "waterlogged": "false"
                                            }
                                          }
                                        },
                                        {
                                          "weight": 2,
                                          "data": {
                                            "Name": "minecraft:large_amethyst_bud",
                                            "Properties": {
                                              "facing": "down",
                                              "waterlogged": "false"
                                            }
                                          }
                                        },
                                        {
                                          "weight": 4,
                                          "data": {
                                            "Name": "minecraft:medium_amethyst_bud",
                                            "Properties": {
                                              "facing": "down",
                                              "waterlogged": "false"
                                            }
                                          }
                                        },
                                        {
                                          "weight": 6,
                                          "data": {
                                            "Name": "minecraft:small_amethyst_bud",
                                            "Properties": {
                                              "facing": "down",
                                              "waterlogged": "false"
                                            }
                                          }
                                        }
                                      ]
                                    }
                                  }
                                },
                                "placement": [
                                  {
                                    "type": "minecraft:block_predicate_filter",
                                    "predicate": {
                                      "type": "minecraft:all_of",
                                      "predicates": [
                                        {
                                          "type": "minecraft:matching_blocks",
                                          "offset": [
                                            0,
                                            1,
                                            0
                                          ],
                                          "blocks": [
                                            "minecraft:amethyst_block"
                                          ]
                                        },
                                        {
                                          "type": "minecraft:matching_blocks",
                                          "offset": [
                                            0,
                                            0,
                                            0
                                          ],
                                          "blocks": [
                                            "minecraft:air",
                                            "minecraft:cave_air"
                                          ]
                                        }
                                      ]
                                    }
                                  }
                                ]
                              },
                              {
                                "feature": {
                                  "type": "minecraft:simple_block",
                                  "config": {
                                    "to_place": {
                                      "type": "minecraft:weighted_state_provider",
                                      "entries": [
                                        {
                                          "weight": 1,
                                          "data": {
                                            "Name": "minecraft:amethyst_cluster",
                                            "Properties": {
                                              "facing": "south",
                                              "waterlogged": "false"
                                            }
                                          }
                                        },
                                        {
                                          "weight": 2,
                                          "data": {
                                            "Name": "minecraft:large_amethyst_bud",
                                            "Properties": {
                                              "facing": "south",
                                              "waterlogged": "false"
                                            }
                                          }
                                        },
                                        {
                                          "weight": 4,
                                          "data": {
                                            "Name": "minecraft:medium_amethyst_bud",
                                            "Properties": {
                                              "facing": "south",
                                              "waterlogged": "false"
                                            }
                                          }
                                        },
                                        {
                                          "weight": 6,
                                          "data": {
                                            "Name": "minecraft:small_amethyst_bud",
                                            "Properties": {
                                              "facing": "south",
                                              "waterlogged": "false"
                                            }
                                          }
                                        }
                                      ]
                                    }
                                  }
                                },
                                "placement": [
                                  {
                                    "type": "minecraft:block_predicate_filter",
                                    "predicate": {
                                      "type": "minecraft:all_of",
                                      "predicates": [
                                        {
                                          "type": "minecraft:matching_blocks",
                                          "offset": [
                                            0,
                                            0,
                                            -1
                                          ],
                                          "blocks": [
                                            "minecraft:amethyst_block"
                                          ]
                                        },
                                        {
                                          "type": "minecraft:matching_blocks",
                                          "offset": [
                                            0,
                                            0,
                                            0
                                          ],
                                          "blocks": [
                                            "minecraft:air",
                                            "minecraft:cave_air"
                                          ]
                                        }
                                      ]
                                    }
                                  }
                                ]
                              },
                              {
                                "feature": {
                                  "type": "minecraft:simple_block",
                                  "config": {
                                    "to_place": {
                                      "type": "minecraft:weighted_state_provider",
                                      "entries": [
                                        {
                                          "weight": 1,
                                          "data": {
                                            "Name": "minecraft:amethyst_cluster",
                                            "Properties": {
                                              "facing": "north",
                                              "waterlogged": "false"
                                            }
                                          }
                                        },
                                        {
                                          "weight": 2,
                                          "data": {
                                            "Name": "minecraft:large_amethyst_bud",
                                            "Properties": {
                                              "facing": "north",
                                              "waterlogged": "false"
                                            }
                                          }
                                        },
                                        {
                                          "weight": 4,
                                          "data": {
                                            "Name": "minecraft:medium_amethyst_bud",
                                            "Properties": {
                                              "facing": "north",
                                              "waterlogged": "false"
                                            }
                                          }
                                        },
                                        {
                                          "weight": 6,
                                          "data": {
                                            "Name": "minecraft:small_amethyst_bud",
                                            "Properties": {
                                              "facing": "north",
                                              "waterlogged": "false"
                                            }
                                          }
                                        }
                                      ]
                                    }
                                  }
                                },
                                "placement": [
                                  {
                                    "type": "minecraft:block_predicate_filter",
                                    "predicate": {
                                      "type": "minecraft:all_of",
                                      "predicates": [
                                        {
                                          "type": "minecraft:matching_blocks",
                                          "offset": [
                                            0,
                                            0,
                                            1
                                          ],
                                          "blocks": [
                                            "minecraft:amethyst_block"
                                          ]
                                        },
                                        {
                                          "type": "minecraft:matching_blocks",
                                          "offset": [
                                            0,
                                            0,
                                            0
                                          ],
                                          "blocks": [
                                            "minecraft:air",
                                            "minecraft:cave_air"
                                          ]
                                        }
                                      ]
                                    }
                                  }
                                ]
                              },
                              {
                                "feature": {
                                  "type": "minecraft:simple_block",
                                  "config": {
                                    "to_place": {
                                      "type": "minecraft:weighted_state_provider",
                                      "entries": [
                                        {
                                          "weight": 1,
                                          "data": {
                                            "Name": "minecraft:amethyst_cluster",
                                            "Properties": {
                                              "facing": "west",
                                              "waterlogged": "false"
                                            }
                                          }
                                        },
                                        {
                                          "weight": 2,
                                          "data": {
                                            "Name": "minecraft:large_amethyst_bud",
                                            "Properties": {
                                              "facing": "west",
                                              "waterlogged": "false"
                                            }
                                          }
                                        },
                                        {
                                          "weight": 4,
                                          "data": {
                                            "Name": "minecraft:medium_amethyst_bud",
                                            "Properties": {
                                              "facing": "west",
                                              "waterlogged": "false"
                                            }
                                          }
                                        },
                                        {
                                          "weight": 6,
                                          "data": {
                                            "Name": "minecraft:small_amethyst_bud",
                                            "Properties": {
                                              "facing": "west",
                                              "waterlogged": "false"
                                            }
                                          }
                                        }
                                      ]
                                    }
                                  }
                                },
                                "placement": [
                                  {
                                    "type": "minecraft:block_predicate_filter",
                                    "predicate": {
                                      "type": "minecraft:all_of",
                                      "predicates": [
                                        {
                                          "type": "minecraft:matching_blocks",
                                          "offset": [
                                            1,
                                            0,
                                            0
                                          ],
                                          "blocks": [
                                            "minecraft:amethyst_block"
                                          ]
                                        },
                                        {
                                          "type": "minecraft:matching_blocks",
                                          "offset": [
                                            0,
                                            0,
                                            0
                                          ],
                                          "blocks": [
                                            "minecraft:air",
                                            "minecraft:cave_air"
                                          ]
                                        }
                                      ]
                                    }
                                  }
                                ]
                              },
                              {
                                "feature": {
                                  "type": "minecraft:simple_block",
                                  "config": {
                                    "to_place": {
                                      "type": "minecraft:weighted_state_provider",
                                      "entries": [
                                        {
                                          "weight": 1,
                                          "data": {
                                            "Name": "minecraft:amethyst_cluster",
                                            "Properties": {
                                              "facing": "east",
                                              "waterlogged": "false"
                                            }
                                          }
                                        },
                                        {
                                          "weight": 2,
                                          "data": {
                                            "Name": "minecraft:large_amethyst_bud",
                                            "Properties": {
                                              "facing": "east",
                                              "waterlogged": "false"
                                            }
                                          }
                                        },
                                        {
                                          "weight": 4,
                                          "data": {
                                            "Name": "minecraft:medium_amethyst_bud",
                                            "Properties": {
                                              "facing": "east",
                                              "waterlogged": "false"
                                            }
                                          }
                                        },
                                        {
                                          "weight": 6,
                                          "data": {
                                            "Name": "minecraft:small_amethyst_bud",
                                            "Properties": {
                                              "facing": "east",
                                              "waterlogged": "false"
                                            }
                                          }
                                        }
                                      ]
                                    }
                                  }
                                },
                                "placement": [
                                  {
                                    "type": "minecraft:block_predicate_filter",
                                    "predicate": {
                                      "type": "minecraft:all_of",
                                      "predicates": [
                                        {
                                          "type": "minecraft:matching_blocks",
                                          "offset": [
                                            -1,
                                            0,
                                            0
                                          ],
                                          "blocks": [
                                            "minecraft:amethyst_block"
                                          ]
                                        },
                                        {
                                          "type": "minecraft:matching_blocks",
                                          "offset": [
                                            0,
                                            0,
                                            0
                                          ],
                                          "blocks": [
                                            "minecraft:air",
                                            "minecraft:cave_air"
                                          ]
                                        }
                                      ]
                                    }
                                  }
                                ]
                              }
                            ]
                          }
                        },
                        "placement": []
                      }
                    }
                  },
                  "placement": [
                    {
                      "type": "minecraft:block_predicate_filter",
                      "predicate": {
                        "type": "minecraft:matching_blocks",
                        "blocks": [
                          "minecraft:amethyst_block",
                          "minecraft:cave_air"
                        ]
                      }
                    }
                  ]
                }
              },
              {
                "chance": 0.495,
                "feature": {
                  "feature": {
                    "type": "minecraft:simple_block",
                    "config": {
                      "to_place": {
                        "type": "minecraft:noise_provider",
                        "seed": 999,
                        "noise": {
                          "firstOctave": -3,
                          "amplitudes": [
                            1,
                            0.75,
                            0.85
                          ]
                        },
                        "scale": 1,
                        "states": [
                          {
                            "Name": "minecraft:air"
                          },
                          {
                            "Name": "minecraft:air"
                          },
                          {
                            "Name": "minecraft:air"
                          },
                          {
                            "Name": "minecraft:air"
                          },
                          {
                            "Name": "minecraft:air"
                          },
                          {
                            "Name": "minecraft:air"
                          },
                          {
                            "Name": "minecraft:air"
                          },
                          {
                            "Name": "minecraft:air"
                          },
                          {
                            "Name": "minecraft:air"
                          },
                          {
                            "Name": "minecraft:cave_air"
                          },
                          {
                            "Name": "minecraft:cave_air"
                          },
                          {
                            "Name": "minecraft:cave_air"
                          },
                          {
                            "Name": "minecraft:air"
                          },
                          {
                            "Name": "minecraft:air"
                          },
                          {
                            "Name": "minecraft:air"
                          },
                          {
                            "Name": "minecraft:air"
                          },
                          {
                            "Name": "minecraft:air"
                          },
                          {
                            "Name": "minecraft:air"
                          },
                          {
                            "Name": "minecraft:air"
                          },
                          {
                            "Name": "minecraft:air"
                          },
                          {
                            "Name": "minecraft:air"
                          }
                        ]
                      }
                    }
                  },
                  "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:cave_air",
                                  "minecraft:amethyst_block",
                                  "minecraft:calcite"
                                ]
                              },
                              {
                                "type": "minecraft:matching_blocks",
                                "offset": [
                                  0,
                                  0,
                                  1
                                ],
                                "blocks": [
                                  "minecraft:cave_air",
                                  "minecraft:amethyst_block",
                                  "minecraft:calcite"
                                ]
                              },
                              {
                                "type": "minecraft:matching_blocks",
                                "offset": [
                                  -1,
                                  0,
                                  0
                                ],
                                "blocks": [
                                  "minecraft:cave_air",
                                  "minecraft:amethyst_block",
                                  "minecraft:calcite"
                                ]
                              },
                              {
                                "type": "minecraft:matching_blocks",
                                "offset": [
                                  0,
                                  0,
                                  -1
                                ],
                                "blocks": [
                                  "minecraft:cave_air",
                                  "minecraft:amethyst_block",
                                  "minecraft:calcite"
                                ]
                              },
                              {
                                "type": "minecraft:matching_blocks",
                                "offset": [
                                  0,
                                  1,
                                  0
                                ],
                                "blocks": [
                                  "minecraft:cave_air",
                                  "minecraft:amethyst_block",
                                  "minecraft:calcite"
                                ]
                              },
                              {
                                "type": "minecraft:matching_blocks",
                                "offset": [
                                  0,
                                  -1,
                                  0
                                ],
                                "blocks": [
                                  "minecraft:cave_air",
                                  "minecraft:amethyst_block",
                                  "minecraft:calcite"
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    }
                  ]
                }
              }
            ],
            "default": {
              "feature": {
                "type": "minecraft:simple_block",
                "config": {
                  "to_place": {
                    "type": "minecraft:noise_provider",
                    "seed": 9,
                    "noise": {
                      "firstOctave": -3,
                      "amplitudes": [
                        1,
                        0.75,
                        0.85
                      ]
                    },
                    "scale": 1,
                    "states": [
                      {
                        "Name": "minecraft:cave_air"
                      },
                      {
                        "Name": "minecraft:cave_air"
                      },
                      {
                        "Name": "minecraft:cave_air"
                      },
                      {
                        "Name": "minecraft:cave_air"
                      },
                      {
                        "Name": "minecraft:cave_air"
                      },
                      {
                        "Name": "minecraft:cave_air"
                      },
                      {
                        "Name": "minecraft:cave_air"
                      },
                      {
                        "Name": "minecraft:cave_air"
                      },
                      {
                        "Name": "minecraft:amethyst_block"
                      },
                      {
                        "Name": "minecraft:amethyst_block"
                      },
                      {
                        "Name": "minecraft:amethyst_block"
                      },
                      {
                        "Name": "minecraft:cave_air"
                      },
                      {
                        "Name": "minecraft:cave_air"
                      },
                      {
                        "Name": "minecraft:cave_air"
                      },
                      {
                        "Name": "minecraft:cave_air"
                      },
                      {
                        "Name": "minecraft:cave_air"
                      },
                      {
                        "Name": "minecraft:cave_air"
                      },
                      {
                        "Name": "minecraft:cave_air"
                      },
                      {
                        "Name": "minecraft:cave_air"
                      }
                    ]
                  }
                }
              },
              "placement": [
                {
                  "type": "minecraft:block_predicate_filter",
                  "predicate": {
                    "type": "minecraft:all_of",
                    "predicates": [
                      {
                        "type": "minecraft:matching_blocks",
                        "offset": [
                          0,
                          0,
                          0
                        ],
                        "blocks": [
                          "minecraft:cave_air"
                        ]
                      },
                      {
                        "type": "minecraft:any_of",
                        "predicates": [
                          {
                            "type": "minecraft:matching_blocks",
                            "offset": [
                              1,
                              0,
                              0
                            ],
                            "blocks": [
                              "minecraft:amethyst_block",
                              "minecraft:tuff",
                              "minecraft:calcite"
                            ]
                          },
                          {
                            "type": "minecraft:matching_blocks",
                            "offset": [
                              0,
                              0,
                              1
                            ],
                            "blocks": [
                              "minecraft:amethyst_block",
                              "minecraft:tuff",
                              "minecraft:calcite"
                            ]
                          },
                          {
                            "type": "minecraft:matching_blocks",
                            "offset": [
                              -1,
                              0,
                              0
                            ],
                            "blocks": [
                              "minecraft:amethyst_block",
                              "minecraft:tuff",
                              "minecraft:calcite"
                            ]
                          },
                          {
                            "type": "minecraft:matching_blocks",
                            "offset": [
                              0,
                              0,
                              -1
                            ],
                            "blocks": [
                              "minecraft:amethyst_block",
                              "minecraft:tuff",
                              "minecraft:calcite"
                            ]
                          },
                          {
                            "type": "minecraft:matching_blocks",
                            "offset": [
                              0,
                              1,
                              0
                            ],
                            "blocks": [
                              "minecraft:amethyst_block",
                              "minecraft:tuff",
                              "minecraft:calcite"
                            ]
                          },
                          {
                            "type": "minecraft:matching_blocks",
                            "offset": [
                              0,
                              -1,
                              0
                            ],
                            "blocks": [
                              "minecraft:amethyst_block",
                              "minecraft:tuff",
                              "minecraft:calcite"
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              ]
            }
          }
        },
        "placement": []
      }
    }
  },
  "placement": [
    {
      "type": "minecraft:count",
      "count": 32
    },
    {
      "type": "minecraft:count",
      "count": 255
    },
    {
      "type": "minecraft:in_square"
    },
    {
      "type": "minecraft:random_offset",
      "xz_spread": {
        "type": "minecraft:uniform",
        "value": {
          "min_inclusive": -7,
          "max_inclusive": 7
        }
      },
      "y_spread": 0
    },
    {
      "type": "minecraft:height_range",
      "height": {
        "type": "minecraft:uniform",
        "min_inclusive": {
          "absolute": -55
        },
        "max_inclusive": {
          "absolute": 0
        }
      }
    },
    {
      "type": "minecraft:block_predicate_filter",
      "predicate": {
        "type": "minecraft:all_of",
        "predicates": [
          {
            "type": "minecraft:matching_blocks",
            "blocks": [
              "minecraft:air"
            ]
          },
          {
            "type": "minecraft:any_of",
            "predicates": [
              {
                "type": "minecraft:matching_blocks",
                "offset": [
                  1,
                  0,
                  0
                ],
                "blocks": [
                  "minecraft:amethyst_block",
                  "minecraft:calcite"
                ]
              },
              {
                "type": "minecraft:matching_blocks",
                "offset": [
                  0,
                  0,
                  1
                ],
                "blocks": [
                  "minecraft:amethyst_block",
                  "minecraft:calcite"
                ]
              },
              {
                "type": "minecraft:matching_blocks",
                "offset": [
                  -1,
                  0,
                  0
                ],
                "blocks": [
                  "minecraft:amethyst_block",
                  "minecraft:calcite"
                ]
              },
              {
                "type": "minecraft:matching_blocks",
                "offset": [
                  0,
                  0,
                  -1
                ],
                "blocks": [
                  "minecraft:amethyst_block",
                  "minecraft:calcite"
                ]
              },
              {
                "type": "minecraft:matching_blocks",
                "offset": [
                  0,
                  1,
                  0
                ],
                "blocks": [
                  "minecraft:amethyst_block",
                  "minecraft:calcite"
                ]
              },
              {
                "type": "minecraft:matching_blocks",
                "offset": [
                  0,
                  -1,
                  0
                ],
                "blocks": [
                  "minecraft:amethyst_block",
                  "minecraft:calcite"
                ]
              }
            ]
          }
        ]
      }
    },
    {
      "type": "minecraft:biome"
    }
  ]
}
