{
	"format_version": "1.10.0",
	"minecraft:client_entity": {
		"description": {
			"identifier": "manalabs_zombie:zombie",
			"materials": {
				"default": "tropicalfish",
				"amalgam": "entity_alphatest"
			},
			"textures": {
				"default": "textures/manalabs/zombie/entity/zombie_base1",

				//// Amalgam variant
				"amalgam1": "textures/manalabs/zombie/entity/zombie_amalgam1",
				"amalgam2": "textures/manalabs/zombie/entity/zombie_amalgam2",

				//// Standard zombie variant
				// Torso
				"base1": "textures/manalabs/zombie/entity/zombie_base1",
				// Arm left
				"arm_left": "textures/manalabs/zombie/entity/zombie_arm_left",
				"arm_bone_left": "textures/manalabs/zombie/entity/zombie_arm_bone_left",
				"arm_pustule_left": "textures/manalabs/zombie/entity/zombie_arm_pustule_left",
				"arm_tumors_left": "textures/manalabs/zombie/entity/zombie_arm_tumors_left",
				// Arm right
				"arm_right": "textures/manalabs/zombie/entity/zombie_arm_right",
				"arm_bone_right": "textures/manalabs/zombie/entity/zombie_arm_bone_right",
				"arm_pustule_right": "textures/manalabs/zombie/entity/zombie_arm_pustule_right",
				"arm_tumors_right": "textures/manalabs/zombie/entity/zombie_arm_tumors_right",
				// Leg left
				"leg_left": "textures/manalabs/zombie/entity/zombie_leg_left",
				"leg_bone_left": "textures/manalabs/zombie/entity/zombie_leg_bone_left",
				"leg_pustule_left": "textures/manalabs/zombie/entity/zombie_leg_pustule_left",
				"leg_tumors_left": "textures/manalabs/zombie/entity/zombie_leg_tumors_left",
				// Leg right
				"leg_right": "textures/manalabs/zombie/entity/zombie_leg_right",
				"leg_bone_right": "textures/manalabs/zombie/entity/zombie_leg_bone_right",
				"leg_pustule_right": "textures/manalabs/zombie/entity/zombie_leg_pustule_right",
				"leg_tumors_right": "textures/manalabs/zombie/entity/zombie_leg_tumors_right",
				// Head
				"head1": "textures/manalabs/zombie/entity/zombie_head1",
				"head2": "textures/manalabs/zombie/entity/zombie_head2",
				"head2_eye_left": "textures/manalabs/zombie/entity/zombie_head2_eye_left",
				"head2_eye_right": "textures/manalabs/zombie/entity/zombie_head2_eye_right",
				"head3": "textures/manalabs/zombie/entity/zombie_head3",
				"head3_skull_left": "textures/manalabs/zombie/entity/zombie_head3_skull_left",
				"head3_skull_right": "textures/manalabs/zombie/entity/zombie_head3_skull_right",
				// Hair
				"fem1_hair": "textures/manalabs/zombie/entity/zombie_fem1_hair",
				"fem2_hair": "textures/manalabs/zombie/entity/zombie_fem2_hair",
				"fem3_hair": "textures/manalabs/zombie/entity/zombie_fem3_hair",
				"male1_hair": "textures/manalabs/zombie/entity/zombie_male1_hair",
				"male2_hair": "textures/manalabs/zombie/entity/zombie_male2_hair",
				// Clothes top
				"clothes_button_up_shirt": "textures/manalabs/zombie/entity/zombie_clothes_button_up_shirt",
				"clothes_tank_top_white": "textures/manalabs/zombie/entity/zombie_clothes_tank_top_white",
				"clothes_tank_top_pink": "textures/manalabs/zombie/entity/zombie_clothes_tank_top_pink",
				"clothes_long_sleeve_grey": "textures/manalabs/zombie/entity/zombie_clothes_long_sleeve_grey",
				"clothes_long_sleeve_yellow": "textures/manalabs/zombie/entity/zombie_clothes_long_sleeve_yellow",
				// Clothes bottom
				"clothes_pants_blue": "textures/manalabs/zombie/entity/zombie_clothes_pants_blue",
				"clothes_pants_grey": "textures/manalabs/zombie/entity/zombie_clothes_pants_grey",
				"clothes_shorts_blue": "textures/manalabs/zombie/entity/zombie_clothes_shorts_blue",
				"clothes_shorts_brown": "textures/manalabs/zombie/entity/zombie_clothes_shorts_brown",
				"clothes_shorts_grey": "textures/manalabs/zombie/entity/zombie_clothes_shorts_grey",
				"clothes_skirt": "textures/manalabs/zombie/entity/zombie_clothes_skirt",
				// Ribs
				"torso_ribs": "textures/manalabs/zombie/entity/zombie_torso_ribs",
				// Overgrowth arm left
				"arm_overgrowth_left": "textures/manalabs/zombie/entity/zombie_arm_overgrowth_left",
				// Overgrowth arm right
				"arm_overgrowth_right": "textures/manalabs/zombie/entity/zombie_arm_overgrowth_right",
				// Overgrowth leg left
				"leg_overgrowth_left": "textures/manalabs/zombie/entity/zombie_leg_overgrowth_left",
				// Overgrowth leg right
				"leg_overgrowth_right": "textures/manalabs/zombie/entity/zombie_leg_overgrowth_right",

				// Empty
				"empty": "textures/manalabs/zombie/entity/empty"
			},
			"geometry": {
				"default": "geometry.manalabs_zombie.zombie_custom"
			},
			"animations": {
				// Animations
				"humanoid_base_pose": "animation.humanoid.base_pose",
				"look_at_target_default": "animation.humanoid.look_at_target.default",
				"look_at_target_gliding": "animation.humanoid.look_at_target.gliding",
				"look_at_target_swimming": "animation.humanoid.look_at_target.swimming",
				"move": "animation.manalabs_zombie.zombie_custom.move",
				"attack.rotations": "animation.humanoid.attack.rotations",
				"bob": "animation.humanoid.bob",
				"holding": "animation.humanoid.holding",
				"chainsaw_arms": "animation.manalabs_zombie.zombie_custom.chainsaw_arms",

				"zombie_custom.crawl_out": "animation.manalabs_zombie.zombie_custom.crawl_out",
				"zombie_custom.amalgam_spawn": "animation.manalabs_zombie.zombie_custom.amalgam_spawn",
				"death": "animation.manalabs_zombie.zombie_custom.death",

				// Animation controllers
				"ac.look_at_target": "controller.animation.humanoid.look_at_target",
				"ac.move": "controller.animation.humanoid.move",
				"ac.attack": "controller.animation.humanoid.attack",
				"ac.bob": "controller.animation.humanoid.bob",
				"ac.humanoid_base_pose": "controller.animation.humanoid.base_pose",
				"ac.death": "controller.animation.manalabs_zombie.zombie_custom.death"
			},
			"scripts": {
				"pre_animation": [
					"variable.tcos0 = (Math.cos(query.modified_distance_moved * 38.17) * query.modified_move_speed / variable.gliding_speed_value) * 57.3;"
				],
				"animate": [
					{ "chainsaw_arms": "q.property('manalabs_zombie:has_a_chainsaw')" },
					"holding",
					{ "ac.look_at_target": "q.health > 1" },
					{ "ac.move": "q.health > 1" },
					{ "ac.attack": "q.health > 1" },
					{ "ac.bob": "q.health > 1" },
					{ "ac.humanoid_base_pose": "q.health > 1" },
					{
						"zombie_custom.crawl_out": "q.property('manalabs_zombie:digging_out') && !q.property('manalabs_zombie:amalgam')"
					},
					{
						"zombie_custom.amalgam_spawn": "q.property('manalabs_zombie:digging_out') && q.property('manalabs_zombie:amalgam')"
					},
					"ac.death"
				]
			},
			"sound_effects": {
				"death_fall": "manalabs_zombie.zombie.death_fall",
				"dying": "manalabs_zombie.zombie.dying",
				"moan": "manalabs_zombie.zombie.moan"
			},
			"render_controllers": [
				{
					"controller.render.manalabs_zombie.basic_zombie.torso": "!q.property('manalabs_zombie:amalgam')"
				},
				{
					"controller.render.manalabs_zombie.basic_zombie.arm_left": "!q.property('manalabs_zombie:amalgam')"
				},
				{
					"controller.render.manalabs_zombie.basic_zombie.arm_right": "!q.property('manalabs_zombie:amalgam')"
				},
				{
					"controller.render.manalabs_zombie.basic_zombie.leg_left": "!q.property('manalabs_zombie:amalgam')"
				},
				{
					"controller.render.manalabs_zombie.basic_zombie.leg_right": "!q.property('manalabs_zombie:amalgam')"
				},
				{
					"controller.render.manalabs_zombie.basic_zombie.head": "!q.property('manalabs_zombie:amalgam')"
				},
				{
					"controller.render.manalabs_zombie.basic_zombie.amalgam": "q.property('manalabs_zombie:amalgam')"
				}
			],
			"enable_attachables": true,
			"spawn_egg": {
				"base_color": "#288483",
				"overlay_color": "#2B7135"
			}
		}
	}
}
