{
  "feature": {
    "type": "minecraft:tree",
    "config": {
      "ignore_vines": true,
      "force_dirt": true,
      "minimum_size": {
        "type": "minecraft:two_layers_feature_size",
        "min_clipped_height": 2,
        "limit": 0,
        "lower_size": 2,
        "upper_size": 0
      },
      "dirt_provider": {
        "type": "minecraft:simple_state_provider",
        "state": {
          "Name": "minecraft:dirt"
        }
      },
      "trunk_provider": {
        "type": "minecraft:simple_state_provider",
        "state": {
          "Name": "minecraft:spruce_log",
          "Properties": {
            "axis": "y"
          }
        }
      },
      "foliage_provider": {
        "type": "minecraft:simple_state_provider",
        "state": {
          "Name": "minecraft:spruce_leaves",
          "Properties": {
            "distance": "7",
            "persistent": "false"
          }
        }
      },
      "trunk_placer": {
        "type": "minecraft:straight_trunk_placer",
        "base_height": 10,
        "height_rand_a": 4,
        "height_rand_b": 8
      },
      "foliage_placer": {
        "type": "minecraft:pine_foliage_placer",
        "radius": {
          "type": "minecraft:uniform",
          "value": {
            "min_inclusive": 4,
            "max_inclusive": 6
          }
        },
        "offset": 1,
        "height": 4
      },
      "decorators": []
    }
  },
  "placement": [
    {
      "type": "minecraft:count",
      "count": {
        "type": "minecraft:uniform",
        "value": {
          "min_inclusive": 4,
          "max_inclusive": 5
        }
      }
    },
    {
      "type": "minecraft:in_square"
    },
    {
      "type": "minecraft:heightmap",
      "heightmap": "MOTION_BLOCKING"
    },
    {
      "type": "minecraft:environment_scan",
      "direction_of_search": "down",
      "max_steps": 1,
      "target_condition": {
        "type": "minecraft:all_of",
        "predicates": [
          {
            "type": "minecraft:replaceable"
          },
          {
            "type": "minecraft:any_of",
            "predicates": [
              {
                "type": "minecraft:would_survive",
                "state": {
                  "Name": "minecraft:fern"
                }
              },
              {
                "type": "minecraft:matching_blocks",
                "offset": [
                  0,
                  -1,
                  0
                ],
                "blocks": [
                  "minecraft:snow_block",
                  "minecraft:powder_snow"
                ]
              }
            ]
          }
        ]
      }
    },
    {
      "type": "minecraft:noise_based_count",
      "noise_to_count_ratio": -1,
      "noise_factor": 89,
      "noise_offset": -0.25
    },
    {
      "type": "minecraft:biome"
    },
    {
      "type": "minecraft:count",
      "count": {
        "type": "minecraft:uniform",
        "value": {
          "min_inclusive": 1,
          "max_inclusive": 4
        }
      }
    }
  ]
}
