{
  "format_version": "1.16.0",
  "minecraft:entity": {
    "description": {
      "identifier": "legacy:executioner_illager",
      "is_spawnable": true,
      "is_summonable": true,
      "is_experimental": false,
      "runtime_identifier": "minecraft:pillager"
    },
    "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:attack_sensor": {
        "minecraft:target_nearby_sensor": {
          "inside_range": 6,
          "outside_range": 7,
          "must_see": true,
          "on_inside_range": {
            "event": "minecraft:melee_mode",
            "target": "self"
          },
          "on_outside_range": {
            "event": "minecraft:ranged_mode",
            "target": "self"
          }
        }
      },
      "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:equipment": {
          "table": "loot_tables/entities/pillager_gear.json"
        },
        "minecraft:shooter": {
          "def": "minecraft:arrow"
        },
        "minecraft:variant": {
          "value": 0
        }
      },
      "minecraft:melee_attack": {
        "minecraft:behavior.melee_attack": {
          "priority": 4,
          "speed_multiplier": 1.0,
          "track_target": true
        },
        "minecraft:attack": {
          "damage": 5
        },
        "minecraft:variant": {
          "value": 1
        },
        "minecraft:equipment": {
          "table": "loot_tables/entities/executioner_gear.json"
        }
      },
      "minecraft:heavy_melee_attack": {
        "minecraft:behavior.delayed_attack": {
          "priority": 3,
          "speed_multiplier": 0.8,
          "require_complete_path": false,
          "track_target": true,
          "hit_delay_pct": 0.69,
          "attack_duration": 0.96,
          "reach_multiplier": 3
        },
        "minecraft:attack": {
          "damage": 5
        },
        "minecraft:variant": {
          "value": 4
        },
        "minecraft:equipment": {
          "table": "loot_tables/entities/executioner_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:bow_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:equipment": {
          "table": "loot_tables/entities/bow_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:spear_melee_attack": {
        "minecraft:behavior.melee_attack": {
          "priority": 4,
          "speed_multiplier": 1.0,
          "track_target": true
        },
        "minecraft:attack": {
          "damage": 7
        },
        "minecraft:variant": {
          "value": 3
        },
        "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
            }
          ]
        }
      },
      "masknope": {
        "minecraft:mark_variant": {
          "value": 0
        }
      },
      "mask": {
        "minecraft:mark_variant": {
          "value": 1
        }
      },
      "mask1": {
        "minecraft:mark_variant": {
          "value": 2
        }
      },
      "mask2": {
        "minecraft:mark_variant": {
          "value": 3
        }
      },
      "mask3": {
        "minecraft:mark_variant": {
          "value": 4
        }
      },
      "mask4": {
        "minecraft:mark_variant": {
          "value": 5
        }
      },
      "executioner_skin_0": {
        "minecraft:skin_id": {
          "value": 0
        }
      },
      "executioner_skin_1": {
        "minecraft:skin_id": {
          "value": 1
        }
      },
      "executioner_skin_2": {
        "minecraft:skin_id": {
          "value": 2
        }
      },
      "executioner_skin_3": {
        "minecraft:skin_id": {
          "value": 3
        }
      },
      "executioner_skin_4": {
        "minecraft:skin_id": {
          "value": 4
        }
      },
      "executioner_skin_5": {
        "minecraft:skin_id": {
          "value": 5
        }
      },
      "executioner_skin_6": {
        "minecraft:skin_id": {
          "value": 6
        }
      },
      "executioner_skin_7": {
        "minecraft:skin_id": {
          "value": 7
        }
      },
      "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": 5,
          "speed_multiplier": 1.0,
          "goal_radius": 2.0
        },
        "minecraft:navigation.walk": {
          "can_path_over_water": true,
          "avoid_water": true
        },
        "minecraft:loot": {
          "table": "loot_tables/entities/pillager_raid.json"
        },
        "minecraft:ambient_sound_interval": {
          "value": 2.0,
          "range": 4.0,
          "event_name": "ambient.in.raid"
        }
      },
      "go_back_to_spawn": {
        "minecraft:behavior.go_home": {
          "priority": 6,
          "interval": 200,
          "speed_multiplier": 1.0,
          "goal_radius": 10.0,
          "on_failed": {
              "event": "go_back_to_spawn_failed",
              "target": "self"
          }
        }
      },
      "minecraft:flag_user": {
        "minecraft:variant": {
          "value": 0
        },
        "minecraft:equipment": {
          "table": "loot_tables/entities/vindicator_captain_equipment.json",
          "slot_drop_chance": [
            {
              "slot": "slot.armor.chest",
              "drop_chance": 1.0
            }
          ]
        },
        "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:illager_squad_captain": {
        "minecraft:is_illager_captain": {},
        "minecraft:variant": {
          "value": 0
        },
        "minecraft:equipment": {
          "table": "loot_tables/entities/pillager_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:patrol_captain": {
        "minecraft:is_illager_captain": {},
        "minecraft:variant": {
          "value": 0
        },
        "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.hold_ground": {
          "priority": 5,
          "min_radius": 10,
          "broadcast": true,
          "broadcast_range": 8,
          "within_radius_event": {
            "event": "minecraft:ranged_mode",
            "target": "self"
          }
        },
        "minecraft:behavior.move_to_random_block": {
          "priority": 6,
          "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
        },
        "minecraft:behavior.hold_ground": {
          "priority": 6,
          "min_radius": 10,
          "broadcast": true,
          "broadcast_range": 8,
          "within_radius_event": {
            "event": "minecraft:ranged_mode",
            "target": "self"
          }
        }
      },
      "minecraft:squad_captain_protector": {
        "minecraft:behavior.follow_target_captain": {
          "priority": 5,
          "speed_multiplier": 0.8,
          "within_radius": 64,
          "follow_distance": 5
        },
        "minecraft:behavior.hold_ground": {
          "priority": 6,
          "min_radius": 10,
          "broadcast": true,
          "broadcast_range": 8,
          "within_radius_event": {
            "event": "minecraft:ranged_mode",
            "target": "self"
          }
        }
      }
    },
    "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:equip_item": {},
      "minecraft:collision_box": {
        "width": 0.6,
        "height": 1.9
      },
      "minecraft:type_family": {
        "family": [
          "pillager",
          "illager",
          "mob"
        ]
      },
      "minecraft:variant": {
        "value": 1
      },
      "minecraft:breathable": {
        "total_supply": 15,
        "suffocate_time": 0
      },
      "minecraft:health": {
        "value": 42,
        "max": 42
      },
      "minecraft:conditional_bandwidth_optimization": {},
      "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/pillager.json"
      },
      "minecraft:shareables": {
        "items": [
          {
            "item": "minecraft:banner:15",
            "want_amount": 1,
            "surplus_amount": 1,
            "priority": 0
          }
        ]
      },
      "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:nameable": {},
      "minecraft:equipment": {
        "table": "loot_tables/entities/executioner_gear.json"
      },
      "minecraft:behavior.float": {
        "priority": 0
      },
      "minecraft:damage_sensor": {
        "triggers": [
          {
            "on_damage": {
              "filters": [
                {
                  "test": "is_family",
                  "subject": "other",
                  "value": "illager"
                }
              ]
            },
            "deals_damage": false
          }
        ]
      },
      "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: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"
                },
                {
                  "test": "is_family",
                  "subject": "other",
                  "value": "undead"
                }
              ]
            },
            "max_dist": 16
          },
          {
            "filters": {
              "all_of": [
                {
                  "test": "is_family",
                  "subject": "other",
                  "value": "villager"
                },
                {
                  "test": "has_component",
                  "subject": "other",
                  "operator": "!\u003d",
                  "value": "minecraft:is_baby"
                }
              ]
            },
            "max_dist": 16
          }
        ]
      },
      "minecraft:behavior.equip_item": {
        "priority": 3
      },
      "minecraft:behavior.pickup_items": {
        "priority": 7,
        "max_dist": 3,
        "goal_radius": 2,
        "speed_multiplier": 1.0
      },
      "minecraft:behavior.random_stroll": {
        "priority": 8,
        "speed_multiplier": 0.55
      },
      "minecraft:behavior.look_at_player": {
        "priority": 9,
        "look_distance": 8
      },
      "minecraft:behavior.random_look_around": {
        "priority": 10
      },
      "minecraft:behavior.charge_held_item": {
        "priority": 3,
        "items": [
          "minecraft:arrow"
        ]
      },
      "minecraft:physics": {},
      "minecraft:pushable": {
        "is_pushable": true,
        "is_pushable_by_piston": true
      },
      "minecraft:follow_range": {
        "value": 64
      }
    },
    "events": {
      "minecraft:entity_spawned": {
        "sequence": [
          {
            "add": {
              "component_groups": [
                "go_back_to_spawn"
              ]
            }
          },
          {
            "randomize": [
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "executioner_skin_0",
                    "minecraft:heavy_melee_attack"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "executioner_skin_1",
                    "minecraft:heavy_melee_attack"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "executioner_skin_2",
                    "minecraft:heavy_melee_attack"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "executioner_skin_3",
                    "minecraft:heavy_melee_attack"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "executioner_skin_4",
                    "minecraft:heavy_melee_attack"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "executioner_skin_5",
                    "minecraft:heavy_melee_attack"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "executioner_skin_6",
                    "minecraft:heavy_melee_attack"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "executioner_skin_7",
                    "minecraft:heavy_melee_attack"
                  ]
                }
              }
            ]
          },
          {
            "randomize": [
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "masknope"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "mask"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "mask1"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "mask2"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "mask3"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "mask4"
                  ]
                }
              }
            ]
          }
        ]
      },
      "minecraft:spawn_for_raid": {
        "sequence": [
          {
            "add": {
              "component_groups": [
                "minecraft:raid_configuration"
              ]
            },
            "remove": {
              "component_groups": [
                "minecraft:squad_captain_protector",
                "go_back_to_spawn",
                "meeting_schedule"
              ]
            }
          },
          {
            "randomize": [
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "executioner_skin_0",
                    "minecraft:raid_configuration",
                    "minecraft:heavy_melee_attack"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "executioner_skin_1",
                    "minecraft:raid_configuration",
                    "minecraft:heavy_melee_attack"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "executioner_skin_2",
                    "minecraft:raid_configuration",
                    "minecraft:heavy_melee_attack"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "executioner_skin_3",
                    "minecraft:raid_configuration",
                    "minecraft:heavy_melee_attack"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "executioner_skin_4",
                    "minecraft:raid_configuration",
                    "minecraft:heavy_melee_attack"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "executioner_skin_5",
                    "minecraft:raid_configuration",
                    "minecraft:heavy_melee_attack"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "executioner_skin_6",
                    "minecraft:raid_configuration",
                    "minecraft:heavy_melee_attack"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "executioner_skin_7",
                    "minecraft:raid_configuration",
                    "minecraft:heavy_melee_attack"
                  ]
                }
              }
            ]
          },
          {
            "randomize": [
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "masknope"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "mask"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "mask1"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "mask2"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "mask3"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "mask4"
                  ]
                }
              }
            ]
          }
        ]
      },
      "minecraft:spawn_as_patrol_follower": {
        "sequence": [
          {
            "add": {
              "component_groups": [
                "minecraft:ranged_attack",
                "minecraft:patrol_follower"
              ]
            },
            "remove": {
              "component_groups": [
                "minecraft:squad_captain_protector",
                "go_back_to_spawn",
                "minecraft:raid_configuration"
              ]
            }
          },
          {
            "randomize": [
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "executioner_skin_0",
                    "minecraft:heavy_melee_attack"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "executioner_skin_1",
                    "minecraft:heavy_melee_attack"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "executioner_skin_2",
                    "minecraft:heavy_melee_attack"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "executioner_skin_3",
                    "minecraft:heavy_melee_attack"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "executioner_skin_4",
                    "minecraft:heavy_melee_attack"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "executioner_skin_5",
                    "minecraft:heavy_melee_attack"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "executioner_skin_6",
                    "minecraft:heavy_melee_attack"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "executioner_skin_7",
                    "minecraft:heavy_melee_attack"
                  ]
                }
              }
            ]
          },
          {
            "randomize": [
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "masknope"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "mask"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "mask1"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "mask2"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "mask3"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "mask4"
                  ]
                }
              }
            ]
          }
        ]
      },
      "minecraft:spawn_as_illager_captain": {
        "sequence": [
          {
            "add": {
              "component_groups": [
                "minecraft:ranged_attack",
                "become_pillagersquadcaptain",
                "minecraft:illager_squad_captain"
              ]
            },
            "remove": {
              "component_groups": [
                "minecraft:squad_captain_protector",
                "go_back_to_spawn",
                "minecraft:raid_configuration"
              ]
            }
          },
          {
            "randomize": [
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "executioner_skin_0",
                    "minecraft:heavy_melee_attack"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "executioner_skin_1",
                    "minecraft:heavy_melee_attack"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "executioner_skin_2",
                    "minecraft:heavy_melee_attack"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "executioner_skin_3",
                    "minecraft:heavy_melee_attack"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "executioner_skin_4",
                    "minecraft:heavy_melee_attack"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "executioner_skin_5",
                    "minecraft:heavy_melee_attack"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "executioner_skin_6",
                    "minecraft:heavy_melee_attack"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "executioner_skin_7",
                    "minecraft:melee_attack"
                  ]
                }
              }
            ]
          },
          {
            "randomize": [
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "masknope"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "mask"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "mask1"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "mask2"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "mask3"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "mask4"
                  ]
                }
              }
            ]
          }
        ]
      },
      "minecraft:promote_to_patrol_captain": {
        "sequence": [
          {
            "add": {
              "component_groups": [
                "minecraft:ranged_attack",
                "minecraft:patrol_captain"
              ]
            },
            "remove": {
              "component_groups": [
                "minecraft:patrol_follower",
                "go_back_to_spawn",
                "minecraft:squad_captain_protector"
              ]
            }
          },
          {
            "randomize": [
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "executioner_skin_0",
                    "minecraft:heavy_melee_attack"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "executioner_skin_1",
                    "minecraft:heavy_melee_attack"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "executioner_skin_2",
                    "minecraft:heavy_melee_attack"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "executioner_skin_3",
                    "minecraft:heavy_melee_attack"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "executioner_skin_4",
                    "minecraft:heavy_melee_attack"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "executioner_skin_5",
                    "minecraft:heavy_melee_attack"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "executioner_skin_6",
                    "minecraft:heavy_melee_attack"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "executioner_skin_7",
                    "minecraft:heavy_melee_attack"
                  ]
                }
              }
            ]
          },
          {
            "randomize": [
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "masknope"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "mask"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "mask1"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "mask2"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "mask3"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "mask4"
                  ]
                }
              }
            ]
          }
        ]
      },
      "minecraft:flag_on_raid": {
        "sequence": [
          {
            "add": {
              "component_groups": [
                "minecraft:raid_configuration",
                "minecraft:flag_user"
              ]
            },
            "remove": {
              "component_groups": [
                "minecraft:squad_captain_protector",
                "go_back_to_spawn"
              ]
            }
          },
          {
            "randomize": [
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "executioner_skin_0",
                    "minecraft:heavy_melee_attack"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "executioner_skin_1",
                    "minecraft:heavy_melee_attack"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "executioner_skin_2",
                    "minecraft:heavy_melee_attack"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "executioner_skin_3",
                    "minecraft:heavy_melee_attack"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "executioner_skin_4",
                    "minecraft:heavy_melee_attack"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "executioner_skin_5",
                    "minecraft:heavy_melee_attack"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "executioner_skin_6",
                    "minecraft:heavy_melee_attack"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "executioner_skin_7",
                    "minecraft:heavy_melee_attack"
                  ]
                }
              }
            ]
          },
          {
            "randomize": [
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "masknope"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "mask"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "mask1"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "mask2"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "mask3"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "mask4"
                  ]
                }
              }
            ]
          }
        ]
      },
      "minecraft:melee_mode": {
        "remove": {
          "component_groups": [
            "minecraft:ranged_attack",
            "minecraft:spear_melee_attack",
            "minecraft:bow_ranged_attack"
          ]
        },
        "add": {
          "component_groups": [
            "minecraft:heavy_melee_attack"
          ]
        }
      },
      "minecraft:ranged_mode": {
        "remove": {
          "component_groups": [
            "minecraft:heavy_melee_attack",
            "minecraft:spear_melee_attack",
            "minecraft:bow_ranged_attack"
          ]
        },
        "add": {
          "component_groups": [
            "minecraft:ranged_attack"
          ]
        }
      },
      "minecraft:bow_ranged_mode": {
        "remove": {
          "component_groups": [
            "minecraft:melee_attack",
            "minecraft:spear_melee_attack",
            "minecraft:melee_attack"
          ]
        },
        "add": {
          "component_groups": [
            "minecraft:bow_ranged_attack"
          ]
        }
      },
      "minecraft:spear_melee_mode": {
        "remove": {
          "component_groups": [
            "minecraft:melee_attack",
            "minecraft:ranged_attack",
            "minecraft:bow_ranged_attack"
          ]
        },
        "add": {
          "component_groups": [
            "minecraft:spear_melee_attack"
          ]
        }
      },
      "minecraft:start_celebrating": {
        "add": {
          "component_groups": [
            "minecraft:celebrate"
          ]
        }
      },
      "minecraft:stop_celebrating": {
        "remove": {
          "component_groups": [
            "minecraft:celebrate"
          ]
        }
      },
      "minecraft:calm": {
        "remove": {
          "component_groups": [
            "minecraft:melee_attack",
            "minecraft:ranged_attack"
          ]
        }
      },
      "go_back_to_spawn_failed": {
        "remove": {
          "component_groups": [
            "go_back_to_spawn"
          ]
        }
      },
      "minecraft:attack_sensor": {
        "add": {
          "component_groups": [
            "minecraft:attack_sensor"
          ]
        }
      },
      "minecraft:give_regeneration_illager": {
        "add": {
          "component_groups": [
            "regeneration"
          ]
        }
      }
    }
  }
}