{
  "format_version": "1.26.0",
  "minecraft:entity": {
    "description": {
      "identifier": "minecraft:evocation_illager",
      "is_summonable": true,
      "is_spawnable": true,
      "spawn_category": "monster"
    },
    "components": {
      "minecraft:behavior.avoid_mob_type": {
        "entity_types": [
          {
            "filters": {
              "AND": [
                {
                  "test": "is_family",
                  "subject": 1,
                  "operator": 0,
                  "value": "player"
                }
              ]
            },
            "max_dist": 8,
            "walk_speed_multiplier": 0.6
          },
          {
            "filters": {
              "AND": [
                {
                  "test": "is_family",
                  "subject": 1,
                  "operator": 0,
                  "value": "creaking"
                }
              ]
            },
            "max_dist": 8,
            "sprint_speed_multiplier": 1.2
          }
        ],
        "priority": 5
      },
      "minecraft:behavior.equip_item": {
        "priority": 3
      },
      "minecraft:behavior.float": {
        "priority": 0
      },
      "minecraft:behavior.hurt_by_target": {
        "entity_types": {
          "filters": {
            "operator": "!=",
            "test": "is_family",
            "subject": "other",
            "value": "illager"
          },
          "max_dist": 64
        },
        "priority": 1
      },
      "minecraft:behavior.look_at_entity": {
        "look_time": {
          "min": 1,
          "max": 2
        },
        "priority": 10
      },
      "minecraft:behavior.look_at_player": {
        "look_time": {
          "min": 1,
          "max": 2
        },
        "look_distance": 3,
        "probability": 1,
        "priority": 9
      },
      "minecraft:behavior.nearest_attackable_target": {
        "must_see": true,
        "entity_types": [
          {
            "filters": {
              "AND": [
                {
                  "OR": [
                    {
                      "test": "is_family",
                      "subject": 1,
                      "operator": 0,
                      "value": "player"
                    },
                    {
                      "test": "is_family",
                      "subject": 1,
                      "operator": 0,
                      "value": "snowgolem"
                    },
                    {
                      "test": "is_family",
                      "subject": 1,
                      "operator": 0,
                      "value": "irongolem"
                    },
                    {
                      "test": "is_family",
                      "subject": 1,
                      "operator": 0,
                      "value": "wandering_trader"
                    }
                  ]
                }
              ]
            },
            "max_dist": 20
          },
          {
            "filters": {
              "AND": [
                {
                  "test": "is_family",
                  "subject": 1,
                  "operator": 0,
                  "value": "villager"
                },
                {
                  "test": "has_component",
                  "subject": 1,
                  "operator": 1,
                  "value": "minecraft:is_baby"
                }
              ]
            },
            "max_dist": 20
          }
        ],
        "priority": 2
      },
      "minecraft:behavior.pickup_items": {
        "goal_radius": 2,
        "priority": 7,
        "max_dist": 3,
        "speed_multiplier": 1
      },
      "minecraft:behavior.random_stroll": {
        "priority": 8,
        "speed_multiplier": 0.6
      },
      "minecraft:behavior.send_event": {
        "event_choices": [
          {
            "particle_color": "#FFB38033",
            "cast_duration": 3,
            "max_activation_range": 16,
            "filters": {
              "all_of": [
                {
                  "subject": "other",
                  "test": "is_family",
                  "value": "sheep"
                },
                {
                  "subject": "other",
                  "test": "is_color",
                  "value": "blue"
                }
              ]
            },
            "cooldown_time": 5,
            "min_activation_range": 0,
            "start_sound_event": "cast.spell",
            "sequence": [
              {
                "base_delay": 2,
                "event": "wololo",
                "sound_event": "prepare.wololo"
              }
            ],
            "weight": 3
          }
        ],
        "priority": 3
      },
      "minecraft:behavior.summon_entity": {
        "priority": 2,
        "summon_choices": [
          {
            "cast_duration": 2,
            "particle_color": "#FF664D59",
            "cooldown_time": 5,
            "max_activation_range": 3,
            "min_activation_range": 0,
            "sequence": [
              {
                "base_delay": 1,
                "shape": "circle",
                "num_entities_spawned": 5,
                "delay_per_summon": 0,
                "entity_lifespan": 1.1,
                "entity_type": "minecraft:evocation_fang",
                "size": 1.5,
                "sound_event": "prepare.attack",
                "target": "self"
              },
              {
                "base_delay": 0.15,
                "target": "self",
                "delay_per_summon": 0,
                "num_entities_spawned": 8,
                "shape": "circle",
                "entity_lifespan": 1.1,
                "entity_type": "minecraft:evocation_fang",
                "size": 2.5
              }
            ],
            "start_sound_event": "cast.spell",
            "weight": 3
          },
          {
            "cast_duration": 2,
            "particle_color": "#FF664D59",
            "cooldown_time": 5,
            "min_activation_range": 3,
            "sequence": [
              {
                "base_delay": 1,
                "target": "self",
                "delay_per_summon": 0.05,
                "num_entities_spawned": 16,
                "shape": "line",
                "entity_lifespan": 1.1,
                "entity_type": "minecraft:evocation_fang",
                "size": 20
              }
            ],
            "start_sound_event": "cast.spell",
            "weight": 3
          },
          {
            "cast_duration": 5,
            "particle_color": "#FFB3B3CC",
            "cooldown_time": 17,
            "sequence": [
              {
                "base_delay": 5,
                "entity_type": "minecraft:vex",
                "shape": "circle",
                "num_entities_spawned": 3,
                "summon_cap_radius": 16,
                "size": 1,
                "sound_event": "prepare.summon",
                "summon_cap": 8,
                "summon_event": "minecraft:add_damage_timer",
                "target": "self"
              }
            ],
            "weight": 1
          }
        ]
      },
      "minecraft:breathable": {
        "suffocate_time": 0,
        "total_supply": 15
      },
      "minecraft:can_climb": {},
      "minecraft:can_join_raid": {},
      "minecraft:collision_box": {
        "height": 1.9,
        "width": 0.6
      },
      "minecraft:conditional_bandwidth_optimization": {},
      "minecraft:equip_item": {},
      "minecraft:experience_reward": {
        "on_death": 10
      },
      "minecraft:follow_range": {
        "value": 64
      },
      "minecraft:health": {
        "max": 24,
        "value": 24
      },
      "minecraft:hurt_on_condition": {
        "damage_conditions": [
          {
            "cause": "lava",
            "damage_per_tick": 4,
            "filters": {
              "operator": "==",
              "test": "in_lava",
              "subject": "self",
              "value": true
            }
          }
        ]
      },
      "minecraft:is_hidden_when_invisible": {},
      "minecraft:jump.static": {},
      "minecraft:loot": {
        "table": "loot_tables/entities/evocation_illager.json"
      },
      "minecraft:movement": {
        "value": 0.5
      },
      "minecraft:movement.basic": {},
      "minecraft:nameable": {},
      "minecraft:navigation.walk": {
        "avoid_water": true,
        "can_open_doors": true,
        "using_door_annotation": true,
        "can_pass_doors": true,
        "can_path_over_water": true
      },
      "minecraft:persistent": {},
      "minecraft:physics": {},
      "minecraft:pushable": {
        "is_pushable": true,
        "is_pushable_by_piston": true
      },
      "minecraft:shareables": {
        "items": [
          {
            "item": "minecraft:banner:15",
            "priority": 0,
            "surplus_amount": 1,
            "want_amount": 1
          }
        ]
      },
      "minecraft:type_family": {
        "family": [
          "evocation_illager",
          "monster",
          "illager",
          "mob"
        ]
      }
    },
    "component_groups": {
      "minecraft:celebrate": {
        "minecraft:behavior.celebrate": {
          "celebration_sound": "celebrate",
          "duration": 30,
          "jump_interval": {
            "range_max": 3.5,
            "range_min": 1
          },
          "on_celebration_end_event": {
            "event": "minecraft:stop_celebrating",
            "target": "self"
          },
          "priority": 5,
          "sound_interval": {
            "range_max": 7,
            "range_min": 2
          }
        }
      },
      "minecraft:raid_despawn": {
        "minecraft:despawn": {
          "despawn_from_distance": {}
        }
      },
      "minecraft:raid_configuration": {
        "minecraft:ambient_sound_interval": {
          "event_name": "ambient.in.raid",
          "range": 4,
          "value": 2
        },
        "minecraft:behavior.move_to_village": {
          "priority": 6,
          "speed_multiplier": 0.7
        },
        "minecraft:dweller": {
          "can_find_poi": false,
          "dwelling_type": "village",
          "can_migrate": true,
          "dweller_role": "hostile",
          "first_founding_reward": 0,
          "update_interval_base": 60,
          "update_interval_variant": 40
        }
      },
      "minecraft:raid_persistence": {
        "minecraft:persistent": {}
      }
    },
    "events": {
      "minecraft:raid_expired": {
        "sequence": [
          {
            "filters": {
              "test": "has_nametag",
              "value": false
            },
            "remove": {
              "component_groups": [
                "minecraft:raid_persistence"
              ]
            }
          }
        ]
      },
      "minecraft:spawn_for_raid": {
        "add": {
          "component_groups": [
            "minecraft:raid_configuration",
            "minecraft:raid_despawn",
            "minecraft:raid_persistence"
          ]
        }
      },
      "minecraft:stop_celebrating": {
        "remove": {
          "component_groups": [
            "minecraft:celebrate"
          ]
        }
      },
      "minecraft:start_celebrating": { // Event must be called exactly this for village to fire it when a raid is lost
        "sequence": [
          {
            "add": {
              "component_groups": [
                "minecraft:celebrate"
              ]
            }
          },
          {
            "filters": {
              "test": "has_nametag",
              "value": false
            },
            "remove": {
              "component_groups": [
                "minecraft:raid_persistence"
              ]
            }
          }
        ]
      }
    }
  }
}