{
	"format_version" : "1.16.0",
	"minecraft:entity" : {
		"description" : {
			"identifier" : "minecraft:pillager",
			"is_spawnable" : true,
			"is_summonable" : true,
			"is_experimental" : false
		},
		"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"
					}
				}
			},
			"minecraft:ranged_attack" : {
				"minecraft:behavior.ranged_attack" : {
					"priority" : 4,
					"attack_interval_min" : 1.0,
					"attack_interval_max" : 1.0,
					"attack_radius" : 8.0
				},
				"minecraft:shooter" : {
					"def" : "minecraft:arrow"
				},
				"minecraft:environment_sensor" : {
					"triggers" : {
						"filters" : {
							"test" : "is_underwater",
							"subject" : "self",
							"operator" : "==",
							"value" : true
						},
						"event" : "minecraft:melee_mode"
					}
				}
			},
			"minecraft:melee_attack" : {
				"minecraft:behavior.melee_attack" : {
					"priority" : 4,
					"track_target" : true
				},
				"minecraft:attack" : {
					"damage" : 3
				},
				"minecraft:environment_sensor" : {
					"triggers" : {
						"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,
					"goal_radius" : 2.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" : {
					"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:on_hurt" : {
					"event" : "minecraft:ranged_mode",
					"target" : "self"
				},
				"minecraft:on_hurt_by_player" : {
					"event" : "minecraft:ranged_mode",
					"target" : "self"
				}
			},
			"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" : {
					"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:on_hurt" : {
					"event" : "minecraft:ranged_mode",
					"target" : "self"
				},
				"minecraft:on_hurt_by_player" : {
					"event" : "minecraft:ranged_mode",
					"target" : "self"
				},
				"minecraft:on_target_escape" : {
					"event" : "minecraft:calm",
					"target" : "self"
				},
				"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:on_hurt" : {
					"event" : "minecraft:ranged_mode",
					"target" : "self"
				},
				"minecraft:on_hurt_by_player" : {
					"event" : "minecraft:ranged_mode",
					"target" : "self"
				},
				"minecraft:on_target_escape" : {
					"event" : "minecraft:calm",
					"target" : "self"
				}
			},
			"rare_pillager" : {
				"minecraft:health" : {
					"value" : 44,
					"max" : 44
				},
				"minecraft:loot" : {
					"table" : "loot_tables/entities/tartarean/rare_pillager.json"
				},
				"minecraft:experience_reward" : {
					"on_death" : "20"
				},
				"minecraft:spell_effects" : {
					"add_effects" : [
						{
							"effect" : "conduit_power",
							"duration" : 999999,
							"visible" : true
						}
					]
				},
				"minecraft:movement" : {
					"value" : 0.65
				}
			},
			"rare_bullwark" : {
				"minecraft:boss" : {
					"hud_range" : 10,
					"name" : "§bRare Armoured Pillager The Defender"
				},
				"minecraft:spell_effects" : {
					"add_effects" : [
						{
							"effect" : "resistance",
							"duration" : 999999,
							"amplifier" : 1,
							"visible" : false
						}
					]
				}
			},
			"rare_cloaking" : {
				"minecraft:boss" : {
					"hud_range" : 10,
					"name" : "§bRare Unseen Pillager Of Stalking"
				},
				"minecraft:spell_effects" : {
					"add_effects" : [
						{
							"effect" : "invisibility",
							"duration" : 999999,
							"visible" : false
						},
						{
							"effect" : "conduit_power",
							"duration" : 999999,
							"visible" : true
						}
					]
				}
			},
			"rare_ender" : {
				"minecraft:boss" : {
					"hud_range" : 20,
					"name" : "§bRare Enderborn Pillager The Trickster"
				},
				"minecraft:teleport" : {
					"random_teleports" : true,
					"max_random_teleport_time" : 30,
					"random_teleport_cube" : [ 32, 32, 32 ],
					"target_distance" : 16,
					"target_teleport_chance" : 0.10,
					"light_teleport_chance" : 0.10
				}
			},
			"rare_ninja" : {
				"minecraft:boss" : {
					"hud_range" : 20,
					"name" : "§bRare Innerly Peaceful Pillager Of Equilibrium"
				},
				"minecraft:teleport" : {
					"random_teleports" : true,
					"max_random_teleport_time" : 30,
					"random_teleport_cube" : [ 32, 32, 32 ],
					"target_distance" : 16,
					"target_teleport_chance" : 0.10,
					"light_teleport_chance" : 0.10
				}
			},
			"rare_sprint" : {
				"minecraft:boss" : {
					"hud_range" : 10,
					"name" : "§bRare Sprinting Pillager Of Bolting"
				},
				"minecraft:spell_effects" : {
					"add_effects" : [
						{
							"effect" : "speed",
							"duration" : 999999,
							"amplifier" : 1,
							"visible" : false
						}
					]
				}
			},
			"ultra_pillager" : {
				"minecraft:health" : {
					"value" : 64,
					"max" : 64
				},
				"minecraft:loot" : {
					"table" : "loot_tables/entities/tartarean/ultra_pillager.json"
				},
				"minecraft:experience_reward" : {
					"on_death" : "40"
				},
				"minecraft:spell_effects" : {
					"add_effects" : [
						{
							"effect" : "haste",
							"duration" : 999999,
							"visible" : true
						}
					]
				},
				"minecraft:movement" : {
					"value" : 0.95
				}
			},
			"ultra_bullwark" : {
				"minecraft:boss" : {
					"hud_range" : 20,
					"name" : "§eUltra Defensive Pillager Of Turtling"
				},
				"minecraft:spell_effects" : {
					"add_effects" : [
						{
							"effect" : "resistance",
							"duration" : 999999,
							"amplifier" : 2,
							"visible" : false
						}
					]
				}
			},
			"ultra_cloaking" : {
				"minecraft:boss" : {
					"hud_range" : 20,
					"name" : "§eUltra Stalking Pillager The Unseen"
				},
				"minecraft:spell_effects" : {
					"add_effects" : [
						{
							"effect" : "invisibility",
							"duration" : 999999,
							"visible" : false
						},
						{
							"effect" : "haste",
							"duration" : 999999,
							"visible" : true
						}
					]
				}
			},
			"ultra_ender" : {
				"minecraft:boss" : {
					"hud_range" : 40,
					"name" : "§eUltra Tricky Pillager The Enderborn"
				},
				"minecraft:teleport" : {
					"random_teleports" : true,
					"max_random_teleport_time" : 15,
					"random_teleport_cube" : [ 16, 16, 16 ],
					"target_distance" : 32,
					"target_teleport_chance" : 0.5,
					"light_teleport_chance" : 0.5
				}
			},
			"ultra_ninja" : {
				"minecraft:boss" : {
					"hud_range" : 40,
					"name" : "§eUltra Totally Zen Pillager Of Inner Peace"
				},
				"minecraft:teleport" : {
					"random_teleports" : true,
					"max_random_teleport_time" : 15,
					"random_teleport_cube" : [ 16, 16, 16 ],
					"target_distance" : 32,
					"target_teleport_chance" : 0.5,
					"light_teleport_chance" : 0.5
				}
			},
			"ultra_sprint" : {
				"minecraft:boss" : {
					"hud_range" : 20,
					"name" : "§eUltra Charging Pillager The Swift One"
				},
				"minecraft:spell_effects" : {
					"add_effects" : [
						{
							"effect" : "speed",
							"duration" : 999999,
							"amplifier" : 2,
							"visible" : false
						}
					]
				}
			},
			"infernal_pillager" : {
				"minecraft:health" : {
					"value" : 84,
					"max" : 84
				},
				"minecraft:loot" : {
					"table" : "loot_tables/entities/tartarean/infernal_pillager.json"
				},
				"minecraft:experience_reward" : {
					"on_death" : "60"
				},
				"minecraft:spell_effects" : {
					"add_effects" : [
						{
							"effect" : "saturation",
							"duration" : 999999,
							"visible" : true
						}
					]
				},
				"minecraft:movement" : {
					"value" : 1.25
				}
			},
			"infernal_bullwark" : {
				"minecraft:boss" : {
					"hud_range" : 30,
					"name" : "§cInfernal Turtling Pillager Of Effing Armor"
				},
				"minecraft:spell_effects" : {
					"add_effects" : [
						{
							"effect" : "resistance",
							"duration" : 999999,
							"amplifier" : 3,
							"visible" : false
						}
					]
				}
			},
			"infernal_cloaking" : {
				"minecraft:boss" : {
					"hud_range" : 40,
					"name" : "§cInfernal Hunting Pillager The Predator"
				},
				"minecraft:spell_effects" : {
					"add_effects" : [
						{
							"effect" : "invisibility",
							"duration" : 999999,
							"visible" : false
						},
						{
							"effect" : "saturation",
							"duration" : 999999,
							"visible" : true
						}
					]
				}
			},
			"infernal:ender" : {
				"minecraft:boss" : {
					"hud_range" : 80,
					"name" : "§cInfernal Enderborn Pillager The Trickster"
				},
				"minecraft:teleport" : {
					"random_teleports" : true,
					"max_random_teleport_time" : 7,
					"random_teleport_cube" : [ 8, 8, 8 ],
					"target_distance" : 64,
					"target_teleport_chance" : 1,
					"light_teleport_chance" : 1
				}
			},
			"infernal_ninja" : {
				"minecraft:boss" : {
					"hud_range" : 80,
					"name" : "§cInfernal Ronin Pillager The Zen Master"
				},
				"minecraft:teleport" : {
					"random_teleports" : true,
					"max_random_teleport_time" : 7,
					"random_teleport_cube" : [ 8, 8, 8 ],
					"target_distance" : 64,
					"target_teleport_chance" : 1,
					"light_teleport_chance" : 1
				}
			},
			"infernal_sprint" : {
				"minecraft:boss" : {
					"hud_range" : 30,
					"name" : "§cInfernal Swift Pillager Of Being In Your Face"
				},
				"minecraft:spell_effects" : {
					"add_effects" : [
						{
							"effect" : "speed",
							"duration" : 999999,
							"amplifier" : 3,
							"visible" : false
						}
					]
				}
			}
		},
		"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", "monster", "illager", "mob" ]
			},
			"minecraft:variant" : {
				"value" : 0
			},
			"minecraft:breathable" : {
				"total_supply" : 15,
				"suffocate_time" : 0
			},
			"minecraft:health" : {
				"value" : 24,
				"max" : 24
			},
			"minecraft:conditional_bandwidth_optimization" : {},
			"minecraft:hurt_on_condition" : {
				"damage_conditions" : [
					{
						"filters" : {
							"test" : "in_lava",
							"subject" : "self",
							"operator" : "==",
							"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
			},
			"minecraft:movement.basic" : {},
			"minecraft:jump.static" : {},
			"minecraft:nameable" : {},
			"minecraft:equipment" : {
				"table" : "loot_tables/entities/pillager_gear.json"
			},
			"minecraft:despawn" : {
				"despawn_from_distance" : {}
			},
			"minecraft:behavior.float" : {
				"priority" : 0
			},
			"minecraft:behavior.hurt_by_target" : {
				"priority" : 1,
				"entity_types" : {
					"filters" : {
						"test" : "is_family",
						"subject" : "other",
						"operator" : "!=",
						"value" : "illager"
					},
					"max_dist" : 64
				}
			},
			"minecraft:behavior.nearest_attackable_target" : {
				"priority" : 2,
				"must_see" : true,
				"reselect_targets" : true,
				"within_radius" : 16.0,
				"entity_types" : [
					{
						"filters" : {
							"any_of" : [
								{
									"test" : "is_family",
									"subject" : "other",
									"value" : "player"
								},
								{
									"test" : "is_family",
									"subject" : "other",
									"value" : "irongolem"
								},
								{
									"test" : "is_family",
									"subject" : "other",
									"value" : "wandering_trader"
								}
							]
						},
						"max_dist" : 16
					},
					{
						"filters" : {
							"all_of" : [
								{
									"test" : "is_family",
									"subject" : "other",
									"value" : "villager"
								},
								{
									"test" : "has_component",
									"subject" : "other",
									"operator" : "!=",
									"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" : 1
			},
			"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" : {
				"randomize" : [
					{
						"weight" : 9500,
						"add" : {
							"component_groups" : [ "minecraft:ranged_attack" ]
						}
					},
					{
						"weight" : 75,
						"add" : {
							"component_groups" : [ "rare_pillager", "rare_bullwark", "minecraft:ranged_attack" ]
						}
					},
					{
						"weight" : 75,
						"add" : {
							"component_groups" : [ "rare_pillager", "rare_cloaking", "minecraft:ranged_attack" ]
						}
					},
					{
						"weight" : 75,
						"add" : {
							"component_groups" : [ "rare_pillager", "rare_ender", "minecraft:ranged_attack" ]
						}
					},
					{
						"weight" : 75,
						"add" : {
							"component_groups" : [ "rare_pillager", "rare_ninja", "minecraft:ranged_attack" ]
						}
					},
					{
						"weight" : 75,
						"add" : {
							"component_groups" : [ "rare_pillager", "rare_sprint", "minecraft:ranged_attack" ]
						}
					},
					{
						"weight" : 25,
						"add" : {
							"component_groups" : [ "ultra_pillager", "ultra_bullwark", "minecraft:ranged_attack" ]
						}
					},
					{
						"weight" : 25,
						"add" : {
							"component_groups" : [ "ultra_pillager", "ultra_cloaking", "minecraft:ranged_attack" ]
						}
					},
					{
						"weight" : 25,
						"add" : {
							"component_groups" : [ "ultra_pillager", "ultra_ender", "minecraft:ranged_attack" ]
						}
					},
					{
						"weight" : 25,
						"add" : {
							"component_groups" : [ "ultra_pillager", "ultra_ninja", "minecraft:ranged_attack" ]
						}
					},
					{
						"weight" : 25,
						"add" : {
							"component_groups" : [ "ultra_pillager", "ultra_sprint", "minecraft:ranged_attack" ]
						}
					},
					{
						"weight" : 5,
						"add" : {
							"component_groups" : [ "infernal_pillager", "infernal_bullwark", "minecraft:ranged_attack" ]
						}
					},
					{
						"weight" : 5,
						"add" : {
							"component_groups" : [ "infernal_pillager", "infernal_cloaking", "minecraft:ranged_attack" ]
						}
					},
					{
						"weight" : 5,
						"add" : {
							"component_groups" : [ "infernal_pillager", "infernal_ender", "minecraft:ranged_attack" ]
						}
					},
					{
						"weight" : 5,
						"add" : {
							"component_groups" : [ "infernal_pillager", "infernal_ninja", "minecraft:ranged_attack" ]
						}
					},
					{
						"weight" : 5,
						"add" : {
							"component_groups" : [ "infernal_pillager", "infernal_sprint", "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: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" ]
				}
			},
			"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" ]
				}
			}
		}
	}
}
