{
  "format_version": "1.8.0",
  "minecraft:spawn_rules": {
    "description": {
      "identifier": "minecraft:armadillo",
      "population_control": "animal"
    },
    "conditions": [
      {
        "minecraft:spawns_on_surface": {},
        "minecraft:spawns_on_block_filter": [
          { "name": "minecraft:grass_block" },
          { "name": "minecraft:sand", "states": { "sand_type": "red" } },
          { "name": "minecraft:dirt", "states": { "dirt_type": "coarse" } },
          // Every Terracotta block found in Mesa.
          { "name": "minecraft:brown_terracotta" },
          { "name": "minecraft:hardened_clay" },
          { "name": "minecraft:orange_terracotta" },
          { "name": "minecraft:light_gray_terracotta" },
          { "name": "minecraft:red_terracotta" },
          { "name": "minecraft:white_terracotta" },
          { "name": "minecraft:yellow_terracotta" }
        ],
        "minecraft:brightness_filter": {
          "min": 7,
          "max": 15,
          "adjust_for_weather": false
        },
        "minecraft:weight": {
          "default": 10
        },
        "minecraft:herd": {
          "min_size": 2,
          "max_size": 3
        },
        "minecraft:biome_filter": {
          "test": "has_biome_tag", "value": "savanna"
        }
      },
      {
        "minecraft:spawns_on_surface": {},
        "minecraft:spawns_on_block_filter": [
          { "name": "minecraft:grass_block" },
          { "name": "minecraft:sand", "states": { "sand_type": "red" } },
          { "name": "minecraft:dirt", "states": { "dirt_type": "coarse" } },
          // Every Terracotta block found in Mesa.
          { "name": "minecraft:brown_terracotta" },
          { "name": "minecraft:hardened_clay" },
          { "name": "minecraft:orange_terracotta" },
          { "name": "minecraft:light_gray_terracotta" },
          { "name": "minecraft:red_terracotta" },
          { "name": "minecraft:white_terracotta" },
          { "name": "minecraft:yellow_terracotta" }
        ],
        "minecraft:brightness_filter": {
          "min": 7,
          "max": 15,
          "adjust_for_weather": false
        },
        "minecraft:weight": {
          "default": 6,
          "rarity": 3 // Close enough to Java's 30% chance.
        },
        "minecraft:herd": {
          "min_size": 1,
          "max_size": 2
        },
        "minecraft:biome_filter": {
          "all_of": [
            { "test": "has_biome_tag", "value": "mesa" },
            { "test": "has_biome_tag", "operator": "not", "value": "plateau" }
          ]
        }
      },
      {
        "minecraft:spawns_on_surface": {},
        "minecraft:spawns_on_block_filter": [
          { "name": "minecraft:grass_block" },
          { "name": "minecraft:sand", "states": { "sand_type": "red" } },
          { "name": "minecraft:dirt", "states": { "dirt_type": "coarse" } },
          // Every Terracotta block found in Mesa.
          { "name": "minecraft:brown_terracotta" },
          { "name": "minecraft:hardened_clay" },
          { "name": "minecraft:orange_terracotta" },
          { "name": "minecraft:light_gray_terracotta" },
          { "name": "minecraft:red_terracotta" },
          { "name": "minecraft:white_terracotta" },
          { "name": "minecraft:yellow_terracotta" }
        ],
        "minecraft:brightness_filter": {
          "min": 7,
          "max": 15,
          "adjust_for_weather": false
        },
        "minecraft:weight": {
          "default": 6,
          "rarity": 2 // Close enough to Java's 40% chance.
        },
        "minecraft:herd": {
          "min_size": 1,
          "max_size": 2
        },
        "minecraft:biome_filter": {
          "all_of": [
            { "test": "has_biome_tag", "value": "mesa" },
            { "test": "has_biome_tag", "value": "plateau" }
          ]
        }
      }
    ]
  }
}
