{
  "format_version": "1.13.0",
  "minecraft:entity": {
    "description": {
      "identifier": "legacy:illusioner_illager",
      "is_spawnable": true,
      "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:celebrate": {
        "minecraft:behavior.celebrate": {
          "priority": 5,
          "celebration_sound": "celebrate",
          "sound_interval": {
            "range_min": 2.0,
            "range_max": 7.0
          },
          "jump_interval": {
            "range_min": 1.0,
            "range_max": 3.5
          },
          "duration": 30.0,
          "on_celebration_end_event": {
            "event": "minecraft:stop_celebrating",
            "target": "self"
          }
        }
      },
      "minecraft:start_illusioner_summon": {
        "minecraft:behavior.summon_entity": {
          "priority": 0,
          "summon_choices": [
            {
              "min_activation_range": 3,
              "cooldown_time": 15,
              "weight": 3,
              "cast_duration": 1,
              "particle_color": "#1557BE",
              "start_sound_event": "cast.spell",
              "sequence": [
                {
                  "shape": "circle",
                  "target": "self",
                  "base_delay": 1,
                  "delay_per_summon": 0,
                  "num_entities_spawned": 1,
                  "entity_type": "expansion:none",
                  "size": 2.5,
                  "entity_lifespan": 12,
                  "sound_event": "prepare.wololo"
                }
              ]
            }
          ]
        },
        "minecraft:timer": {
          "looping": false,
          "time": [
            2,
            2
          ],
          "time_down_event": {
            "event": "minecraft:remove_start_illusioner_summon",
            "target": "self"
          }
        }
      },
      "minecraft:illusioner_summon": {
        "minecraft:behavior.summon_entity": {
          "priority": 0,
          "summon_choices": [
            {
              "min_activation_range": 3,
              "cooldown_time": 15,
              "weight": 3,
              "cast_duration": 1,
              "particle_color": "#1557BE",
              "start_sound_event": "cast.spell",
              "sequence": [
                {
                  "shape": "circle",
                  "target": "self",
                  "base_delay": 1,
                  "delay_per_summon": 0,
                  "num_entities_spawned": 4,
                  "entity_type": "legacy:illusioner_illager_clone",
                  "size": 2.5,
                  "entity_lifespan": 12,
                  "sound_event": "prepare.wololo"
                }
              ]
            },
            {
              "min_activation_range": 3,
              "cooldown_time": 15,
              "weight": 3,
              "cast_duration": 1,
              "particle_color": "#1557BE",
              "start_sound_event": "cast.spell",
              "sequence": [
                {
                  "shape": "circle",
                  "target": "self",
                  "base_delay": 1,
                  "delay_per_summon": 0,
                  "num_entities_spawned": 5,
                  "entity_type": "legacy:illusioner_illager_clone",
                  "size": 2.5,
                  "entity_lifespan": 12,
                  "sound_event": "prepare.wololo"
                }
              ]
            }
          ]
        },
        "minecraft:behavior.send_event": {
          "priority": 3,
          "event_choices": [
            {
              "min_activation_range": 0,
              "max_activation_range": 16,
              "cooldown_time": 15,
              "cast_duration": 1,
              "particle_color": "#000000",
              "weight": 1,
              "filters": {
                "all_of": [
                  {
                    "test": "is_family",
                    "subject": "other",
                    "value": "player"
                  },
                  {
                    "test": "has_mob_effect",
                    "subject": "other",
                    "operator": "!\u003d",
                    "value": "blindness"
                  },
                  {
                    "test": "has_ability",
                    "subject": "other",
                    "operator": "!\u003d",
                    "value": "instabuild"
                  }
                ]
              },
              "start_sound_event": "cast.spell",
              "sequence": [
                {
                  "base_delay": 0.1,
                  "event": "minecraft:blindness_effect",
                  "sound_event": "prepare.summon"
                }
              ]
            }
          ]
        },
        "minecraft:timer": {
          "looping": false,
          "time": [
            2,
            2
          ],
          "time_down_event": {
            "event": "minecraft:remove_summon",
            "target": "self"
          }
        }
      },
      "minecraft:countdown_to_summon": {
        "minecraft:timer": {
          "looping": false,
          "time": [
            7,
            8
          ],
          "time_down_event": {
            "event": "minecraft:on_summon"
          }
        }
      },
      "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": 1.0
        },
        "minecraft:ambient_sound_interval": {
          "value": 2.0,
          "range": 4.0,
          "event_name": "ambient.in.raid"
        },
        "minecraft:navigation.walk": {
          "can_path_over_water": true,
          "can_open_door": false,
          "can_pass_doors": true,
          "avoid_water": false
        }
      },
      "minecraft:raid_persistence": {
        "minecraft:persistent": {}
      },
      "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:experience_reward": {
        "on_death": "query.last_hit_by_player ? (query.is_baby ? 30 : 16) + (Math.die_roll(query.equipment_count,16,24)) : 0"
      },
      "minecraft:type_family": {
        "family": [
          "illusioner",
          "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/evocation_illager.json"
      },
      "minecraft:health": {
        "value": 32,
        "max": 32
      },
      "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.ranged_attack": {
        "priority": 4,
        "attack_interval_min": 1,
        "attack_interval_max": 2,
        "attack_radius": 10
      },
      "minecraft:behavior.hurt_by_target": {
        "priority": 1,
        "entity_types": {
          "filters": {
            "test": "is_family",
            "subject": "other",
            "operator": "!\u003d",
            "value": "illager"
          },
          "max_dist": 64
        }
      },
      "minecraft:behavior.equip_item": {
        "priority": 3
      },
      "minecraft:damage_sensor": {
        "triggers": [
          {
            "on_damage": {
              "filters": {
                "test": "is_family",
                "subject": "other",
                "value": "illager"
              }
            },
            "deals_damage": false
          }
        ]
      },
      "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:on_target_acquired": {
        "event": "become_angry",
        "target": "self"
      },
      "minecraft:on_target_escape": {
        "event": "become_calm",
        "target": "self"
      },
      "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": {
      "minecraft:entity_spawned": {
        "sequence": [
          {
            "add": {
              "component_groups": [
                "minecraft:start_illusioner_summon"
              ]
            }
          },
          {
            "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:spawn_for_raid": {
        "sequence": [
          {
            "add": {
              "component_groups": [
                "minecraft:start_illusioner_summon",
                "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"
              ]
            }
          }
        ]
      },
      "become_angry": {
        "add": {
          "component_groups": [
            "minecraft:set_angry",
            "minecraft:countdown_to_summon"
          ]
        }
      },
      "become_calm": {
        "remove": {
          "component_groups": [
            "minecraft:set_angry",
            "minecraft:countdown_to_summon"
          ]
        }
      },
      "minecraft:on_summon": {
        "add": {
          "component_groups": [
            "minecraft:illusioner_summon"
          ]
        },
        "remove": {
          "component_groups": [
            "minecraft:countdown_to_summon"
          ]
        }
      },
      "minecraft:remove_summon": {
        "remove": {
          "component_groups": [
            "minecraft:illusioner_summon"
          ]
        },
        "add": {
          "component_groups": [
            "minecraft:countdown_to_summon"
          ]
        }
      },
      "minecraft:remove_start_illusioner_summon": {
        "remove": {
          "component_groups": [
            "minecraft:start_illusioner_summon"
          ]
        },
        "add": {
          "component_groups": [
            "minecraft:countdown_to_summon"
          ]
        }
      },
      "minecraft:start_celebrating": {
        "add": {
          "component_groups": [
            "minecraft:celebrate"
          ]
        }
      },
      "minecraft:stop_celebrating": {
        "remove": {
          "component_groups": [
            "minecraft:celebrate"
          ]
        }
      }
    }
  }
}