{
  "type": "minecraft:random_patch",
  "config": {
    "tries": 7,
    "xz_spread": 7,
    "y_spread": 25,
    "feature": {
      "feature": {
        "type": "minecraft:simple_block",
        "config": {
          "to_place": {
            "type": "minecraft:simple_state_provider",
            "state": {
              "Name": "minecraft:snow"
            }
          }
        }
      },
      "placement": [
        {
          "type": "environment_scan",
          "direction_of_search": "down",
          "max_steps": 16,
          "target_condition": {
            "type": "minecraft:all_of",
            "predicates": [
              {
                "type": "minecraft:matching_blocks",
                "offset": [
                  0,
                  0,
                  0
                ],
                "blocks": [
                  "minecraft:air"
                ]
              },
              {
                "type": "minecraft:matching_blocks",
                "offset": [
                  0,
                  -1,
                  0
                ],
                "blocks": [
                  "minecraft:spruce_leaves",
                  "minecraft:grass_block"
                ]
              }
            ]
          }
        }
      ]
    }
  }
}
