{
  "feature": "terralith:highlands/forest/mid/trees_mid",
  "placement": [
    {
      "type": "minecraft:count",
      "count": {
        "type": "minecraft:weighted_list",
        "distribution": [
          {
            "data": 4,
            "weight": 90
          },
          {
            "data": 5,
            "weight": 10
          }
        ]
      }
    },
    {
      "type": "minecraft:in_square"
    },
    {
      "type": "minecraft:heightmap",
      "heightmap": "WORLD_SURFACE"
    },
    {
      "type": "minecraft:noise_based_count",
      "noise_factor": 215,
      "noise_offset": 0.5,
      "noise_to_count_ratio": 1
    },
    {
      "type": "minecraft:noise_based_count",
      "noise_factor": 215,
      "noise_offset": 0,
      "noise_to_count_ratio": -1
    },
    {
      "type": "minecraft:block_predicate_filter",
      "predicate": {
        "type": "minecraft:all_of",
        "predicates": [
          {
            "type": "minecraft:any_of",
            "predicates": [
              {
                "type": "minecraft:would_survive",
                "state": {
                  "Name": "minecraft:fern"
                }
              },
              {
                "type": "minecraft:matching_blocks",
                "blocks": [
                  "minecraft:snow_block",
                  "minecraft:powder_snow"
                ],
                "offset": [
                  0,
                  -1,
                  0
                ]
              }
            ]
          },
          {
            "type": "minecraft:replaceable"
          }
        ]
      }
    },
    {
      "type": "minecraft:biome"
    }
  ]
}