{
  "format_version": "1.13.0",
  "minecraft:entity": {
    "description": {
      "identifier": "legacy:illusioner_illager_clone",
      "is_spawnable": false,
      "is_summonable": true,
      "is_experimental": false,
      "runtime_identifier": "minecraft:pillager"
    },
    "component_groups": {
      "minecraft:set_angry": {
        "minecraft:angry": {
          "duration": 30,
          "broadcast_anger": true,
          "broadcast_anger_on_attack": true,
          "broadcast_anger_on_being_attacked": true,
          "broadcast_range": 16,
          "broadcast_targets": [
            "illager"
          ],
          "calm_event": {
            "event": "become_calm",
            "target": "self"
          },
          "angry_sound": "angry",
          "sound_interval": {
            "range_min": 2.0,
            "range_max": 5.0
          }
        },
        "minecraft:behavior.ranged_attack": {
          "priority": 4,
          "attack_interval_min": 1,
          "attack_interval_max": 3,
          "attack_radius": 8
        }
      },
      "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": [
          "illusioner_clone",
          "illager",
          "mob"
        ]
      },
      "minecraft:variant": {
        "value": 2
      },
      "minecraft:breathable": {
        "totalSupply": 15,
        "suffocateTime": 0
      },
      "minecraft:nameable": {},
      "minecraft:hurt_on_condition": {
        "damage_conditions": [
          {
            "filters": {
              "test": "in_lava",
              "subject": "self",
              "operator": "\u003d\u003d",
              "value": true
            },
            "cause": "lava",
            "damage_per_tick": 4
          }
        ]
      },
      "minecraft:loot": {
        "table": "loot_tables/entities/none.json"
      },
      "minecraft:health": {
        "value": 1,
        "max": 1
      },
      "minecraft:collision_box": {
        "width": 0.6,
        "height": 1.95
      },
      "minecraft:movement": {
        "value": 0.35
      },
      "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:behavior.random_stroll": {
        "priority": 8,
        "speed_multiplier": 0.6
      },
      "minecraft:behavior.look_at_player": {
        "priority": 9,
        "look_distance": 3,
        "probability": 1
      },
      "minecraft:behavior.look_at_entity": {
        "priority": 10,
        "look_distance": 8,
        "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:on_target_acquired": {
        "event": "become_angry",
        "target": "self"
      },
      "minecraft:on_target_escape": {
        "event": "become_calm",
        "target": "self"
      },
      "minecraft:behavior.nearest_attackable_target": {
        "priority": 2,
        "must_see": true,
        "reselect_targets": true,
        "within_radius": 16.0,
        "entity_types": [
          {
            "filters": {
              "any_of": [
                {
                  "test": "is_family",
                  "subject": "other",
                  "value": "player"
                },
                {
                  "test": "is_family",
                  "subject": "other",
                  "value": "irongolem"
                },
                {
                  "test": "is_family",
                  "subject": "other",
                  "value": "wandering_trader"
                }
              ]
            },
            "max_dist": 16
          },
          {
            "filters": {
              "all_of": [
                {
                  "test": "is_family",
                  "subject": "other",
                  "value": "monster"
                },
                {
                  "test": "is_family",
                  "subject": "other",
                  "operator": "!\u003d",
                  "value": "creeper"
                },
                {
                  "test": "is_family",
                  "subject": "other",
                  "operator": "!\u003d",
                  "value": "illager"
                },
                {
                  "test": "is_underwater",
                  "subject": "other",
                  "value": false
                }
              ]
            },
            "max_dist": 16
          },
          {
            "filters": {
              "all_of": [
                {
                  "test": "is_family",
                  "subject": "other",
                  "value": "villager"
                },
                {
                  "test": "has_component",
                  "subject": "other",
                  "operator": "!=",
                  "value": "minecraft:is_baby"
                }
              ]
            },
            "max_dist": 16
          }
        ]
      },
      "minecraft:behavior.ranged_attack": {
        "priority": 4,
        "attack_interval_min": 1,
        "attack_interval_max": 1,
        "attack_radius": 10
      },
      "minecraft:behavior.equip_item": {
        "priority": 3
      },
      "minecraft:damage_sensor": {
        "triggers": [
          {
            "on_damage": {
              "filters": {
                "test": "is_family",
                "subject": "other",
                "value": "illager"
              }
            },
            "deals_damage": false
          }
        ]
      },
      "minecraft:despawn":{
        "filters":{
          "all_of":[
            {
              "test":"has_component",
              "subject":"self",
              "operator": "=",
              "value":"become_calm"
            }
          ]
        }
      },
      "minecraft:persistent": {},
      "minecraft:physics": {},
      "minecraft:pushable": {
        "is_pushable": true,
        "is_pushable_by_piston": true
      },
      "minecraft:follow_range": {
        "value": 64
      },
      "minecraft:equip_item": {},
      "minecraft:equipment": {
        "table": "loot_tables/entities/illusioner_gear.json"
      },
      "minecraft:shooter": {
        "def": "minecraft:arrow"
      }
    },
    "events": {
      "become_angry": {
        "add": {
          "component_groups": [
            "minecraft:set_angry"
          ]
        }
      },
      "become_calm": {
        "remove": {
          "component_groups": [
            "minecraft:set_angry"
          ]
        }
      },
      "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"
              ]
            }
          }
        ]
      }
    }
  }
}