{
  "feature": "minecraft:spruce",
  "placement": [
    {
      "type": "minecraft:environment_scan",
      "direction_of_search": "up",
      "max_steps": 8,
      "target_condition": {
        "type": "minecraft:not",
        "predicate": {
          "type": "minecraft:matching_blocks",
          "blocks": "minecraft:powder_snow"
        }
      }
    },
    {
      "type": "minecraft:block_predicate_filter",
      "predicate": {
        "type": "minecraft:matching_blocks",
        "blocks": [
          "minecraft:snow_block",
          "minecraft:powder_snow"
        ],
        "offset": [
          0,
          -1,
          0
        ]
      }
    }
  ]
}