{
  "format_version": "1.13.0",
  "minecraft:entity": {
    "description": {
      "identifier": "legacy:armored_vindicator_gold_squad_captain",
      "is_spawnable": false,
      "is_summonable": false,
      "is_experimental": false,
      "runtime_identifier": "minecraft:vindicator"
    },
    "component_groups": {
      "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"
          }
        }
      },
      "regeneration": {
        "minecraft:spell_effects": {
          "add_effects": [
            {
              "effect": "regeneration",
              "amplifier": 2,
              "visible": 1,
              "ambient": false,
              "duration": 30
            }
          ]
        }
      },
      "minecraft:ranged_attack": {
        "minecraft:behavior.ranged_attack": {
          "priority": 4,
          "attack_interval_min": 1,
          "attack_interval_max": 1,
          "attack_radius_min": 4,
          "attack_radius": 8,
          "target_in_sight_time": 0.1
        },
        "minecraft:shooter": {
          "def": "minecraft:arrow"
        },
        "minecraft:variant": {
          "value": 0
        }
      },
      "minecraft:melee_attack": {
        "minecraft:behavior.melee_attack": {
          "priority": 4,
          "track_target": true
        },
        "minecraft:attack": {
          "damage": 7
        },
        "minecraft:variant": {
          "value": 1
        }
      },
      "minecraft:spear_melee_attack": {
        "minecraft:behavior.melee_attack": {
          "priority": 4,
          "track_target": true
        },
        "minecraft:attack": {
          "damage": 10
        },
        "minecraft:equipment": {
          "table": "loot_tables/entities/glaive_gear.json",
          "slot_drop_chance": [
            {
              "slot": "slot.armor.head",
              "drop_chance": 0.1
            },
            {
              "slot": "slot.armor.chest",
              "drop_chance": 0.1
            },
            {
              "slot": "slot.armor.legs",
              "drop_chance": 0.1
            },
            {
              "slot": "slot.armor.feet",
              "drop_chance": 0.1
            }
          ]
        },
        "minecraft:variant": {
          "value": 2
        }
      },
      "minecraft:vindicator_aggro": {
        "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": "minecraft:stop_aggro",
            "target": "self"
          }
        }
      },
      "minecraft:vindicator_johnny": {
        "minecraft:behavior.nearest_attackable_target": {
          "priority": 2,
          "must_see": true,
          "reselect_targets": true,
          "within_radius": 12.0,
          "must_see_forget_duration": 40.0,
          "entity_types": [
            {
              "filters": {
                "all_of": [
                  {
                    "test": "is_family",
                    "subject": "other",
                    "operator": "!\u003d",
                    "value": "illager"
                  }
                ]
              },
              "max_dist": 12
            }
          ]
        }
      },
      "minecraft:default_targeting": {
        "minecraft:behavior.nearest_attackable_target": {
          "priority": 2,
          "must_see": true,
          "reselect_targets": true,
          "within_radius": 12.0,
          "must_see_forget_duration": 40.0,
          "entity_types": [
            {
              "filters": {
                "any_of": [
                  {
                    "test": "is_family",
                    "subject": "other",
                    "value": "player"
                  },
                  {
                    "test": "is_family",
                    "subject": "other",
                    "value": "snowgolem"
                  },
                  {
                    "test": "is_family",
                    "subject": "other",
                    "value": "irongolem"
                  },
                  {
                    "test": "is_family",
                    "subject": "other",
                    "value": "wandering_trader"
                  },
                  {
                    "test": "is_family",
                    "subject": "other",
                    "value": "undead"
                  }
                ]
              },
              "max_dist": 12
            },
            {
              "filters": {
                "all_of": [
                  {
                    "test": "is_family",
                    "subject": "other",
                    "value": "villager"
                  },
                  {
                    "test": "has_component",
                    "subject": "other",
                    "operator": "!\u003d",
                    "value": "minecraft:is_baby"
                  }
                ]
              },
              "max_dist": 12
            }
          ]
        }
      },
      "barter": {
        "minecraft:interact": {
          "interactions": [
            {
              "on_interact": {
                "filters": {
                  "all_of": [
                    {
                      "test": "has_equipment",
                      "subject": "other",
                      "domain": "hand",
                      "value": "emerald"
                    },
                    {
                      "test": "is_family",
                      "subject": "other",
                      "value": "player"
                    },
                    {
                      "test": "has_component",
                      "subject": "self",
                      "operator": "!\u003d",
                      "value": "minecraft:raid_configuration"
                    }
                  ]
                }
              },
              "barter": true,
              "admire": true,
              "use_item": true,
              "cooldown_after_being_attacked": 20,
              "interact_text": "action.interact.barter"
            }
          ]
        }
      },
      "minecraft:admire_barter": {
        "minecraft:behavior.admire_item": {
          "priority": 2,
          "admire_item_sound": "admire",
          "sound_interval": {
            "range_min": 2.0,
            "range_max": 5.0
          },
          "on_admire_item_start": {
            "event": "admire_item_started_event",
            "target": "self"
          },
          "on_admire_item_stop": {
            "event": "admire_item_stopped_event",
            "target": "self"
          }
        },
        "minecraft:admire_item": {
          "duration": 10,
          "cooldown_after_being_attacked": 4
        },
        "minecraft:barter": {
          "barter_table": "loot_tables/entities/vindicator_barter.json",
          "cooldown_after_being_attacked": 5
        },
        "minecraft:behavior.barter": {
          "priority": 3
        }
      },
      "desert_vindicator": {
        "minecraft:mark_variant": {
          "value": 1
        }
      },
      "jungle_vindicator": {
        "minecraft:mark_variant": {
          "value": 2
        }
      },
      "savanna_vindicator": {
        "minecraft:mark_variant": {
          "value": 3
        }
      },
      "snow_vindicator": {
        "minecraft:mark_variant": {
          "value": 4
        }
      },
      "swamp_vindicator": {
        "minecraft:mark_variant": {
          "value": 5
        }
      },
      "taiga_vindicator": {
        "minecraft:mark_variant": {
          "value": 6
        }
      },
      "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": 4,
          "speed_multiplier": 1.0,
          "goal_radius": 2.0
        },
        "minecraft:loot": {
          "table": "loot_tables/entities/vindicator_raid.json"
        },
        "minecraft:navigation.walk": {
          "can_path_over_water": true,
          "can_pass_doors": true,
          "can_break_doors": true
        },
        "minecraft:annotation.break_door": {
          "break_time": 30,
          "min_difficulty": "normal"
        },
        "minecraft:ambient_sound_interval": {
          "value": 2.0,
          "range": 4.0,
          "event_name": "ambient.in.raid"
        }
      },
      "minecraft:raid_persistence": {
        "minecraft:persistent": {}
      },
      "minecraft:patrol_captain": {
        "minecraft:is_illager_captain": {},
        "minecraft:variant": {
          "value": 1
        },
        "minecraft:equipment": {
          "table": "loot_tables/entities/vindicator_captain_equipment.json",
          "slot_drop_chance": [
            {
              "slot": "slot.armor.chest",
              "drop_chance": 1.0
            }
          ]
        },
        "minecraft:damage_sensor": {
          "triggers": {
            "on_damage": {
              "filters": {
                "all_of": [
                  {
                    "test": "has_damage",
                    "value": "fatal"
                  },
                  {
                    "test": "is_family",
                    "subject": "other",
                    "value": "player"
                  }
                ]
              },
              "event": "minecraft:gain_bad_omen",
              "target": "other"
            }
          }
        },
        "minecraft:behavior.move_to_random_block": {
          "priority": 5,
          "speed_multiplier": 0.55,
          "within_radius": 8,
          "block_distance": 512
        }
      },
      "minecraft:patrol_follower": {
        "minecraft:behavior.follow_target_captain": {
          "priority": 5,
          "speed_multiplier": 0.8,
          "within_radius": 64,
          "follow_distance": 5
        }
      }
    },
    "components": {
      "minecraft:is_hidden_when_invisible": {},
      "minecraft:experience_reward": {
        "on_death": "query.last_hit_by_player ? (query.is_baby ? 12 : 5) + (Math.die_roll(query.equipment_count,1,3)) : 0"
      },
      "minecraft:conditional_bandwidth_optimization": {},
      "minecraft:nameable": {
        "default_trigger": {
          "event": "minecraft:stop_johnny",
          "target": "self"
        },
        "name_actions": [
          {
            "name_filter": "Johnny",
            "on_named": {
              "event": "minecraft:start_johnny",
              "target": "self"
            }
          }
        ]
      },
      "minecraft:type_family": {
        "family": [
          "vindicator",
          "illager",
          "mob"
        ]
      },
      "minecraft:variant": {
        "value": 0
      },
      "minecraft:breathable": {
        "total_supply": 15,
        "suffocate_time": 0
      },
      "minecraft:collision_box": {
        "width": 0.6,
        "height": 1.9
      },
      "minecraft:health": {
        "value": 125,
        "max": 125
      },
      "minecraft:environment_sensor": {
        "triggers": [
          {
            "filters": {
              "test": "has_equipment",
              "subject": "self",
              "domain": "hand",
              "value": "wooden_sword"
            },
            "event": "minecraft:melee_mode",
            "target": "self"
          },
          {
            "filters": {
              "test": "has_equipment",
              "subject": "self",
              "domain": "hand",
              "value": "stone_sword"
            },
            "event": "minecraft:melee_mode",
            "target": "self"
          },
          {
            "filters": {
              "test": "has_equipment",
              "subject": "self",
              "domain": "hand",
              "value": "iron_sword"
            },
            "event": "minecraft:melee_mode",
            "target": "self"
          },
          {
            "filters": {
              "test": "has_equipment",
              "subject": "self",
              "domain": "hand",
              "value": "golden_sword"
            },
            "event": "minecraft:melee_mode",
            "target": "self"
          },
          {
            "filters": {
              "test": "has_equipment",
              "subject": "self",
              "domain": "hand",
              "value": "diamond_sword"
            },
            "event": "minecraft:melee_mode",
            "target": "self"
          },
          {
            "filters": {
              "test": "has_equipment",
              "subject": "self",
              "domain": "hand",
              "value": "netherite_sword"
            },
            "event": "minecraft:melee_mode",
            "target": "self"
          },
          {
            "filters": {
              "test": "has_equipment",
              "subject": "self",
              "domain": "hand",
              "value": "wooden_axe"
            },
            "event": "minecraft:melee_mode",
            "target": "self"
          },
          {
            "filters": {
              "test": "has_equipment",
              "subject": "self",
              "domain": "hand",
              "value": "stone_axe"
            },
            "event": "minecraft:melee_mode",
            "target": "self"
          },
          {
            "filters": {
              "test": "has_equipment",
              "subject": "self",
              "domain": "hand",
              "value": "iron_axe"
            },
            "event": "minecraft:melee_mode",
            "target": "self"
          },
          {
            "filters": {
              "test": "has_equipment",
              "subject": "self",
              "domain": "hand",
              "value": "golden_axe"
            },
            "event": "minecraft:melee_mode",
            "target": "self"
          },
          {
            "filters": {
              "test": "has_equipment",
              "subject": "self",
              "domain": "hand",
              "value": "diamond_axe"
            },
            "event": "minecraft:melee_mode",
            "target": "self"
          },
          {
            "filters": {
              "test": "has_equipment",
              "subject": "self",
              "domain": "hand",
              "value": "netherite_axe"
            },
            "event": "minecraft:melee_mode",
            "target": "self"
          },
          {
            "filters": {
              "test": "has_equipment",
              "subject": "self",
              "domain": "hand",
              "value": "legacy:knight_sword"
            },
            "event": "minecraft:melee_mode",
            "target": "self"
          },
          {
            "filters": {
              "test": "has_equipment",
              "subject": "self",
              "domain": "hand",
              "value": "legacy:iron_knightsword"
            },
            "event": "minecraft:melee_mode",
            "target": "self"
          },
          {
            "filters": {
              "test": "has_equipment",
              "subject": "self",
              "domain": "hand",
              "value": "legacy:golden_knightsword"
            },
            "event": "minecraft:melee_mode",
            "target": "self"
          },
          {
            "filters": {
              "test": "has_equipment",
              "subject": "self",
              "domain": "hand",
              "value": "legacy:diamond_knightsword"
            },
            "event": "minecraft:melee_mode",
            "target": "self"
          },
          {
            "filters": {
              "test": "has_equipment",
              "subject": "self",
              "domain": "hand",
              "value": "legacy:hawkbrand"
            },
            "event": "minecraft:melee_mode",
            "target": "self"
          },
          {
            "filters": {
              "test": "has_equipment",
              "subject": "self",
              "domain": "hand",
              "value": "legacy:iron_hawkbrand"
            },
            "event": "minecraft:melee_mode",
            "target": "self"
          },
          {
            "filters": {
              "test": "has_equipment",
              "subject": "self",
              "domain": "hand",
              "value": "legacy:golden_hawkbrand"
            },
            "event": "minecraft:melee_mode",
            "target": "self"
          },
          {
            "filters": {
              "test": "has_equipment",
              "subject": "self",
              "domain": "hand",
              "value": "legacy:diamond_hawkbrand"
            },
            "event": "minecraft:melee_mode",
            "target": "self"
          },
          {
            "filters": {
              "test": "has_equipment",
              "subject": "self",
              "domain": "hand",
              "value": "legacy:whirlwind"
            },
            "event": "minecraft:melee_mode",
            "target": "self"
          },
          {
            "filters": {
              "test": "has_equipment",
              "subject": "self",
              "domain": "hand",
              "value": "legacy:golden_whirlwind"
            },
            "event": "minecraft:melee_mode",
            "target": "self"
          },
          {
            "filters": {
              "test": "has_equipment",
              "subject": "self",
              "domain": "hand",
              "value": "legacy:diamond_whirlwind"
            },
            "event": "minecraft:melee_mode",
            "target": "self"
          },
          {
            "filters": {
              "test": "has_equipment",
              "subject": "self",
              "domain": "hand",
              "value": "legacy:heavybrand"
            },
            "event": "minecraft:melee_mode",
            "target": "self"
          },
          {
            "filters": {
              "test": "has_equipment",
              "subject": "self",
              "domain": "hand",
              "value": "legacy:iron_heavybrand"
            },
            "event": "minecraft:melee_mode",
            "target": "self"
          },
          {
            "filters": {
              "test": "has_equipment",
              "subject": "self",
              "domain": "hand",
              "value": "legacy:golden_heavybrand"
            },
            "event": "minecraft:melee_mode",
            "target": "self"
          },
          {
            "filters": {
              "test": "has_equipment",
              "subject": "self",
              "domain": "hand",
              "value": "legacy:diamond_heavybrand"
            },
            "event": "minecraft:melee_mode",
            "target": "self"
          },
          {
            "filters": {
              "test": "has_equipment",
              "subject": "self",
              "domain": "hand",
              "value": "legacy:double_heavybrand"
            },
            "event": "minecraft:melee_mode",
            "target": "self"
          },
          {
            "filters": {
              "test": "has_equipment",
              "subject": "self",
              "domain": "hand",
              "value": "legacy:iron_double_heavybrand"
            },
            "event": "minecraft:melee_mode",
            "target": "self"
          },
          {
            "filters": {
              "test": "has_equipment",
              "subject": "self",
              "domain": "hand",
              "value": "legacy:golden_double_heavybrand"
            },
            "event": "minecraft:melee_mode",
            "target": "self"
          },
          {
            "filters": {
              "test": "has_equipment",
              "subject": "self",
              "domain": "hand",
              "value": "legacy:diamond_double_heavybrand"
            },
            "event": "minecraft:melee_mode",
            "target": "self"
          },
          {
            "filters": {
              "test": "has_equipment",
              "subject": "self",
              "domain": "hand",
              "value": "legacy:glaive"
            },
            "event": "minecraft:spear_melee_mode",
            "target": "self"
          },
          {
            "filters": {
              "test": "has_equipment",
              "subject": "self",
              "domain": "hand",
              "value": "legacy:golden_glaive"
            },
            "event": "minecraft:spear_melee_mode",
            "target": "self"
          },
          {
            "filters": {
              "test": "has_equipment",
              "subject": "self",
              "domain": "hand",
              "value": "legacy:diamond_glaive"
            },
            "event": "minecraft:spear_melee_mode",
            "target": "self"
          },
          {
            "filters": {
              "test": "has_equipment",
              "subject": "self",
              "domain": "hand",
              "value": "crossbow"
            },
            "event": "minecraft:ranged_mode",
            "target": "self"
          },
          {
            "filters": {
              "test": "has_equipment",
              "subject": "self",
              "domain": "hand",
              "value": "bow"
            },
            "event": "minecraft:bow_ranged_mode",
            "target": "self"
          }
        ]
      },
      "minecraft:hurt_on_condition": {
        "damage_conditions": [
          {
            "filters": {
              "test": "in_lava",
              "subject": "self",
              "operator": "\u003d\u003d",
              "value": true
            },
            "cause": "lava",
            "damage_per_tick": 4
          }
        ]
      },
      "minecraft:attack": {
        "damage": 12
      },
      "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:follow_range": {
        "value": 64
      },
      "minecraft:loot": {
        "table": "loot_tables/entities/vindication_illager.json"
      },
      "minecraft:equipment": {
        "table": "loot_tables/entities/armored/armored_diamond_vindicator_captain.json",
        "slot_drop_chance": [
          {
            "slot": "slot.armor.head",
            "drop_chance": 0.1
          },
          {
            "slot": "slot.armor.chest",
            "drop_chance": 0.1
          },
          {
            "slot": "slot.armor.legs",
            "drop_chance": 0.1
          },
          {
            "slot": "slot.armor.feet",
            "drop_chance": 0.1
          }
        ]
      },
      "minecraft:behavior.float": {
        "priority": 0
      },
      "minecraft:damage_sensor": {
        "triggers": [
          {
            "on_damage": {
              "filters": [
                {
                  "test": "is_family",
                  "subject": "other",
                  "value": "illager"
                }
              ]
            },
            "deals_damage": false
          }
        ]
      },
      "minecraft:behavior.melee_attack": {
        "priority": 3
      },
      "minecraft:behavior.random_stroll": {
        "priority": 9,
        "speed_multiplier": 0.9
      },
      "minecraft:behavior.look_at_player": {
        "priority": 10,
        "look_distance": 8,
        "probability": 0.02
      },
      "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:on_target_acquired": {
        "event": "minecraft:become_aggro",
        "target": "self"
      },
      "minecraft:on_target_escape": {
        "event": "minecraft:stop_aggro",
        "target": "self"
      },
      "minecraft:physics": {},
      "minecraft:pushable": {
        "is_pushable": true,
        "is_pushable_by_piston": true
      }
    },
    "events": {
      "minecraft:entity_spawned": {
        "sequence": [
          {
            "add": {
              "component_groups": [
                "minecraft:default_targeting",
                "minecraft:illager_squad_captain"
              ]
            }
          },
          {
            "filters": {
              "any_of": [
                {
                  "test": "has_biome_tag",
                  "value": "desert"
                },
                {
                  "test": "has_biome_tag",
                  "value": "mesa"
                }
              ]
            },
            "add": {
              "component_groups": [
                "desert_vindicator"
              ]
            }
          },
          {
            "filters": {
              "test": "has_biome_tag",
              "value": "jungle"
            },
            "add": {
              "component_groups": [
                "jungle_vindicator"
              ]
            }
          },
          {
            "filters": {
              "test": "has_biome_tag",
              "value": "savanna"
            },
            "add": {
              "component_groups": [
                "savanna_vindicator"
              ]
            }
          },
          {
            "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_vindicator"
              ]
            }
          },
          {
            "filters": {
              "test": "has_biome_tag",
              "value": "swamp"
            },
            "add": {
              "component_groups": [
                "swamp_vindicator"
              ]
            }
          },
          {
            "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_vindicator"
              ]
            }
          }
        ]
      },
      "minecraft:entity_transformed": {
        "sequence": [
          {
            "add": {
              "component_groups": [
                "minecraft:default_targeting",
                "minecraft:illager_squad_captain"
              ]
            }
          },
          {
            "filters": {
              "any_of": [
                {
                  "test": "has_biome_tag",
                  "value": "desert"
                },
                {
                  "test": "has_biome_tag",
                  "value": "mesa"
                }
              ]
            },
            "add": {
              "component_groups": [
                "desert_vindicator"
              ]
            }
          },
          {
            "filters": {
              "test": "has_biome_tag",
              "value": "jungle"
            },
            "add": {
              "component_groups": [
                "jungle_vindicator"
              ]
            }
          },
          {
            "filters": {
              "test": "has_biome_tag",
              "value": "savanna"
            },
            "add": {
              "component_groups": [
                "savanna_vindicator"
              ]
            }
          },
          {
            "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_vindicator"
              ]
            }
          },
          {
            "filters": {
              "test": "has_biome_tag",
              "value": "swamp"
            },
            "add": {
              "component_groups": [
                "swamp_vindicator"
              ]
            }
          },
          {
            "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_vindicator"
              ]
            }
          }
        ]
      },
      "minecraft:spawn_as_patrol_follower": {
        "sequence": [
          {
            "add": {
              "component_groups": [
                "minecraft:default_targeting",
                "minecraft:patrol_follower"
              ]
            }
          },
          {
            "filters": {
              "any_of": [
                {
                  "test": "has_biome_tag",
                  "value": "desert"
                },
                {
                  "test": "has_biome_tag",
                  "value": "mesa"
                }
              ]
            },
            "add": {
              "component_groups": [
                "desert_vindicator"
              ]
            }
          },
          {
            "filters": {
              "test": "has_biome_tag",
              "value": "jungle"
            },
            "add": {
              "component_groups": [
                "jungle_vindicator"
              ]
            }
          },
          {
            "filters": {
              "test": "has_biome_tag",
              "value": "savanna"
            },
            "add": {
              "component_groups": [
                "savanna_vindicator"
              ]
            }
          },
          {
            "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_vindicator"
              ]
            }
          },
          {
            "filters": {
              "test": "has_biome_tag",
              "value": "swamp"
            },
            "add": {
              "component_groups": [
                "swamp_vindicator"
              ]
            }
          },
          {
            "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_vindicator"
              ]
            }
          }
        ]
      },
      "minecraft:become_aggro": {
        "add": {
          "component_groups": [
            "minecraft:vindicator_aggro"
          ]
        }
      },
      "minecraft:stop_aggro": {
        "remove": {
          "component_groups": [
            "minecraft:vindicator_aggro"
          ]
        }
      },
      "minecraft:start_johnny": {
        "add": {
          "component_groups": [
            "minecraft:vindicator_johnny"
          ]
        }
      },
      "minecraft:stop_johnny": {
        "remove": {
          "component_groups": [
            "minecraft:vindicator_johnny"
          ]
        },
        "add": {
          "component_groups": [
            "minecraft:default_targeting"
          ]
        }
      },
      "minecraft:spawn_for_raid": {
        "sequence": [
          {
            "add": {
              "component_groups": [
                "minecraft:default_targeting",
                "minecraft:raid_configuration",
                "minecraft:illager_squad_captain"
              ]
            }
          },
          {
            "filters": {
              "any_of": [
                {
                  "test": "has_biome_tag",
                  "value": "desert"
                },
                {
                  "test": "has_biome_tag",
                  "value": "mesa"
                }
              ]
            },
            "add": {
              "component_groups": [
                "desert_vindicator"
              ]
            }
          },
          {
            "filters": {
              "test": "has_biome_tag",
              "value": "jungle"
            },
            "add": {
              "component_groups": [
                "jungle_vindicator"
              ]
            }
          },
          {
            "filters": {
              "test": "has_biome_tag",
              "value": "savanna"
            },
            "add": {
              "component_groups": [
                "savanna_vindicator"
              ]
            }
          },
          {
            "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_vindicator"
              ]
            }
          },
          {
            "filters": {
              "test": "has_biome_tag",
              "value": "swamp"
            },
            "add": {
              "component_groups": [
                "swamp_vindicator"
              ]
            }
          },
          {
            "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_vindicator"
              ]
            }
          }
        ]
      },
      "minecraft:spawn_as_illager_captain": {
        "sequence": [
          {
            "add": {
              "component_groups": [
                "minecraft:default_targeting",
                "minecraft:illager_squad_captain"
              ]
            }
          },
          {
            "filters": {
              "any_of": [
                {
                  "test": "has_biome_tag",
                  "value": "desert"
                },
                {
                  "test": "has_biome_tag",
                  "value": "mesa"
                }
              ]
            },
            "add": {
              "component_groups": [
                "desert_vindicator"
              ]
            }
          },
          {
            "filters": {
              "test": "has_biome_tag",
              "value": "jungle"
            },
            "add": {
              "component_groups": [
                "jungle_vindicator"
              ]
            }
          },
          {
            "filters": {
              "test": "has_biome_tag",
              "value": "savanna"
            },
            "add": {
              "component_groups": [
                "savanna_vindicator"
              ]
            }
          },
          {
            "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_vindicator"
              ]
            }
          },
          {
            "filters": {
              "test": "has_biome_tag",
              "value": "swamp"
            },
            "add": {
              "component_groups": [
                "swamp_vindicator"
              ]
            }
          },
          {
            "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_vindicator"
              ]
            }
          }
        ]
      },
      "minecraft:promote_to_patrol_captain": {
        "sequence": [
          {
            "add": {
              "component_groups": [
                "minecraft:default_targeting",
                "minecraft:patrol_captain"
              ]
            },
            "remove": {
              "component_groups": [
                "minecraft:patrol_follower"
              ]
            }
          },
          {
            "filters": {
              "any_of": [
                {
                  "test": "has_biome_tag",
                  "value": "desert"
                },
                {
                  "test": "has_biome_tag",
                  "value": "mesa"
                }
              ]
            },
            "add": {
              "component_groups": [
                "desert_vindicator"
              ]
            }
          },
          {
            "filters": {
              "test": "has_biome_tag",
              "value": "jungle"
            },
            "add": {
              "component_groups": [
                "jungle_vindicator"
              ]
            }
          },
          {
            "filters": {
              "test": "has_biome_tag",
              "value": "savanna"
            },
            "add": {
              "component_groups": [
                "savanna_vindicator"
              ]
            }
          },
          {
            "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_vindicator"
              ]
            }
          },
          {
            "filters": {
              "test": "has_biome_tag",
              "value": "swamp"
            },
            "add": {
              "component_groups": [
                "swamp_vindicator"
              ]
            }
          },
          {
            "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_vindicator"
              ]
            }
          }
        ]
      },
      "minecraft:promote_to_illager_captain": {
        "sequence": [
          {
            "add": {
              "component_groups": [
                "minecraft:default_targeting",
                "minecraft:illager_squad_captain"
              ]
            },
            "remove": {
              "component_groups": [
                "minecraft:patrol_follower"
              ]
            }
          },
          {
            "filters": {
              "any_of": [
                {
                  "test": "has_biome_tag",
                  "value": "desert"
                },
                {
                  "test": "has_biome_tag",
                  "value": "mesa"
                }
              ]
            },
            "add": {
              "component_groups": [
                "desert_vindicator"
              ]
            }
          },
          {
            "filters": {
              "test": "has_biome_tag",
              "value": "jungle"
            },
            "add": {
              "component_groups": [
                "jungle_vindicator"
              ]
            }
          },
          {
            "filters": {
              "test": "has_biome_tag",
              "value": "savanna"
            },
            "add": {
              "component_groups": [
                "savanna_vindicator"
              ]
            }
          },
          {
            "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_vindicator"
              ]
            }
          },
          {
            "filters": {
              "test": "has_biome_tag",
              "value": "swamp"
            },
            "add": {
              "component_groups": [
                "swamp_vindicator"
              ]
            }
          },
          {
            "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_vindicator"
              ]
            }
          }
        ]
      },
      "minecraft:raid_expired": {
        "sequence": [
          {
            "filters": { "test": "has_nametag", "value": false },
            "remove": { "component_groups": [ "minecraft:raid_persistence" ] }
          }
        ]
      },
      "minecraft:start_celebrating": {
        "add": {
          "component_groups": [
            "minecraft:celebrate"
          ]
        }
      },
      "minecraft:stop_celebrating": {
        "remove": {
          "component_groups": [
            "minecraft:celebrate"
          ]
        }
      },
      "admire_item_started_event": {
        "remove": {
          "component_groups": [
            "barter"
          ]
        }
      },
      "admire_item_stopped_event": {
        "add": {
          "component_groups": [
            "barter"
          ]
        }
      },
      "minecraft:melee_unit": {
        "remove": {
          "component_groups": [
            "crossbow_unit",
            "bow_unit",
            "spear_melee_unit"
          ]
        },
        "add": {
          "component_groups": [
            "melee_unit",
            "sword"
          ]
        }
      },
      "minecraft:crossbow_unit": {
        "remove": {
          "component_groups": [
            "melee_unit",
            "bow_unit",
            "spear_melee_unit"
          ]
        },
        "add": {
          "component_groups": [
            "crossbow_unit",
            "crossbow"
          ]
        }
      },
      "minecraft:bow_unit": {
        "remove": {
          "component_groups": [
            "melee_unit",
            "crossbow_unit",
            "spear_melee_unit"
          ]
        },
        "add": {
          "component_groups": [
            "bow_unit",
            "bow"
          ]
        }
      },
      "minecraft:spear_melee_unit": {
        "remove": {
          "component_groups": [
            "crossbow_unit",
            "melee_unit",
            "bow_unit"
          ]
        },
        "add": {
          "component_groups": [
            "spear_melee_unit",
            "spear"
          ]
        }
      },
      "minecraft:give_regeneration_illager": {
        "add": {
          "component_groups": [
            "regeneration"
          ]
        }
      }
    }
  }
}