{
  "feature": {
    "type": "minecraft:simple_block",
    "config": {
      "to_place": {
        "type": "minecraft:simple_state_provider",
        "state": {
          "Name": "minecraft:stone"
        }
      }
    }
  },
  "placement": [
    {
      "type": "minecraft:count",
      "count": 256
    },
    {
      "type": "minecraft:count",
      "count": 15
    },
    {
      "type": "minecraft:in_square"
    },
    {
      "type": "minecraft:heightmap",
      "heightmap": "WORLD_SURFACE_WG"
    },
    {
      "type": "minecraft:environment_scan",
      "direction_of_search": "down",
      "max_steps": 5,
      "target_condition": {
        "type": "minecraft:all_of",
        "predicates": [
          {
            "type": "minecraft:matching_blocks",
            "offset": [
              0,
              0,
              0
            ],
            "blocks": [
              "minecraft:mycelium",
              "minecraft:podzol",
              "minecraft:coarse_dirt",
              "minecraft:rooted_dirt",
              "minecraft:dirt"
            ]
          },
          {
            "type": "minecraft:not",
            "predicate": {
              "type": "minecraft:all_of",
              "predicates": [
                {
                  "type": "minecraft:matching_blocks",
                  "offset": [
                    3,
                    -16,
                    0
                  ],
                  "blocks": [
                    "minecraft:stone"
                  ]
                }
              ]
            }
          },
          {
            "type": "minecraft:any_of",
            "predicates": [
              {
                "type": "minecraft:all_of",
                "predicates": [
                  {
                    "type": "minecraft:matching_blocks",
                    "offset": [
                      0,
                      0,
                      -1
                    ],
                    "blocks": [
                      "minecraft:stone"
                    ]
                  },
                  {
                    "type": "minecraft:matching_blocks",
                    "offset": [
                      0,
                      0,
                      1
                    ],
                    "blocks": [
                      "minecraft:air"
                    ]
                  },
                  {
                    "type": "minecraft:matching_blocks",
                    "offset": [
                      0,
                      0,
                      2
                    ],
                    "blocks": [
                      "minecraft:air"
                    ]
                  },
                  {
                    "type": "minecraft:matching_blocks",
                    "offset": [
                      0,
                      0,
                      3
                    ],
                    "blocks": [
                      "minecraft:air"
                    ]
                  },
                  {
                    "type": "minecraft:matching_blocks",
                    "offset": [
                      0,
                      0,
                      4
                    ],
                    "blocks": [
                      "minecraft:air"
                    ]
                  }
                ]
              },

              {
                "type": "minecraft:all_of",
                "predicates": [
                  {
                    "type": "minecraft:matching_blocks",
                    "offset": [
                      0,
                      0,
                      1
                    ],
                    "blocks": [
                      "minecraft:stone"
                    ]
                  },
                  {
                    "type": "minecraft:matching_blocks",
                    "offset": [
                      0,
                      0,
                      -1
                    ],
                    "blocks": [
                      "minecraft:air"
                    ]
                  },
                  {
                    "type": "minecraft:matching_blocks",
                    "offset": [
                      0,
                      0,
                      -2
                    ],
                    "blocks": [
                      "minecraft:air"
                    ]
                  },
                  {
                    "type": "minecraft:matching_blocks",
                    "offset": [
                      0,
                      0,
                      -3
                    ],
                    "blocks": [
                      "minecraft:air"
                    ]
                  },
                  {
                    "type": "minecraft:matching_blocks",
                    "offset": [
                      0,
                      0,
                      -4
                    ],
                    "blocks": [
                      "minecraft:air"
                    ]
                  }
                ]
              },

              {
                "type": "minecraft:all_of",
                "predicates": [
                  {
                    "type": "minecraft:matching_blocks",
                    "offset": [
                      -1,
                      0,
                      0
                    ],
                    "blocks": [
                      "minecraft:stone"
                    ]
                  },
                  {
                    "type": "minecraft:matching_blocks",
                    "offset": [
                      1,
                      0,
                      0
                    ],
                    "blocks": [
                      "minecraft:air"
                    ]
                  },
                  {
                    "type": "minecraft:matching_blocks",
                    "offset": [
                      2,
                      0,
                      0
                    ],
                    "blocks": [
                      "minecraft:air"
                    ]
                  },
                  {
                    "type": "minecraft:matching_blocks",
                    "offset": [
                      3,
                      0,
                      0
                    ],
                    "blocks": [
                      "minecraft:air"
                    ]
                  },
                  {
                    "type": "minecraft:matching_blocks",
                    "offset": [
                      4,
                      0,
                      0
                    ],
                    "blocks": [
                      "minecraft:air"
                    ]
                  }
                ]
              },

              {
                "type": "minecraft:all_of",
                "predicates": [
                  {
                    "type": "minecraft:matching_blocks",
                    "offset": [
                      1,
                      0,
                      0
                    ],
                    "blocks": [
                      "minecraft:stone"
                    ]
                  },
                  {
                    "type": "minecraft:matching_blocks",
                    "offset": [
                      -1,
                      0,
                      0
                    ],
                    "blocks": [
                      "minecraft:air"
                    ]
                  },
                  {
                    "type": "minecraft:matching_blocks",
                    "offset": [
                      -2,
                      0,
                      0
                    ],
                    "blocks": [
                      "minecraft:air"
                    ]
                  },
                  {
                    "type": "minecraft:matching_blocks",
                    "offset": [
                      -3,
                      0,
                      0
                    ],
                    "blocks": [
                      "minecraft:air"
                    ]
                  },
                  {
                    "type": "minecraft:matching_blocks",
                    "offset": [
                      -4,
                      0,
                      0
                    ],
                    "blocks": [
                      "minecraft:air"
                    ]
                  }
                ]
              }
            ]
          }
        ]
      }
    },
    {
      "type": "minecraft:biome"
    }
  ]
}
