{
  "format_version": "1.16.0",
  "minecraft:entity": {
    "description": {
      "identifier": "legacy:enchanter_illager",
      "is_spawnable": true,
      "is_summonable": true,
      "is_experimental": false,
      "runtime_identifier": "minecraft:evocation_illager"
    },
    "component_groups": {
      "minecraft:raid_configuration": {
        "minecraft:dweller": {
          "dwelling_type": "village",
          "dweller_role": "hostile",
          "update_interval_base": 60,
          "update_interval_variant": 40,
          "can_find_poi": false,
          "can_migrate": false,
          "first_founding_reward": 0
        },
        "minecraft:behavior.move_to_village": {
          "priority": 6,
          "speed_multiplier": 0.6
        },
        "minecraft:navigation.walk": {
          "can_path_over_water": true,
          "avoid_water": true
        },
        "minecraft:ambient_sound_interval": {
          "value": 2.0,
          "range": 4.0,
          "event_name": "ambient.in.raid"
        }
      },
      "regeneration": {
        "minecraft:spell_effects": {
          "add_effects": [
            {
              "effect": "regeneration",
              "amplifier": 2,
              "visible": 1,
              "ambient": false,
              "duration": 30
            }
          ]
        }
      },
      "desert_illager": {
        "minecraft:mark_variant": {
          "value": 1
        }
      },
      "jungle_illager": {
        "minecraft:mark_variant": {
          "value": 2
        }
      },
      "savanna_illager": {
        "minecraft:mark_variant": {
          "value": 3
        }
      },
      "snow_illager": {
        "minecraft:mark_variant": {
          "value": 4
        }
      },
      "swamp_illager": {
        "minecraft:mark_variant": {
          "value": 5
        }
      },
      "taiga_illager": {
        "minecraft:mark_variant": {
          "value": 6
        }
      }
    },
    "components": {
      "minecraft:type_family": {
        "family": [
          "evocation_illager",
          "illager"
        ]
      },
      "minecraft:breathable": {
        "totalSupply": 15,
        "suffocateTime": 0
      },
      "minecraft:nameable": {
        "alwaysShow": false,
        "allowNameTagRenaming": false
      },
      "minecraft:loot": {
        "table": "loot_tables/entities/evocation_illager.json"
      },
      "minecraft:health": {
        "value": 20,
        "max": 20
      },
      "minecraft:collision_box": {
        "height": 1.9,
        "width": 0.6
      },
      "minecraft:movement": {
        "value": 0.5
      },
      "minecraft:navigation.walk": {
        "can_path_over_water": true,
        "can_pass_doors": true,
        "can_open_doors": true,
        "avoid_water": true
      },
      "minecraft:can_join_raid": {
      },
      "minecraft:annotation.open_door": {
      },
      "minecraft:movement.basic": {},
      "minecraft:jump.static": {},
      "minecraft:can_climb": {},
      "minecraft:behavior.float": {
        "priority": 0
      },
      "minecraft:damage_sensor": {
        "triggers": [
          {
            "on_damage": {
              "filters": [
                {
                  "test": "is_family",
                  "subject": "other",
                  "value": "illager"
                }
              ]
            },
            "deals_damage": false
          }
        ]
      },
      "minecraft:behavior.summon_entity": {
        "priority": 2,
        "summon_choices": [
          {
            "weight": 3,
            "cooldown_time": 12.0,
            "cast_duration": 2.64,
            "particle_color": "#F82423",
            "start_sound_event": "cast.spell",
            "sequence": [
              {
                "shape": "circle",
                "target": "self",
                "base_delay": 1.64,
                "delay_per_summon": 0.0,
                "num_entities_spawned": 1,
                "entity_type": "legacy:strength",
                "size": 1.0,
                "entity_lifespan": 5,
                "sound_event": "prepare.summon"
              }
            ]
          },
          {
            "weight": 1,
            "cooldown_time": 12.0,
            "cast_duration": 2.64,
            "particle_color": "#484D48",
            "start_sound_event": "cast.spell",
            "sequence": [
              {
                "shape": "circle",
                "target": "self",
                "base_delay": 1.64,
                "delay_per_summon": 0.0,
                "num_entities_spawned": 1,
                "entity_type": "legacy:strength",
                "size": 1.0,
                "entity_lifespan": 5,
                "sound_event": "prepare.summon"
              },
              {
                "shape": "circle",
                "target": "self",
                "base_delay": 0.1,
                "delay_per_summon": 0.0,
                "num_entities_spawned": 1,
                "entity_type": "legacy:resistance",
                "size": 1.0,
                "entity_lifespan": 5,
                "sound_event": "prepare.summon"
              }
            ]
          },
          {
            "weight": 1,
            "cooldown_time": 12.0,
            "cast_duration": 2.64,
            "particle_color": "#8BAFE0",
            "start_sound_event": "cast.spell",
            "sequence": [
              {
                "shape": "circle",
                "target": "self",
                "base_delay": 1.64,
                "delay_per_summon": 0.0,
                "num_entities_spawned": 1,
                "entity_type": "legacy:strength",
                "size": 1.0,
                "entity_lifespan": 5,
                "sound_event": "prepare.summon"
              },
              {
                "shape": "circle",
                "target": "self",
                "base_delay": 0.1,
                "delay_per_summon": 0.0,
                "num_entities_spawned": 1,
                "entity_type": "legacy:speed",
                "size": 1.0,
                "entity_lifespan": 5,
                "sound_event": "prepare.summon"
              }
            ]
          },
          {
            "weight": 1,
            "cooldown_time": 12.0,
            "cast_duration": 2.64,
            "particle_color": "#FF9900",
            "start_sound_event": "cast.spell",
            "sequence": [
              {
                "shape": "circle",
                "target": "self",
                "base_delay": 1.64,
                "delay_per_summon": 0.0,
                "num_entities_spawned": 1,
                "entity_type": "legacy:strength",
                "size": 1.0,
                "entity_lifespan": 5,
                "sound_event": "prepare.summon"
              },
              {
                "shape": "circle",
                "target": "self",
                "base_delay": 0.1,
                "delay_per_summon": 0.0,
                "num_entities_spawned": 1,
                "entity_type": "legacy:fire_resistance",
                "size": 1.0,
                "entity_lifespan": 5,
                "sound_event": "prepare.summon"
              }
            ]
          }
        ]
      },
      "minecraft:behavior.nearest_prioritized_attackable_target": {
        "priority": 2,
        "entity_types": [
          {
            "filters": {
              "any_of": [
                {
                  "test": "is_family",
                  "subject": "other",
                  "value": "illager"
                },
                {
                  "test": "is_family",
                  "subject": "other",
                  "value": "player_illager"
                }
              ]
            },
            "priority": 1,
            "cooldown" : 12,
            "max_dist": 12
          }
        ],
        "must_reach": true
      },
      "minecraft:behavior.avoid_mob_type": {
        "priority": 5,
        "entity_types": [
          {
            "filters": {
              "any_of": [
                {
                  "test": "is_family",
                  "subject": "other",
                  "value": "zombie"
                },
                {
                  "test": "is_family",
                  "subject": "other",
                  "value": "zombie_villager"
                },
                {
                  "test": "is_family",
                  "subject": "other",
                  "value": "zombie_pigman"
                },
                {
                  "test": "is_family",
                  "subject": "other",
                  "value": "villager"
                },
                {
                  "test": "is_family",
                  "subject": "other",
                  "value": "player"
                }
              ]
            },
            "max_dist": 8,
            "walk_speed_multiplier": 0.4,
            "sprint_speed_multiplier": 0.6
          }
        ]
      },
      "minecraft:behavior.random_stroll": {
        "priority": 8,
        "speed_multiplier": 0.4
      },
      "minecraft:behavior.look_at_player": {
        "priority": 9,
        "look_distance": 8.0,
        "probability": 1.0
      },
      "minecraft:behavior.look_at_entity": {
        "priority": 10,
        "look_distance": 8.0,
        "filters": {
          "test": "is_family",
          "subject": "other",
          "value": "mob"
        }
      },
      "minecraft:behavior.hurt_by_target": {
        "priority": 1,
        "entity_types": {
          "filters": {
            "test": "is_family",
            "subject": "other",
            "operator": "!\u003d",
            "value": "illager"
          },
          "max_dist": 64
        }
      },
      "minecraft:angry": {
        "duration": 30,
        "broadcast_anger": true,
        "broadcast_anger_on_attack": true,
        "broadcast_anger_on_being_attacked": true,
        "broadcast_range": 16,
        "broadcast_targets": [
			"illager"
        ]
      },
      "minecraft:physics": {},
      "minecraft:follow_range": {
        "value": 64
      },
      "minecraft:experience_reward": {
        "on_death": "query.last_hit_by_player ? 10 : 0"
      },
      "minecraft:underwater_movement": {
        "value": 0.02
      },
      "minecraft:scale": {
        "value": 1
      },
      "minecraft:behavior.owner_hurt_by_target": {
        "priority": 1
      },
      "minecraft:behavior.owner_hurt_target": {
        "priority": 2
      },
      "minecraft:pushable": {
        "is_pushable": true,
        "is_pushable_by_piston": true
      },
      "minecraft:equip_item": {}
    },
    "events": {
      "minecraft:spawn_for_raid": {
        "sequence": [
          {
            "add": {
              "component_groups": [
                "minecraft:raid_configuration"
              ]
            }
          },
          {
            "filters": {
              "any_of": [
                {
                  "test": "has_biome_tag",
                  "value": "desert"
                },
                {
                  "test": "has_biome_tag",
                  "value": "mesa"
                }
              ]
            },
            "add": {
              "component_groups": [
                "desert_illager"
              ]
            }
          },
          {
            "filters": {
              "test": "has_biome_tag",
              "value": "jungle"
            },
            "add": {
              "component_groups": [
                "jungle_illager"
              ]
            }
          },
          {
            "filters": {
              "test": "has_biome_tag",
              "value": "savanna"
            },
            "add": {
              "component_groups": [
                "savanna_illager"
              ]
            }
          },
          {
            "filters": {
              "any_of": [
                {
                  "all_of": [
                    {
                      "test": "has_biome_tag",
                      "value": "cold"
                    },
                    {
                      "test": "has_biome_tag",
                      "operator": "!\u003d",
                      "value": "ocean"
                    }
                  ]
                },
                {
                  "test": "has_biome_tag",
                  "value": "frozen"
                }
              ]
            },
            "add": {
              "component_groups": [
                "snow_illager"
              ]
            }
          },
          {
            "filters": {
              "test": "has_biome_tag",
              "value": "swamp"
            },
            "add": {
              "component_groups": [
                "swamp_illager"
              ]
            }
          },
          {
            "filters": {
              "all_of": [
                {
                  "any_of": [
                    {
                      "test": "has_biome_tag",
                      "value": "taiga"
                    },
                    {
                      "test": "has_biome_tag",
                      "value": "extreme_hills"
                    }
                  ]
                },
                {
                  "test": "has_biome_tag",
                  "operator": "!\u003d",
                  "value": "cold"
                }
              ]
            },
            "add": {
              "component_groups": [
                "taiga_illager"
              ]
            }
          }
        ]
      },
      "minecraft:entity_spawned": {
        "sequence": [
          {
            "filters": {
              "any_of": [
                {
                  "test": "has_biome_tag",
                  "value": "desert"
                },
                {
                  "test": "has_biome_tag",
                  "value": "mesa"
                }
              ]
            },
            "add": {
              "component_groups": [
                "desert_illager"
              ]
            }
          },
          {
            "filters": {
              "test": "has_biome_tag",
              "value": "jungle"
            },
            "add": {
              "component_groups": [
                "jungle_illager"
              ]
            }
          },
          {
            "filters": {
              "test": "has_biome_tag",
              "value": "savanna"
            },
            "add": {
              "component_groups": [
                "savanna_illager"
              ]
            }
          },
          {
            "filters": {
              "any_of": [
                {
                  "all_of": [
                    {
                      "test": "has_biome_tag",
                      "value": "cold"
                    },
                    {
                      "test": "has_biome_tag",
                      "operator": "!\u003d",
                      "value": "ocean"
                    }
                  ]
                },
                {
                  "test": "has_biome_tag",
                  "value": "frozen"
                }
              ]
            },
            "add": {
              "component_groups": [
                "snow_illager"
              ]
            }
          },
          {
            "filters": {
              "test": "has_biome_tag",
              "value": "swamp"
            },
            "add": {
              "component_groups": [
                "swamp_illager"
              ]
            }
          },
          {
            "filters": {
              "all_of": [
                {
                  "any_of": [
                    {
                      "test": "has_biome_tag",
                      "value": "taiga"
                    },
                    {
                      "test": "has_biome_tag",
                      "value": "extreme_hills"
                    }
                  ]
                },
                {
                  "test": "has_biome_tag",
                  "operator": "!\u003d",
                  "value": "cold"
                }
              ]
            },
            "add": {
              "component_groups": [
                "taiga_illager"
              ]
            }
          }
        ]
      },
      "minecraft:give_regeneration_illager": {
        "add": {
          "component_groups": [
            "regeneration"
          ]
        }
      }
    }
  }
}