{
	"credit": "Created by FreshLX for Patrix",
	"textureSize": [32, 32],
	"models": [
		{
			"part": "head",
			"id": "head",
			"invertAxis": "xy",
			"translate": [0, 0, 0],
			"submodels": [
				{
					"id": "Created_by_FreshLX_for_Patrix",
					"invertAxis": "xy",
					"translate": [0, 0, 0]
				}
			],
			"animations": [
				{
					"var.testing": "0",
					"var.r": "random(id)*pi*4",
					"var.b": "var.r+age/20*pi",
					"var.hurt": "-sin(hurt_time/2)*hurt_time/10 -cos(death_time/6)*clamp(death_time/2, 0, 1)",
					"var.wings": "var.r+(limb_swing/1.5+age/5*pi +pos_y*1.5)*1.5",
					"var.aggro_empty": "clamp(if(right_arm.rz<= torad(20) && left_arm.rz>= torad(-20), min(20, var.aggro_empty +0.2 *frame_time*20), max(0, var.aggro_empty -0.2 *frame_time*20)), 0, 1)",
					"var.raggro": "clamp(if(var.aggro_empty!=0, 0, right_arm.rx== 3.6651914, min(20, var.raggro +0.2 *frame_time*20), max(0, var.raggro -0.2 *frame_time*20)), 0, 1)",
					"var.laggro": "clamp(if(var.aggro_empty!=0, 0,  left_arm.rx==-3.6651914, min(20, var.laggro +0.2 *frame_time*20), max(0, var.laggro -0.2 *frame_time*20)), 0, 1)",
					"var.all": "clamp(var.raggro +var.laggro +var.aggro_empty, 0, 1)"
				},
				{
					"head2.rx": "torad(head_pitch)/2 -sin(var.b-pi/2)/20 -torad(17.5) -torad(30)*limb_speed -clamp( if(!is_riding && age>10, -(pos_y-var.y), 0), -pi/3, pi/4)/2*(1-var.all) +torad( 30 +30*sin(limb_swing/1.5) )*var.hurt",
					"head2.ry": "torad(head_yaw)/2*(1-var.all*2) +sin(var.b*18)/40*var.all  +sin(limb_swing/2.5)*var.hurt",
					"head2.rz": "-sin(var.b/3)/16  +sin(var.b*25)/40*var.all",
					"head2.tz": "-limb_speed/2*(1-var.hurt) +(-0.5 -sin(limb_swing/2)/2 )*var.hurt",
					"body.rx": "torad(22.5) +torad(30)*limb_speed*(1-var.hurt) +sin(var.b-pi/2)/20 +torad(head_pitch)/4 +clamp( if(!is_riding && age>10, -(pos_y-var.y), 0), -pi/3, pi/4) +torad( -40 )*var.hurt",
					"body.ry": "torad(head_yaw)/2 +sin(var.b*23)/50*var.all +torad( 20*cos(limb_swing/3) )*var.hurt",
					"body.rz": "sin(var.b/3)/16                                  -( sin(limb_swing/2) )/22*var.hurt",
					"body.tx": "sin(var.b/3-pi/2)/2",
					"body.ty": "sin(var.b  -pi/2)/2 +19.5",
					"body.tz": "-sin(var.r+age/100*pi)/4 -limb_speed/2",
					"body2.rx": "torad(5)*limb_speed -sin(var.b)/16 -torad(head_pitch)/6",
					"body2.rz": "sin(var.b/3-pi/2)/10",
					"body2.tz": "limb_speed/10",
					"body2.sy": "1 +sin(var.b*1.3)/30 +cos(var.b*2.3)/30"
				},
				{
					"right_arm.rx": "if(is_riding, torad(-45), 0) -torad(160)*var.raggro -torad(80 +30*limb_speed )*var.aggro_empty +(torad(50)*limb_speed) -sin(var.b+torad(60))/20 +torad(head_yaw)/4 -body.rx +clamp( if(!is_riding && age>10, -(pos_y-var.y), 0), -pi/3, pi/4) +torad( sin(limb_swing/1.7)*30 -30 )*var.hurt",
					"left_arm.rx": " if(is_riding, torad(-45), 0) -torad(160)*var.laggro -torad(80 +30*limb_speed )*var.aggro_empty +(torad(50)*limb_speed) -sin(var.b+torad(60))/20 -torad(head_yaw)/4 -body.rx +clamp( if(!is_riding && age>10, -(pos_y-var.y), 0), -pi/3, pi/4) +torad( sin(limb_swing/2  )*30 -30 )*var.hurt",
					"right_arm.ry": "torad( 30)*var.raggro + torad(-15) +sin(var.b+torad(60))/20 +torad(-10)*limb_speed   *(1-var.raggro) -body.ry +torad( 8)*var.aggro_empty",
					"left_arm.ry": " torad(-30)*var.laggro + torad( 15) -sin(var.b+torad(60))/20 +torad( 10)*limb_speed   *(1-var.laggro) -body.ry -torad( 8)*var.aggro_empty",
					"right_arm.rz": "torad(-30)*var.raggro -(torad(-15) +sin(var.b+torad(60))/20 +torad(-10)*limb_speed)/2*(1-var.raggro) -body.rz -torad(30)*var.aggro_empty",
					"left_arm.rz": " torad( 30)*var.laggro -(torad( 15) -sin(var.b+torad(60))/20 +torad( 10)*limb_speed)/2*(1-var.laggro) -body.rz +torad(30)*var.aggro_empty",
					"right_arm.tx": "-2.1 +body.tx*(var.testing)",
					"left_arm.tx": "  2.1 +body.tx*(var.testing)",
					"right_arm.ty": " 0.6 +body.ty*(var.testing) -sin(var.b)/6 +if(is_riding, 0.5, 0) +0.4*var.aggro_empty",
					"left_arm.ty": "  0.6 +body.ty*(var.testing) -sin(var.b)/6 +if(is_riding, 0.5, 0) +0.4*var.aggro_empty",
					"right_arm.tz": "0.2 +if(is_riding, -0.5, 0) -0.7*var.aggro_empty",
					"left_arm.tz": " 0.2 +if(is_riding, -0.5, 0) -0.7*var.aggro_empty"
				},
				{
					"right_wing2.rx": "(torad(15) -cos(var.wings)/3)*(1-var.all)",
					"left_wing2.rx": "right_wing2.rx",
					"right_wing2.ry": "torad(35) +sin(var.wings -cos(var.wings)/2*clamp(2-limb_speed*4, 0, 1))/2*(1-var.all) +cos(var.wings)/4*var.all +torad(8.8)*clamp(1+limb_speed, 0, 1.2)",
					"left_wing2.ry": "-right_wing2.ry",
					"right_wing2.rz": "(-cos(var.wings)/6*clamp(1-limb_speed*2, 0, 1))",
					"left_wing2.rz": "-right_wing2.rz",
					"right_wing4.ry": "(torad(-20) +sin(-pi/3+ var.wings)*(1-var.all)) +sin(var.wings)/2*var.all",
					"left_wing4.ry": "-right_wing4.ry"
				},
				{
					"var.y": "var.y2",
					"var.y2": "var.y3",
					"var.y3": "var.y4",
					"var.y4": "var.y5",
					"var.y5": "var.y6",
					"var.y6": "pos_y"
				}
			]
		},
		{
			"part": "body",
			"id": "body",
			"invertAxis": "xy",
			"translate": [0, -6, 0],
			"boxes": [
				{
					"coordinates": [-1.5, 1, -1, 3, 5, 2],
					"uvNorth": [2, 13, 5, 18],
					"uvEast": [0, 13, 2, 18],
					"uvSouth": [7, 13, 10, 18],
					"uvWest": [5, 13, 7, 18],
					"uvUp": [5, 13, 2, 11]
				}
			],
			"submodels": [
				{
					"id": "head2",
					"invertAxis": "xy",
					"translate": [0, 6, 0],
					"boxes": [
						{"coordinates": [-2.5, 0, -2.5, 5, 5, 5], "textureOffset": [0, 0]}
					]
				},
				{
					"id": "body2",
					"invertAxis": "xy",
					"translate": [0, 3, 0],
					"boxes": [
						{
							"coordinates": [-1.5, -4, -1, 3, 6, 2],
							"uvNorth": [2, 19, 5, 25],
							"uvEast": [0, 19, 2, 25],
							"uvSouth": [7, 19, 10, 25],
							"uvWest": [5, 19, 7, 25],
							"sizeAdd": -0.2
						}
					]
				},
				{
					"id": "right_wing2",
					"invertAxis": "xy",
					"translate": [0.5, 5, 1],
					"submodels": [
						{
							"id": "right_wing3",
							"invertAxis": "xy",
							"translate": [0, 0, 0],
							"rotate": [0, 90, 0],
							"boxes": [
								{
									"coordinates": [0, -5, 0, 0, 7, 4],
									"uvEast": [27, 14, 31, 21],
									"uvWest": [31, 14, 27, 21],
									"sizeAdd": 0.01
								}
							],
							"submodels": [
								{
									"id": "right_wing4",
									"invertAxis": "xy",
									"translate": [0, 0, 4],
									"boxes": [
										{
											"coordinates": [0, -5, 0, 0, 7, 5],
											"uvEast": [22, 14, 27, 21],
											"uvWest": [27, 14, 22, 21],
											"sizeAdd": 0.01
										}
									]
								}
							]
						}
					]
				},
				{
					"id": "left_wing2",
					"invertAxis": "xy",
					"translate": [-0.5, 5, 1],
					"submodels": [
						{
							"id": "left_wing3",
							"invertAxis": "xy",
							"translate": [0, 0, 0],
							"rotate": [0, -90, 0],
							"boxes": [
								{
									"coordinates": [0, -5, 0, 0, 7, 4],
									"uvEast": [27, 14, 31, 21],
									"uvWest": [31, 14, 27, 21],
									"sizeAdd": 0.01
								}
							],
							"submodels": [
								{
									"id": "left_wing4",
									"invertAxis": "xy",
									"translate": [0, 0, 4],
									"boxes": [
										{
											"coordinates": [0, -5, 0, 0, 7, 5],
											"uvEast": [22, 14, 27, 21],
											"uvWest": [27, 14, 22, 21],
											"sizeAdd": 0.01
										}
									]
								}
							]
						}
					]
				}
			]
		},
		{
			"part": "right_arm",
			"id": "right_arm",
			"invertAxis": "xy",
			"mirrorTexture": "u",
			"translate": [-2, -5.5, 0],
			"boxes": [
				{"coordinates": [1.5, 2, -1, 2, 4, 2], "textureOffset": [23, 0]}
			]
		},
		{
			"part": "left_arm",
			"id": "left_arm",
			"invertAxis": "xy",
			"translate": [2, -5.5, 0],
			"boxes": [
				{"coordinates": [-3.5, 2, -1, 2, 4, 2], "textureOffset": [23, 7]}
			]
		},
		{
			"part": "left_wing",
			"id": "left_wing",
			"invertAxis": "xy",
			"translate": [0, 0, 0]
		},
		{
			"part": "right_wing",
			"id": "right_wing",
			"invertAxis": "xy",
			"translate": [0, 0, 0]
		}
	]
}