{
  "format_version": "1.8.0",
  "minecraft:spawn_rules": {
    "description": {
      "identifier": "mutant:mutant_enderman",
      "population_control": "monster"
    },
    "conditions": [
      {
        "minecraft:spawns_on_surface": {},
        "minecraft:spawns_underground": {},
        "minecraft:brightness_filter": {
          "min": 0,
          "max": 7,
          "adjust_for_weather": true
        },
        "minecraft:difficulty_filter": {
          "min": "easy",
          "max": "hard"
        },
        "minecraft:weight": {
          "default": 4
        },
        "minecraft:herd": {
          "min_size": 1,
          "max_size": 1
        },
        "minecraft:biome_filter": {
          "test": "has_biome_tag", "operator": "==", "value": "monster"
        }
      },
      {
        "minecraft:spawns_underground": {},
        "minecraft:brightness_filter": {
          "min": 0,
          "max": 7,
          "adjust_for_weather": true
        },
        "minecraft:difficulty_filter": {
          "min": "easy",
          "max": "hard"
        },
        "minecraft:weight": {
          "default": 6
        },
        "minecraft:herd": {
          "min_size": 1,
          "max_size": 1
        },
        "minecraft:biome_filter": {
          "all_of": [
            {"test": "has_biome_tag", "operator": "==", "value": "nether"},
            {"test": "has_biome_tag", "operator": "==", "value": "spawn_endermen"}
          ]
        }
      },
      {
        "minecraft:spawns_underground": {
        },

        "minecraft:difficulty_filter": {
          "min": "easy",
          "max": "hard"
        },

        "minecraft:weight": {
          "default": 3
        },
        
        "minecraft:herd": {
          "min_size": 1,
          "max_size": 1
        },

        "minecraft:biome_filter": {
            "test": "has_biome_tag", "operator": "==", "value": "warped_forest"
        }
      },
      {
        "minecraft:spawns_on_surface": {},
        "minecraft:weight": {
          "default": 4
        },
        "minecraft:herd": {
          "min_size": 2,
          "max_size": 2
        },
        "minecraft:biome_filter": [
          {
            "test": "has_biome_tag", "operator": "==", "value": "the_end"
          }
        ]
      }
    ]
  }
}