{
  "format_version": "1.8.0",
  "minecraft:spawn_rules": {
    "description": {
      "identifier": "minecraft:wolf",
      "population_control": "animal"
    },
    "conditions": [
      {
        // Pale Wolf: every non-cold Taiga, except Old Growth Pine Taiga and Old Growth Spruce Taiga.
        "minecraft:spawns_on_surface": {},
        "minecraft:spawns_on_block_filter": "minecraft:grass_block",
        "minecraft:brightness_filter": {
          "min": 7,
          "max": 15,
          "adjust_for_weather": false
        },
        "minecraft:weight": {
          "default": 8
        },
        "minecraft:herd": {
          "min_size": 4,
          "max_size": 4
        },
        "minecraft:biome_filter": {
          "all_of": [
            { "test": "has_biome_tag", "value": "taiga" },
            { "test": "has_biome_tag", "operator": "not", "value": "cold" },
            { "test": "has_biome_tag", "operator": "not", "value": "mega" },
            { "test": "has_biome_tag", "operator": "not", "value": "mutated" }
          ]
        }
      },
      {
        // Ashen Wolf: every cold Taiga.
        "minecraft:spawns_on_surface": {},
        "minecraft:spawns_on_block_filter": [
          "minecraft:grass_block",
          "minecraft:snow",
          "minecraft:snow_layer"
        ],
        "minecraft:brightness_filter": {
          "min": 7,
          "max": 15,
          "adjust_for_weather": false
        },
        "minecraft:weight": {
          "default": 8
        },
        "minecraft:herd": {
          "min_size": 4,
          "max_size": 4
        },
        "minecraft:biome_filter": {
          "all_of": [
            { "test": "has_biome_tag", "value": "taiga" },
            { "test": "has_biome_tag", "value": "cold" }
          ]
        }
      },
      {
        // Black Wolf: Old Growth Pine Taiga only.
        "minecraft:spawns_on_surface": {},
        "minecraft:spawns_on_block_filter": [
          { "name": "minecraft:podzol" },
          { "name": "minecraft:grass_block" },
          { "name": "minecraft:coarse_dirt" }
        ],
        "minecraft:brightness_filter": {
          "min": 7,
          "max": 15,
          "adjust_for_weather": false
        },
        "minecraft:weight": {
          "default": 8
        },
        "minecraft:herd": {
          "min_size": 2,
          "max_size": 4
        },
        "minecraft:biome_filter": {
          "all_of": [
            { "test": "has_biome_tag", "value": "mega" },
            { "test": "has_biome_tag", "value": "taiga" },
            { "test": "has_biome_tag", "value": "forest" },
            { "test": "has_biome_tag", "operator": "not", "value": "mutated" }
          ]
        }
      },
      {
        // Chestnut Wolf: Old Growth Spruce Taiga only.
        "minecraft:spawns_on_surface": {},
        "minecraft:spawns_on_block_filter": [
          { "name": "minecraft:podzol" },
          { "name": "minecraft:grass_block" },
          { "name": "minecraft:coarse_dirt" }
        ],
        "minecraft:brightness_filter": {
          "min": 7,
          "max": 15,
          "adjust_for_weather": false
        },
        "minecraft:weight": {
          "default": 8
        },
        "minecraft:herd": {
          "min_size": 4,
          "max_size": 4
        },
        "minecraft:biome_filter": {
          "all_of": [
            { "test": "has_biome_tag", "value": "mega" },
            { "test": "has_biome_tag", "value": "taiga" },
            { "test": "has_biome_tag", "value": "forest" },
            { "test": "has_biome_tag", "value": "mutated" }
          ]
        }
      },
      {
        // Rusty Wolf: Jungle Edge only.
        "minecraft:spawns_on_surface": {},
        "minecraft:spawns_on_block_filter": "minecraft:grass_block",
        "minecraft:brightness_filter": {
          "min": 7,
          "max": 15,
          "adjust_for_weather": false
        },
        "minecraft:weight": {
          "default": 8
        },
        "minecraft:herd": {
          "min_size": 2,
          "max_size": 4
        },
        "minecraft:biome_filter": {
          "all_of": [
            { "test": "has_biome_tag", "value": "edge" },
            { "test": "has_biome_tag", "value": "jungle" }
          ]
        }
      },
      {
        // Snowy Wolf: Grove only.
        "minecraft:spawns_on_surface": {},
        "minecraft:spawns_on_block_filter": [
          "minecraft:grass_block",
          "minecraft:snow",
          "minecraft:snow_layer"
        ],
        "minecraft:brightness_filter": {
          "min": 7,
          "max": 15,
          "adjust_for_weather": false
        },
        "minecraft:weight": {
          "default": 1
        },
        "minecraft:herd": {
          "min_size": 1,
          "max_size": 1
        },
        "minecraft:biome_filter": {
          "test": "has_biome_tag", "value": "grove"
        }
      },
      {
        // Spotted Wolf: Savanna Plateau only.
        "minecraft:spawns_on_surface": {},
        "minecraft:spawns_on_block_filter": "minecraft:grass_block",
        "minecraft:brightness_filter": {
          "min": 7,
          "max": 15,
          "adjust_for_weather": false
        },
        "minecraft:weight": {
          "default": 8
        },
        "minecraft:herd": {
          "min_size": 4,
          "max_size": 8
        },
        "minecraft:biome_filter": {
          "all_of": [
            { "test": "has_biome_tag", "value": "savanna" },
            { "test": "has_biome_tag", "value": "plateau" }
          ]
        }
      },
      {
        // Striped Wolf: Wooded Badlands only.
        "minecraft:spawns_on_surface": {},
        "minecraft:spawns_on_block_filter": [
          { "name": "minecraft:grass_block" },
          { "name": "minecraft:coarse_dirt" }
        ],
        "minecraft:brightness_filter": {
          "min": 7,
          "max": 15,
          "adjust_for_weather": false
        },
        "minecraft:weight": {
          "default": 2,
          "rarity": 2 // Close enough to Java's 40% chance.
        },
        "minecraft:herd": {
          "min_size": 4,
          "max_size": 8
        },
        "minecraft:biome_filter": {
          "all_of": [
            { "test": "has_biome_tag", "value": "mesa" },
            { "test": "has_biome_tag", "value": "plateau" },
            { "test": "has_biome_tag", "value": "stone" }
          ]
        }
      },
      {
        // Woods Wolf: Forest only.
        "minecraft:spawns_on_surface": {},
        "minecraft:spawns_on_block_filter": "minecraft:grass_block",
        "minecraft:brightness_filter": {
          "min": 7,
          "max": 15,
          "adjust_for_weather": false
        },
        "minecraft:weight": {
          "default": 5
        },
        "minecraft:herd": {
          "min_size": 4,
          "max_size": 4
        },
        "minecraft:biome_filter": {
          "all_of": [
            { "test": "has_biome_tag", "value": "forest" },
            { "test": "has_biome_tag", "operator": "not", "value": "birch" },
            { "test": "has_biome_tag", "operator": "not", "value": "taiga" },
            { "test": "has_biome_tag", "operator": "not", "value": "roofed" },
            { "test": "has_biome_tag", "operator": "not", "value": "mutated" },
            { "test": "has_biome_tag", "operator": "not", "value": "mountain" }
          ]
        }
      }
    ]
  }
}
