{
	"credit": "Made for PAFA Extensions",
	"textureSize": [64, 80],
	"texture": "textures/entity/pigman/zombie_pigman.png",
	"models": [
		{
			"part": "root",
			"id": "root",
			"model":"zombie_animations.jpm",
			"invertAxis": "xy",
			"translate": [0, 0, 0],
			"attach": true
		},
		{
			"part": "head",
			"id": "head",
			"invertAxis": "xy",
			"translate": [0, 0, 0],
			"submodels": [
				{
					"id": "zombie_pigman_with_zombie_animations",
					"invertAxis": "xy",
					"translate": [0, 0, 0]
				}
			],
			"animations": [
				{
					"var.blink": "pow( clamp( (1.5 -abs(sin( var.id+age/9)*6))*clamp(-32 +cos(( var.id+age/9)/1.5)*40 +cos(( var.id+age/9)/4)*40, 0, 1), 0.5*var.Nshake, 1 ), 2 )",
					"var.eye_top": "1 +( -1 +clamp(head_pitch/80, -0.2, 0.4)*clamp(5+sin(var.id+age/130)*12,0,1) +(-head2.rx -1.2 )*(0.5-0.5*cos( min(1,var.scared*4)*pi ))  +sin(hurt_time/1.5)*var.hurt +max(0,-3 +death_time/2)  +clamp(6-18*sin(pi/10+var.It/3),-1,max(0,cos(var.It/2.4-sin(var.It/1.2)/1.2)) )/3*var.Nlook )*(1-var.blink)",
					"var.pupil_y": "0.5 -(head2.rx+body.rx) +var.eye_top/2  +clamp(torad(head_pitch*1.2), -0.8, 2)*(1-var.Neat)  +( -0.1 )*var.run  -clamp(-24 +sin(var.id+age/100)*40, 0, 1)/10 +torad(50)*min(1,var.Neat*10) +torad( 12*var.fall )                    +clamp(6-18*sin(pi/8+var.It/3),-1,1)/3*clamp(-5+var.Nlook*6,0,1-var.Neat)",
					"var.pupil_x": "     (head2.ry+root.ry)                 -head_yaw/40*(1-var.tilt*2)   +clamp(sin(var.id+age/27) +sin(var.id+age/16), -0.1, 0.1)*clamp(-20*2 -cos(var.id+age/125)*30*2, 0, 1)*clamp(59*4 -sin(var.id+age/187)*60*4, 0, 1)  +clamp(  12*sin(pi/12+var.It ),-1,1)/2*clamp(-5+var.Nlook*6,0,1)",
					"right_eye.sz": "clamp( sqrt( pow(pos_x-player_pos_x, 2) +pow(pos_y-player_pos_y, 2) +pow(pos_z-player_pos_z, 2) ), 1, 128 )",
					"left_eye.sz": "right_eye.sz",
					"r_eye_white.sy": "clamp(1 -var.eye_top, 0, 3 )",
					"l_eye_white.sy": "r_eye_white.sy",
					"r_eye_white.visible": "r_eye_white.sy!=0",
					"l_eye_white.visible": "l_eye_white.sy!=0",
					"r_pupil.tx": "clamp( var.pupil_x-1, -1, 0 )",
					"l_pupil.tx": "clamp( var.pupil_x+1,  0, 1 )",
					"r_pupil.ty": "clamp( var.pupil_y+0.5, -r_eye_white.sy+0.7, 1 )",
					"l_pupil.ty": "clamp( var.pupil_y+0.5, -l_eye_white.sy+0.7, 1 )",
					"r_pupil.sy": "clamp(1 +var.pupil_y-0.5 +r_eye_white.sy-1, 0, clamp( r_eye_white.sy, 0, clamp(-var.pupil_y+1.5, 0.5, 1) ) )",
					"l_pupil.sy": "clamp(1 +var.pupil_y-0.5 +l_eye_white.sy-1, 0, clamp( l_eye_white.sy, 0, clamp(-var.pupil_y+1.5, 0.5, 1) ) )",
					"r_pupil.sx": "clamp(1 +clamp( var.pupil_x, -0.2, 0 ), 0.5, 1 )",
					"l_pupil.sx": "clamp(1 +clamp(-var.pupil_x, -0.2, 0 ), 0.5, 1 )",
					"r_pupil.visible": "r_pupil.sy!=0",
					"l_pupil.visible": "l_pupil.sy!=0",
					"head3.sx": "1.0625",
					"head3.sy": "1.0625",
					"head3.sz": "1.0625"
				}
			]
		},
		{
			"part": "headwear",
			"id": "headwear",
			"invertAxis": "xy",
			"translate": [0, -24, 0.25],
			"submodels": [
				{
					"id": "head2",
					"invertAxis": "xy",
					"translate": [0, 24, 0],
					"boxes": [
						{"coordinates": [-4, 0, -4, 8, 8, 8], "textureOffset": [0, 0]}
					],
					"submodels": [
						{
							"id": "head3",
							"invertAxis": "xy",
							"translate": [0, 4, 0],
							"boxes": [
								{"coordinates": [-4, -4, -4, 8, 8, 8], "textureOffset": [32, 0]}
							],
							"submodels": [
								{
									"id": "left_eye",
									"invertAxis": "xy",
									"translate": [-3, 1, -4],
									"submodels": [
										{
											"id": "l_pupil",
											"invertAxis": "xy",
											"translate": [-1, -1, 0],
											"boxes": [
												{
													"coordinates": [0, 0, 0, 1, 1, 0],
													"uvNorth": [38, 6, 39, 7],
													"sizeAdd": 0.005
												}
											]
										},
										{
											"id": "l_eye_white",
											"invertAxis": "xy",
											"translate": [1, -1, 0],
											"boxes": [
												{
													"coordinates": [-2, 0, -0.002, 2, 1, 0],
													"uvNorth": [38, 7, 40, 8]
												}
											]
										}
									]
								}
							]
						},
						{
							"id": "head4",
							"invertAxis": "xy",
							"translate": [0, -24, 0],
							"texture": "textures/entity/pigman/crown.png",
							"textureSize": [32, 16],
							"boxes": [
								{"coordinates": [-4, 24.25, -4, 8, 8, 8], "textureOffset": [0, 0], "sizeAdd": 0.5}
							]
						},
						{
							"id": "left_ear2",
							"invertAxis": "xy",
							"translate": [-5, 5.5, -0.5]
						},
						{
							"id": "right_ear2",
							"invertAxis": "xy",
							"translate": [5, 5.5, -0.5]
						},
						{
							"id": "nose",
							"invertAxis": "xy",
							"translate": [0, 2, -4],
							"boxes": [
								{"coordinates": [-2, -1, -1, 4, 3, 1], "textureOffset": [26, 1]}
							]
						},
						{
							"id": "tusks",
							"invertAxis": "xy",
							"translate": [0, 2, -4]
						},
						{
							"id": "right_eye",
							"invertAxis": "xy",
							"translate": [3, 5, -4],
							"submodels": [
								{
									"id": "r_pupil",
									"invertAxis": "xy",
									"translate": [1, -1, 0],
									"boxes": [
										{
											"coordinates": [-1, 0, 0, 1, 1, 0],
											"uvNorth": [37, 6, 38, 7],
											"sizeAdd": 0.005
										}
									]
								},
								{
									"id": "r_eye_white",
									"invertAxis": "xy",
									"translate": [-1, -1, 0],
									"boxes": [
										{
											"coordinates": [0, 0, -0.002, 2, 1, 0],
											"uvNorth": [36, 7, 38, 8]
										}
									]
								}
							]
						}
					]
				}
			]
		},
		{
			"part": "body",
			"id": "body",
			"invertAxis": "xy",
			"translate": [0, -24, 0],
			"boxes": [
				{"coordinates": [-4, 12, -2, 8, 12, 4], "textureOffset": [16, 16]},
				{"coordinates": [-4, 12, -2, 8, 12, 4], "textureOffset": [16, 32], "sizeAdd": 0.25}
			]
		},
		{
			"part": "left_arm",
			"id": "left_arm",
			"invertAxis": "xy",
			"translate": [5, -22, 0],
			"boxes": [
				{"coordinates": [-8, 12, -2, 4, 12, 4], "textureOffset": [32, 48]},
				{"coordinates": [-8, 12, -2, 4, 12, 4], "textureOffset": [48, 48], "sizeAdd": 0.25}
			]
		},
		{
			"part": "right_arm",
			"id": "right_arm",
			"invertAxis": "xy",
			"translate": [-5, -22, 0],
			"boxes": [
				{"coordinates": [4, 12, -2, 4, 12, 4], "textureOffset": [40, 16]},
				{"coordinates": [4, 12, -2, 4, 12, 4], "textureOffset": [40, 32], "sizeAdd": 0.25}
			]
		},
		{
			"part": "left_leg",
			"id": "left_leg",
			"invertAxis": "xy",
			"translate": [2, -12, 0],
			"boxes": [
				{"coordinates": [-4, 0, -2, 4, 12, 4], "textureOffset": [16, 48]},
				{"coordinates": [-4, 0, -2, 4, 12, 4], "textureOffset": [0, 48], "sizeAdd": 0.25}
			]
		},
		{
			"part": "right_leg",
			"id": "right_leg",
			"invertAxis": "xy",
			"translate": [-2, -12, 0],
			"boxes": [
				{"coordinates": [0, 0, -2, 4, 12, 4], "textureOffset": [0, 16]},
				{"coordinates": [0, 0, -2, 4, 12, 4], "textureOffset": [0, 32], "sizeAdd": 0.25}
			]
		},
		{
			"part": "left_ear",
			"id": "left_ear",
			"invertAxis": "xy",
			"translate": [0, 0, 0]
		},
		{
			"part": "right_ear",
			"id": "right_ear",
			"invertAxis": "xy",
			"translate": [0, 0, 0]
		},
		{
			"part": "jacket",
			"id": "jacket",
			"invertAxis": "xy",
			"translate": [0, 0, 0]
		},
		{
			"part": "left_sleeve",
			"id": "left_sleeve",
			"invertAxis": "xy",
			"translate": [0, 0, 0]
		},
		{
			"part": "right_sleeve",
			"id": "right_sleeve",
			"invertAxis": "xy",
			"translate": [0, 0, 0]
		},
		{
			"part": "left_pants",
			"id": "left_pants",
			"invertAxis": "xy",
			"translate": [0, 0, 0]
		},
		{
			"part": "right_pants",
			"id": "right_pants",
			"invertAxis": "xy",
			"translate": [0, 0, 0]
		}
	]
}