{
  "format_version": "1.8.0",
  "minecraft:entity": {
    "description": {
      "identifier": "minecraft:pillager",
      "is_spawnable": true,
      "is_summonable": true,
      "is_experimental": false
    },
    "component_groups": {
      "minecraft:ranged_attack": {
        "minecraft:behavior.ranged_attack": {
          "priority": 4,
          "attack_interval_min": 1,
          "attack_interval_max": 1,
          "attack_radius": 8
        },
        "minecraft:shooter": {
          "type": "Arrow",
          "def": "minecraft:arrow"
        },
        "minecraft:environment_sensor": {
          "on_environment": {
            "filters": {
              "test": "is_underwater",
              "subject": "self",
              "operator": "==",
              "value": true
            },
            "event": "minecraft:melee_mode"
          }
        }
      },
      "minecraft:melee_attack": {
        "minecraft:behavior.melee_attack": {
          "priority": 4,
          "target_dist": 1.2,
          "speed_multiplier": 1,
          "track_target": true
        },
        "minecraft:environment_sensor": {
          "on_environment": {
            "filters": {
              "test": "in_water",
              "subject": "self",
              "operator": "==",
              "value": false
            },
            "event": "minecraft:ranged_mode"
          }
        }
      },
      "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
        },
        "minecraft:loot": {
          "table": "loot_tables/entities/pillager_raid.json"
        },
        "minecraft:ambient_sound_interval": {
          "value": 2.0,
          "range": 4.0,
          "event_name": "ambient.in.raid"
        }
      },
      "minecraft:illager_squad_captain": {
        "minecraft:is_illager_captain": {},
        "minecraft:variant": {
          "value": 1
        },
        "minecraft:equipment": {
          "table": "loot_tables/entities/pillager_captain_equipment.json",
          "slot_drop_chance": [
            {
              "slot": "slot.armor.chest",
              "drop_chance": 1.0
            }
          ]
        },
        "minecraft:damage_sensor": {
          "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": 1
        },
        "minecraft:equipment": {
          "table": "loot_tables/entities/pillager_captain_equipment.json",
          "slot_drop_chance": [
            {
              "slot": "slot.armor.chest",
              "drop_chance": 1.0
            }
          ]
        },
        "minecraft:damage_sensor": {
          "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:collision_box": {
        "height": 1.9,
        "width": 0.6
      },
      "minecraft:type_family": {
        "family": [
          "pillager",
          "monster",
          "illager"
        ]
      },
      "minecraft:variant": {
        "value": 0
      },
      "minecraft:breathable": {
        "totalSupply": 15,
        "suffocateTime": 0
      },
      "minecraft:health": {
        "value": 24,
        "max": 24
      },
      "minecraft:loot": {
        "table": "loot_tables/entities/pillager.json"
      },
      "minecraft:movement": {
        "value": 0.35
      },
      "minecraft:navigation.walk": {
        "can_path_over_water": true
      },
      "minecraft:movement.basic": {},
      "minecraft:jump.static": {},
      "minecraft:nameable": {
        "alwaysShow": false,
        "allowNameTagRenaming": false
      },
      "minecraft:equipment": {
        "table": "loot_tables/entities/pillager_gear.json"
      },
      "minecraft:behavior.float": {
        "priority": 0
      },
      "minecraft:behavior.hurt_by_target": {
        "priority": 3
      },
      "minecraft:behavior.nearest_attackable_target": {
        "priority": 2,
        "within_radius": 16.0,
        "reselect_targets": true,
        "entity_types": [
          {
            "filters": {
              "any_of": [
                {
                  "test": "is_family",
                  "subject": "other",
                  "value": "player"
                },
                {
                  "test": "is_family",
                  "subject": "other",
                  "value": "irongolem"
                },
                {
                  "test": "is_family",
                  "subject": "other",
                  "value": "wandering_trader"
                }
              ]
            },
            "max_dist": 16.0,
            "must_see": false
          },
          {
            "filters": {
              "all_of": [
                {
                  "test": "is_family",
                  "subject": "other",
                  "value": "villager"
                },
                {
                  "test": "has_component",
                  "subject": "other",
                  "operator": "!=",
                  "value": "minecraft:is_baby"
                }
              ]
            },
            "max_dist": 16
          }
        ],
        "must_see": false,
        "must_reach": false
      },
      "minecraft:behavior.random_stroll": {
        "priority": 6,
        "speed_multiplier": 1
      },
      "minecraft:behavior.look_at_player": {
        "priority": 7,
        "look_distance": 8
      },
      "minecraft:behavior.random_look_around": {
        "priority": 7
      },
      "minecraft:behavior.charge_held_item": {
        "priority": 3,
        "items": [
          "minecraft:arrow"
        ]
      },
      "minecraft:physics": {},
      "minecraft:follow_range": {
        "value": 64
      },
      "minecraft:experience_reward": {
        "on_death": "query.last_hit_by_player ? 10 : 0"
      },
      "minecraft:underwater_movement": {
        "value": 0.02
      },
      "minecraft:scale": {
        "value": 1
      },
      "minecraft:rideable": {
        "seat_count": 1,
        "family_types": [
          "anaconda"
        ],
        "interact_text": "action.interact.mount",
        "pull_in_entities": true,
        "seats": [
          {
            "position": [
              0.0,
              0.0,
              0.0
            ]
          }
        ]
      },
      "minecraft:addrider": {
        "entity_type": null
      },
      "minecraft:attack": {
        "damage": 3
      },
      "minecraft:behavior.melee_attack": {
        "priority": 2,
        "speed_multiplier": 1.0,
        "target_dist": 0.0,
        "max_dist": 3,
        "random_stop_interval": 100,
        "track_target": false,
        "reach_multiplier": 1.4
      },
      "minecraft:behavior.owner_hurt_by_target": {
        "priority": 1
      },
      "minecraft:behavior.owner_hurt_target": {
        "priority": 2
      },
      "minecraft:equip_item": {}
    },
    "events": {
      "minecraft:entity_spawned": {
        "add": {
          "component_groups": [
            "minecraft:ranged_attack"
          ]
        }
      },
      "minecraft:spawn_for_raid": {
        "add": {
          "component_groups": [
            "minecraft:ranged_attack",
            "minecraft:raid_configuration"
          ]
        }
      },
      "minecraft:spawn_as_patrol_follower": {
        "add": {
          "component_groups": [
            "minecraft:ranged_attack",
            "minecraft:patrol_follower"
          ]
        }
      },
      "minecraft:spawn_as_illager_captain": {
        "add": {
          "component_groups": [
            "minecraft:ranged_attack",
            "minecraft:illager_squad_captain"
          ]
        }
      },
      "minecraft:promote_to_illager_captain": {
        "add": {
          "component_groups": [
            "minecraft:illager_squad_captain"
          ]
        },
        "remove": {
          "component_groups": [
            "minecraft:patrol_follower"
          ]
        }
      },
      "minecraft:promote_to_patrol_captain": {
        "add": {
          "component_groups": [
            "minecraft:patrol_captain"
          ]
        },
        "remove": {
          "component_groups": [
            "minecraft:patrol_follower"
          ]
        }
      },
      "minecraft:melee_mode": {
        "remove": {
          "component_groups": [
            "minecraft:ranged_attack"
          ]
        },
        "add": {
          "component_groups": [
            "minecraft:melee_attack"
          ]
        }
      },
      "minecraft:ranged_mode": {
        "remove": {
          "component_groups": [
            "minecraft:melee_attack"
          ]
        },
        "add": {
          "component_groups": [
            "minecraft:ranged_attack"
          ]
        }
      },
      "on:death": {
        "run_command": {
          "command": []
        }
      },
      "on:hurt": {
        "run_command": {
          "command": []
        }
      },
      "on:hurt_by_player": {
        "run_command": {
          "command": []
        }
      },
      "on:ignite": {
        "run_command": {
          "command": []
        }
      },
      "on:target_acquired": {
        "run_command": {
          "command": []
        }
      },
      "on:target_escape": {
        "run_command": {
          "command": []
        }
      },
      "on:wake_with_owner": {
        "run_command": {
          "command": []
        }
      }
    }
  }
}