//bridge-file-version: #11
{
	"format_version": "1.16.0",
	"minecraft:entity": {
		"description": {
			"identifier": "tzap:charge_zombiet2",
			"is_spawnable": true,
			"is_summonable": true,
			"is_experimental": false
		},
		"component_groups": {
			"minecraft:can_have_equipment": {
				"minecraft:equipment": {
					"table": "loot_tables/entities/zombie_equipment.json"
				}
			}
		},
		"components": {
			"minecraft:nameable": {},
			"minecraft:type_family": {
				"family": [
					"zombie",
					"undead",
					"monster",
					"mob"
				]
			},
			"minecraft:equip_item": {},
			"minecraft:collision_box": {
				"width": 0.6,
				"height": 1.9
			},
			"minecraft:movement.basic": {},
			"minecraft:navigation.climb": {
				"can_break_doors": false,
				"avoid_sun": false,
				"avoid_water": true,
				"is_amphibious": false
			},
			"minecraft:movement": {
				"value": 0.31
			},
			"minecraft:annotation.break_door": {},
			"minecraft:jump.static": {},
			"minecraft:can_climb": {},
			"minecraft:health": {
				"value": 18,
				"max": 18
			},
			"minecraft:hurt_on_condition": {
				"damage_conditions": [
					{
						"filters": {
							"test": "in_lava",
							"subject": "self",
							"operator": "==",
							"value": true
						},
						"cause": "lava",
						"damage_per_tick": 4
					}
				]
			},
			"minecraft:breathable": {
				"total_supply": 15,
				"suffocate_time": 0,
				"breathes_air": true,
				"breathes_water": true
			},
			"minecraft:attack": {
				"damage": 6,
				"effect_name": "nausea",
				"effect_duration": 6
			},
			"minecraft:loot": {
				"table": "loot_tables/entities/zombie.json"
			},
			"minecraft:shareables": {
				"items": [
					{
						"item": "minecraft:netherite_sword",
						"want_amount": 1,
						"surplus_amount": 1,
						"priority": 0
					},
					{
						"item": "minecraft:diamond_sword",
						"want_amount": 1,
						"surplus_amount": 1,
						"priority": 1
					},
					{
						"item": "minecraft:iron_sword",
						"want_amount": 1,
						"surplus_amount": 1,
						"priority": 2
					},
					{
						"item": "minecraft:stone_sword",
						"want_amount": 1,
						"surplus_amount": 1,
						"priority": 3
					},
					{
						"item": "minecraft:golden_sword",
						"want_amount": 1,
						"surplus_amount": 1,
						"priority": 4
					},
					{
						"item": "minecraft:wooden_sword",
						"want_amount": 1,
						"surplus_amount": 1,
						"priority": 5
					},
					{
						"item": "minecraft:netherite_helmet",
						"want_amount": 1,
						"surplus_amount": 1,
						"priority": 0
					},
					{
						"item": "minecraft:diamond_helmet",
						"want_amount": 1,
						"surplus_amount": 1,
						"priority": 1
					},
					{
						"item": "minecraft:iron_helmet",
						"want_amount": 1,
						"surplus_amount": 1,
						"priority": 2
					},
					{
						"item": "minecraft:chainmail_helmet",
						"want_amount": 1,
						"surplus_amount": 1,
						"priority": 3
					},
					{
						"item": "minecraft:golden_helmet",
						"want_amount": 1,
						"surplus_amount": 1,
						"priority": 4
					},
					{
						"item": "minecraft:leather_helmet",
						"want_amount": 1,
						"surplus_amount": 1,
						"priority": 5
					},
					{
						"item": "minecraft:turtle_helmet",
						"want_amount": 1,
						"surplus_amount": 1,
						"priority": 6
					},
					{
						"item": "minecraft:skull:0",
						"want_amount": 1,
						"surplus_amount": 1,
						"priority": 7
					},
					{
						"item": "minecraft:skull:1",
						"want_amount": 1,
						"surplus_amount": 1,
						"priority": 7
					},
					{
						"item": "minecraft:carved_pumpkin",
						"want_amount": 1,
						"surplus_amount": 1,
						"priority": 7
					},
					{
						"item": "minecraft:netherite_chestplate",
						"want_amount": 1,
						"surplus_amount": 1,
						"priority": 0
					},
					{
						"item": "minecraft:diamond_chestplate",
						"want_amount": 1,
						"surplus_amount": 1,
						"priority": 1
					},
					{
						"item": "minecraft:iron_chestplate",
						"want_amount": 1,
						"surplus_amount": 1,
						"priority": 2
					},
					{
						"item": "minecraft:chainmail_chestplate",
						"want_amount": 1,
						"surplus_amount": 1,
						"priority": 3
					},
					{
						"item": "minecraft:golden_chestplate",
						"want_amount": 1,
						"surplus_amount": 1,
						"priority": 4
					},
					{
						"item": "minecraft:leather_chestplate",
						"want_amount": 1,
						"surplus_amount": 1,
						"priority": 5
					},
					{
						"item": "minecraft:netherite_leggings",
						"want_amount": 1,
						"surplus_amount": 1,
						"priority": 0
					},
					{
						"item": "minecraft:diamond_leggings",
						"want_amount": 1,
						"surplus_amount": 1,
						"priority": 1
					},
					{
						"item": "minecraft:iron_leggings",
						"want_amount": 1,
						"surplus_amount": 1,
						"priority": 2
					},
					{
						"item": "minecraft:chainmail_leggings",
						"want_amount": 1,
						"surplus_amount": 1,
						"priority": 3
					},
					{
						"item": "minecraft:golden_leggings",
						"want_amount": 1,
						"surplus_amount": 1,
						"priority": 4
					},
					{
						"item": "minecraft:leather_leggings",
						"want_amount": 1,
						"surplus_amount": 1,
						"priority": 5
					},
					{
						"item": "minecraft:netherite_boots",
						"want_amount": 1,
						"surplus_amount": 1,
						"priority": 0
					},
					{
						"item": "minecraft:diamond_boots",
						"want_amount": 1,
						"surplus_amount": 1,
						"priority": 1
					},
					{
						"item": "minecraft:iron_boots",
						"want_amount": 1,
						"surplus_amount": 1,
						"priority": 2
					},
					{
						"item": "minecraft:chainmail_boots",
						"want_amount": 1,
						"surplus_amount": 1,
						"priority": 3
					},
					{
						"item": "minecraft:golden_boots",
						"want_amount": 1,
						"surplus_amount": 1,
						"priority": 4
					},
					{
						"item": "minecraft:leather_boots",
						"want_amount": 1,
						"surplus_amount": 1,
						"priority": 5
					}
				]
			},
			"minecraft:environment_sensor": {
				"triggers": {
					"filters": {
						"test": "is_underwater",
						"operator": "==",
						"value": true
					},
					"event": "minecraft:start_transforming"
				}
			},
			"minecraft:despawn": {
				"despawn_from_distance": {}
			},
			"minecraft:behavior.equip_item": {
				"priority": 2
			},
			"minecraft:behavior.melee_attack": {
				"priority": 3
			},
			"minecraft:behavior.stomp_turtle_egg": {
				"priority": 4,
				"speed_multiplier": 1,
				"search_range": 10,
				"search_height": 2,
				"goal_radius": 1.14,
				"interval": 20
			},
			"minecraft:behavior.pickup_items": {
				"priority": 6,
				"max_dist": 3,
				"goal_radius": 2,
				"speed_multiplier": 1,
				"pickup_based_on_chance": true,
				"can_pickup_any_item": true
			},
			"minecraft:behavior.random_stroll": {
				"priority": 7,
				"speed_multiplier": 1
			},
			"minecraft:behavior.look_at_player": {
				"priority": 8,
				"look_distance": 6,
				"probability": 0.02
			},
			"minecraft:behavior.random_look_around": {
				"priority": 9
			},
			"minecraft:behavior.hurt_by_target": {
				"priority": 1
			},
			"minecraft:follow_range": {
				"value": 500,
				"max": 500
			},
			"minecraft:behavior.nearest_attackable_target": {
				"priority": 2,
				"must_see": true,
				"reselect_targets": false,
				"within_radius": 500,
				"must_see_forget_duration": 17,
				"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": 500
					},
					{
						"filters": {
							"any_of": [
								{
									"test": "is_family",
									"subject": "other",
									"value": "villager"
								},
								{
									"test": "is_family",
									"subject": "other",
									"value": "wandering_trader"
								}
							]
						},
						"max_dist": 35,
						"must_see": false
					},
					{
						"filters": {
							"all_of": [
								{
									"test": "is_family",
									"subject": "other",
									"value": "baby_turtle"
								},
								{
									"test": "in_water",
									"subject": "other",
									"operator": "!=",
									"value": true
								}
							]
						},
						"max_dist": 35
					}
				]
			},
			"minecraft:physics": {},
			"minecraft:pushable": {
				"is_pushable": true,
				"is_pushable_by_piston": true
			},
			"minecraft:conditional_bandwidth_optimization": {},
			"minecraft:damage_sensor": {
				"triggers": [
					{
						"on_damage": {
							"filters": {
								"test": "is_block",
								"subject": "block",
								"value": "minecraft:sweet_berry_bush"
							}
						},
						"deals_damage": false
					}
				]
			}
		},
		"events": {
			"minecraft:entity_spawned": {
				"randomize": [
					{
						"weight": 380,
						"remove": {},
						"add": {
							"component_groups": [
								"minecraft:zombie_adult",
								"minecraft:can_have_equipment"
							]
						}
					},
					{
						"weight": 17,
						"remove": {},
						"add": {
							"component_groups": [
								"minecraft:zombie_baby",
								"minecraft:can_have_equipment"
							]
						}
					},
					{
						"weight": 3,
						"remove": {},
						"add": {
							"component_groups": [
								"minecraft:zombie_baby",
								"minecraft:zombie_jockey",
								"minecraft:can_have_equipment"
							]
						}
					}
				]
			},
			"minecraft:start_transforming": {
				"add": {
					"component_groups": [
						"minecraft:start_drowned_transformation"
					]
				},
				"remove": {
					"component_groups": [
						"minecraft:look_to_start_drowned_transformation"
					]
				}
			},
			"minecraft:stop_transforming": {
				"add": {
					"component_groups": [
						"minecraft:look_to_start_drowned_transformation"
					]
				},
				"remove": {
					"component_groups": [
						"minecraft:start_drowned_transformation"
					]
				}
			},
			"minecraft:convert_to_drowned": {
				"sequence": [
					{
						"filters": {
							"test": "has_component",
							"operator": "!=",
							"value": "minecraft:is_baby"
						},
						"add": {
							"component_groups": [
								"minecraft:convert_to_drowned"
							]
						},
						"remove": {
							"component_groups": [
								"minecraft:start_drowned_transformation"
							]
						}
					},
					{
						"filters": {
							"test": "has_component",
							"value": "minecraft:is_baby"
						},
						"add": {
							"component_groups": [
								"minecraft:convert_to_baby_drowned"
							]
						},
						"remove": {
							"component_groups": [
								"minecraft:start_drowned_transformation"
							]
						}
					}
				]
			}
		}
	}
}