{
	"format_version" : "1.16.0",
	"minecraft:entity" : {
		"description" : {
			"identifier" : "minecraft:witch",
			"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: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" : 3,
					"speed_multiplier" : 1.2,
					"goal_radius" : 2.0
				},
				"minecraft:ambient_sound_interval" : {
					"value" : 2.0,
					"range" : 4.0,
					"event_name" : "ambient.in.raid"
				}
			},
			"rare_witch" : {
				"minecraft:health" : {
					"value" : 36,
					"max" : 36
				},
				"minecraft:loot" : {
					"table" : "loot_tables/entities/tartarean/rare_witch.json"
				},
				"minecraft:experience_reward" : {
					"on_death" : "20"
				},
				"minecraft:spell_effects" : {
					"add_effects" : [
						{
							"effect" : "conduit_power",
							"duration" : 999999,
							"visible" : true
						}
					]
				},
				"minecraft:movement" : {
					"value" : 0.45
				}
			},
			"rare_alchemist" : {
				"minecraft:boss" : {
					"hud_range" : 10,
					"name" : "§bElite Brewing Witch The Witchkin"
				},
				"minecraft:behavior.ranged_attack" : {
					"priority" : 2,
					"speed_multiplier" : 1.0,
					"attack_interval_min" : 3,
					"attack_interval_max" : 3,
					"attack_radius" : 10.0
				}
			},
			"rare_bullwark" : {
				"minecraft:boss" : {
					"hud_range" : 10,
					"name" : "§bElite Armoured Witch The Defender"
				},
				"minecraft:spell_effects" : {
					"add_effects" : [
						{
							"effect" : "resistance",
							"duration" : 999999,
							"amplifier" : 1,
							"visible" : false
						}
					]
				}
			},
			"rare_cloaking" : {
				"minecraft:boss" : {
					"hud_range" : 10,
					"name" : "§bElite Unseen Witch 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" : "§bElite Enderborn Witch 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" : "§bElite Innerly Peaceful Witch 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_regen" : {
				"minecraft:boss" : {
					"hud_range" : 10,
					"name" : "§bElite Regenerating Witch Of First Aid"
				}
			},
			"rare_sprint" : {
				"minecraft:boss" : {
					"hud_range" : 10,
					"name" : "§bElite Sprinting Witch Of Bolting"
				},
				"minecraft:spell_effects" : {
					"add_effects" : [
						{
							"effect" : "speed",
							"duration" : 999999,
							"amplifier" : 1,
							"visible" : false
						}
					]
				}
			},
			"ultra_witch" : {
				"minecraft:health" : {
					"value" : 46,
					"max" : 46
				},
				"minecraft:loot" : {
					"table" : "loot_tables/entities/tartarean/ultra_witch.json"
				},
				"minecraft:experience_reward" : {
					"on_death" : "40"
				},
				"minecraft:spell_effects" : {
					"add_effects" : [
						{
							"effect" : "haste",
							"duration" : 999999,
							"visible" : true
						}
					]
				},
				"minecraft:movement" : {
					"value" : 0.65
				}
			},
			"ultra_alchemist" : {
				"minecraft:boss" : {
					"hud_range" : 20,
					"name" : "§eUltra Witchkin Witch The Singed"
				},
				"minecraft:behavior.ranged_attack" : {
					"priority" : 2,
					"speed_multiplier" : 2.0,
					"attack_interval_min" : 2,
					"attack_interval_max" : 2,
					"attack_radius" : 20.0
				}
			},
			"ultra_bullwark" : {
				"minecraft:boss" : {
					"hud_range" : 20,
					"name" : "§eUltra Defensive Witch 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 Witch 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 Witch 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 Witch 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_regen" : {
				"minecraft:boss" : {
					"hud_range" : 20,
					"name" : "§eUltra Healing Witch Of First Aid"
				}
			},
			"ultra_sprint" : {
				"minecraft:boss" : {
					"hud_range" : 20,
					"name" : "§eUltra Charging Witch The Swift One"
				},
				"minecraft:spell_effects" : {
					"add_effects" : [
						{
							"effect" : "speed",
							"duration" : 999999,
							"amplifier" : 2,
							"visible" : false
						}
					]
				}
			},
			"infernal_witch" : {
				"minecraft:health" : {
					"value" : 56,
					"max" : 56
				},
				"minecraft:loot" : {
					"table" : "loot_tables/entities/tartarean/infernal_witch.json"
				},
				"minecraft:experience_reward" : {
					"on_death" : "60"
				},
				"minecraft:spell_effects" : {
					"add_effects" : [
						{
							"effect" : "saturation",
							"duration" : 999999,
							"visible" : true
						}
					]
				},
				"minecraft:movement" : {
					"value" : 0.85
				}
			},
			"infernal_alchemist" : {
				"minecraft:boss" : {
					"hud_range" : 30,
					"name" : "§cInfernal Singed Witch Of Brewing Master"
				},
				"minecraft:behavior.ranged_attack" : {
					"priority" : 2,
					"speed_multiplier" : 3.0,
					"attack_interval_min" : 1,
					"attack_interval_max" : 1,
					"attack_radius" : 30.0
				}
			},
			"infernal_bullwark" : {
				"minecraft:boss" : {
					"hud_range" : 30,
					"name" : "§cInfernal Turtling Witch 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 Witch 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 Witch 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 Witch 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_regen" : {
				"minecraft:boss" : {
					"hud_range" : 30,
					"name" : "§cInfernal Nigh Unkillable Witch Of First Aid"
				}
			},
			"infernal_sprint" : {
				"minecraft:boss" : {
					"hud_range" : 30,
					"name" : "§cInfernal Swift Witch 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:breathable" : {
				"total_supply" : 15,
				"suffocate_time" : 0
			},
			"minecraft:nameable" : {},
			"minecraft:loot" : {
				"table" : "loot_tables/entities/witch.json"
			},
			"minecraft:health" : {
				"value" : 26,
				"max" : 26
			},
			"minecraft:hurt_on_condition" : {
				"damage_conditions" : [
					{
						"filters" : {
							"test" : "in_lava",
							"subject" : "self",
							"operator" : "==",
							"value" : true
						},
						"cause" : "lava",
						"damage_per_tick" : 4
					}
				]
			},
			"minecraft:movement" : {
				"value" : 0.25
			},
			"minecraft:navigation.walk" : {
				"can_path_over_water" : true,
				"avoid_water" : false
			},
			"minecraft:movement.basic" : {},
			"minecraft:jump.static" : {},
			"minecraft:can_climb" : {},
			"minecraft:despawn" : {
				"despawn_from_distance" : {}
			},
			"minecraft:behavior.float" : {
				"priority" : 1
			},
			"minecraft:behavior.ranged_attack" : {
				"priority" : 2,
				"speed_multiplier" : 1.0,
				"attack_interval_min" : 3,
				"attack_interval_max" : 3,
				"attack_radius" : 10.0
			},
			"minecraft:behavior.random_stroll" : {
				"priority" : 4,
				"speed_multiplier" : 1.0
			},
			"minecraft:behavior.look_at_player" : {
				"priority" : 5,
				"look_distance" : 8.0
			},
			"minecraft:behavior.random_look_around" : {
				"priority" : 5,
				"look_distance" : 8.0
			},
			"minecraft:behavior.hurt_by_target" : {
				"priority" : 1
			},
			"minecraft:behavior.nearest_attackable_target" : {
				"priority" : 2,
				"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"
								}
							]
						},
						"max_dist" : 10
					}
				],
				"must_reach" : true
			},
			"minecraft:type_family" : {
				"family" : [ "witch", "monster", "mob" ]
			},
			"minecraft:collision_box" : {
				"width" : 0.6,
				"height" : 1.9
			},
			"minecraft:physics" : {},
			"minecraft:pushable" : {
				"is_pushable" : true,
				"is_pushable_by_piston" : true
			},
			"minecraft:follow_range" : {
				"value" : 64
			},
			"minecraft:conditional_bandwidth_optimization" : {}
		},
		"events" : {
			"minecraft:entity_spawned" : {
				"randomize" : [
					{
						"weight" : 9500,
						"add" : {},
						"remove" : {}
					},
					{
						"weight" : 75,
						"add" : {
							"component_groups" : [ "rare_witch", "rare_alchemist" ]
						}
					},
					{
						"weight" : 75,
						"add" : {
							"component_groups" : [ "rare_witch", "rare_bullwark" ]
						}
					},
					{
						"weight" : 75,
						"add" : {
							"component_groups" : [ "rare_witch", "rare_cloaking" ]
						}
					},
					{
						"weight" : 75,
						"add" : {
							"component_groups" : [ "rare_witch", "rare_ender" ]
						}
					},
					{
						"weight" : 75,
						"add" : {
							"component_groups" : [ "rare_witch", "rare_ninja" ]
						}
					},
					{
						"weight" : 75,
						"add" : {
							"component_groups" : [ "rare_witch", "rare_regen" ]
						}
					},
					{
						"weight" : 75,
						"add" : {
							"component_groups" : [ "rare_witch", "rare_sprint" ]
						}
					},
					{
						"weight" : 25,
						"add" : {
							"component_groups" : [ "ultra_witch", "ultra_alchemist" ]
						}
					},
					{
						"weight" : 25,
						"add" : {
							"component_groups" : [ "ultra_witch", "ultra_bullwark" ]
						}
					},
					{
						"weight" : 25,
						"add" : {
							"component_groups" : [ "ultra_witch", "ultra_cloaking" ]
						}
					},
					{
						"weight" : 25,
						"add" : {
							"component_groups" : [ "ultra_witch", "ultra_ender" ]
						}
					},
					{
						"weight" : 25,
						"add" : {
							"component_groups" : [ "ultra_witch", "ultra_ninja" ]
						}
					},
					{
						"weight" : 25,
						"add" : {
							"component_groups" : [ "ultra_witch", "ultra_regen" ]
						}
					},
					{
						"weight" : 25,
						"add" : {
							"component_groups" : [ "ultra_witch", "ultra_sprint" ]
						}
					},
					{
						"weight" : 5,
						"add" : {
							"component_groups" : [ "infernal_witch", "infernal_alchemist" ]
						}
					},
					{
						"weight" : 5,
						"add" : {
							"component_groups" : [ "infernal_witch", "infernal_bullwark" ]
						}
					},
					{
						"weight" : 5,
						"add" : {
							"component_groups" : [ "infernal_witch", "infernal_cloaking" ]
						}
					},
					{
						"weight" : 5,
						"add" : {
							"component_groups" : [ "infernal_witch", "infernal_ender" ]
						}
					},
					{
						"weight" : 5,
						"add" : {
							"component_groups" : [ "infernal_witch", "infernal_ninja" ]
						}
					},
					{
						"weight" : 5,
						"add" : {
							"component_groups" : [ "infernal_witch", "infernal_regen" ]
						}
					},
					{
						"weight" : 5,
						"add" : {
							"component_groups" : [ "infernal_witch", "infernal_sprint" ]
						}
					}
				]
			},
			"minecraft:spawn_for_raid" : {
				"add" : {
					"component_groups" : [ "minecraft:raid_configuration" ]
				}
			},
			"minecraft:start_celebrating" : {
				"add" : {
					"component_groups" : [ "minecraft:celebrate" ]
				}
			},
			"minecraft:stop_celebrating" : {
				"remove" : {
					"component_groups" : [ "minecraft:celebrate" ]
				}
			}
		}
	}
}
