{
  "feature": "terralith:highlands/temperate/pile_oak",
  "placement": [
    {
      "type": "minecraft:count",
      "count": 2
    },
    {
      "type": "minecraft:in_square"
    },
    {
      "type": "minecraft:heightmap",
      "heightmap": "WORLD_SURFACE_WG"
    },
    {
      "type": "minecraft:environment_scan",
      "direction_of_search": "up",
      "max_steps": 32,
      "target_condition": {
        "type": "minecraft:matching_blocks",
        "blocks": [
          "minecraft:oak_leaves"
        ],
        "offset": [
          0,
          1,
          0
        ]
      }
    },
    {
      "type": "minecraft:environment_scan",
      "allowed_search_condition": {
        "type": "minecraft:matching_blocks",
        "blocks": [
          "minecraft:air"
        ]
      },
      "direction_of_search": "down",
      "max_steps": 32,
      "target_condition": {
        "type": "minecraft:solid"
      }
    },
    {
      "type": "minecraft:biome"
    }
  ]
}