{
	"credit": "Created by FreshLX for Patrix",
	"textureSize": [64, 32],
	"models": [
		{
			"part": "body",
			"id": "body",
			"invertAxis": "xy",
			"translate": [0, -13, -2],
			"submodels": [
				{
					"id": "Created_by_FreshLX_for_Patrix",
					"invertAxis": "xy",
					"translate": [0, 0, 0]
				},
				{
					"id": "rotation",
					"invertAxis": "xy",
					"translate": [0, 13, 2],
					"rotate": [-90, 0, 0],
					"boxes": [
						{
							"coordinates": [-5, -6.5, -3.5, 10, 16, 8],
							"uvNorth": [36, 16, 46, 32],
							"uvEast": [28, 16, 36, 32],
							"uvSouth": [54, 16, 64, 32],
							"uvWest": [46, 16, 54, 32],
							"uvUp": [46, 16, 36, 8],
							"uvDown": [56, 8, 46, 16],
							"sizeAdd": 1.75
						}
					]
				},
				{
					"id": "head2",
					"invertAxis": "xy",
					"translate": [0, 18, -8],
					"boxes": [
						{
							"coordinates": [-3, -2, -3, 6, 6, 6],
							"uvNorth": [6, 6, 12, 12],
							"uvEast": [0, 6, 6, 12],
							"uvSouth": [18, 6, 24, 12],
							"uvWest": [12, 6, 18, 12],
							"uvUp": [12, 6, 6, 0],
							"uvDown": [18, 0, 12, 6],
							"sizeAdd": 0.75
						}
					]
				}
			],
			"animations": [
				{
					"var.r": "random(id)*pi*4 -pi/12",
					"var.ls": "limb_swing*if(is_child, 0.55, 0.85) -pi/12",
					"var.b": "var.r +age/if(is_child, 5.5, 11)",
					"var.swim": "var.r +age/if(is_child, 1.8, 2.5)",
					"var.run": "clamp(if(limb_speed>=if(is_child, 0.52, 0.62), min(20, var.run +0.1 *frame_time*20), max(0, var.run -0.1 *frame_time*20)), 0, if(is_child, 1.5, 1))",
					"var.walk": "clamp(1-var.run, 0, 1)",
					"var.eatA": "clamp(if((head.ty-6)!=0 && (head.rx-torad(head_pitch))!=0, min(20, var.eatA +0.1 *frame_time*20), max(0, var.eatA -0.1 *frame_time*20) ), 0, 1)",
					"var.eat": "(0.5-0.5*cos( var.eatA*pi ))"
				},
				{
					"body.rx": "pi/2",
					"head2.rx": "-if(!is_on_ground&&is_in_water, -sin(var.swim)/10, (-sin(var.ls)/9*limb_speed)*var.run +(sin(var.ls*2)/14*limb_speed)*var.walk ) +torad(-90) +(torad(-5)*limb_speed) +torad(40+9*sin(age))*var.eat +torad(head_pitch)*(1-var.eat)",
					"head2.ry": "0",
					"head2.rz": "-torad(head_yaw)/1.2",
					"head2.tx": " (-sin(var.ls)/2 *limb_speed)*var.walk +clamp(-torad(head_yaw)*2, -4, 4)",
					"head2.tz": " if(!is_on_ground&&is_in_water, -4, (0.5 +cos(var.ls)*2*limb_speed)*var.run +(sin(var.ls*2) -1)*limb_speed*var.walk ) -if(is_child, 11, 12.5)*var.eat +1 +sin(torad(45)+var.b)/6",
					"head2.ty": "-23 +if(!is_on_ground&&is_in_water, sin(var.swim)/2 +sin(torad(-45)+var.swim)/2, 0) -if(is_child, 2, 1)*var.eat",
					"head2.sx": "if(is_child, 1.35, 1)",
					"head2.sy": "head2.sx",
					"head2.sz": "head2.sx",
					"rotation.rx": "if(!is_on_ground&&is_in_water, torad(-10) +cos(var.swim)/10, (-sin(torad(90)+var.ls)/6*limb_speed)*var.run +(sin(torad(45)+var.ls*2)/14*limb_speed)*var.walk ) +sin(var.b-torad(90))/60 +torad(10)*var.eat",
					"rotation.ry": "(-sin(var.ls)/24*limb_speed)*var.run +(-sin(var.ls)/10*limb_speed)*var.walk",
					"rotation.rz": "-torad(head_yaw)/10*clamp(1-limb_speed*2, 0, 1)",
					"rotation.tx": "(-sin(var.ls)/2 *limb_speed)*var.walk",
					"rotation.ty": "if(!is_on_ground&&is_in_water, sin(torad(-45)+var.swim)/2, (sin(torad(-135)+var.ls*2)/4*limb_speed)*var.walk ) -13",
					"rotation.tz": "if(!is_on_ground&&is_in_water, -5, (limb_speed/2 +sin(torad(45)+var.ls)*limb_speed)*var.run +((-1*limb_speed) +sin(var.ls*2)*limb_speed)*var.walk ) -4.2 +sin(var.b)/6 -3*var.eat"
				},
				{
					"leg1.rx": " sin(var.b)/60           +if(!is_on_ground&&is_in_water,  sin(var.swim)/2, (sin(torad( 0 -22.5)+var.ls)/2 +clamp(sin(torad( 90-22.5)+var.ls)/3, torad(-20), 0)/6 +torad(5))*limb_speed*var.run +(asin(sin(torad(-90 +20)+var.ls))/3*clamp(limb_speed*4, 0.4, 1) +clamp(sin(torad(  0 +20)+var.ls)/6, torad(-20), 0)/6*clamp(limb_speed*4, 0, 1) )*var.walk ) +torad(head_yaw)/24/2*clamp(1-limb_speed*2, 0, 1)",
					"leg2.rx": " sin(var.b)/60           +if(!is_on_ground&&is_in_water, -sin(var.swim)/2, (sin(torad(-90     )+var.ls)/2 +clamp(sin(torad( 0      )+var.ls)/3, torad(-20), 0)/6 +torad(5))*limb_speed*var.run +(asin(sin(torad( 90 +20)+var.ls))/3*clamp(limb_speed*4, 0.4, 1) +clamp(sin(torad(180 +20)+var.ls)/6, torad(-20), 0)/6*clamp(limb_speed*4, 0, 1) )*var.walk ) -torad(head_yaw)/24/2*clamp(1-limb_speed*2, 0, 1)",
					"leg3.rx": "-sin(var.b)/60 -torad(2) +if(!is_on_ground&&is_in_water, -cos(var.swim)/2, (sin(torad( 90     )+var.ls)/2 +clamp(sin(torad( 0      )+var.ls)/3, 0, torad( 20))/6 +torad(5))*limb_speed*var.run +(asin(sin(torad(180    )+var.ls))/3*clamp(limb_speed*4, 0.4, 1) +clamp(sin(torad( 90    )+var.ls)/4, 0, torad( 20))/6*clamp(limb_speed*4, 0, 1) )*var.walk ) +torad(head_yaw)/24/2*clamp(1-limb_speed*2, 0, 1) +torad(3)*var.eat",
					"leg4.rx": "-sin(var.b)/60 -torad(2) +if(!is_on_ground&&is_in_water,  cos(var.swim)/2, (sin(torad(180-22.5)+var.ls)/2 +clamp(sin(torad( 90-22.5)+var.ls)/3, 0, torad( 20))/6 +torad(5))*limb_speed*var.run +(asin(sin(torad( 0     )+var.ls))/3*clamp(limb_speed*4, 0.4, 1) +clamp(sin(torad(-90    )+var.ls)/4, 0, torad( 20))/6*clamp(limb_speed*4, 0, 1) )*var.walk ) -torad(head_yaw)/24/2*clamp(1-limb_speed*2, 0, 1) +torad(3)*var.eat",
					"leg1.ry": "torad(-5)*clamp(1-limb_speed*8, 0, 1) +torad(head_yaw)/10*clamp(1-limb_speed*2, 0, 1)",
					"leg2.ry": "torad( 5)*clamp(1-limb_speed*8, 0, 1) +torad(head_yaw)/10*clamp(1-limb_speed*2, 0, 1)",
					"leg3.ry": "torad( 5)*clamp(1-limb_speed*8, 0, 1) +torad(head_yaw)/10*clamp(1-limb_speed*2, 0, 1) -torad(5)*var.eat",
					"leg4.ry": "torad(-5)*clamp(1-limb_speed*8, 0, 1) +torad(head_yaw)/10*clamp(1-limb_speed*2, 0, 1) +torad(5)*var.eat",
					"leg1.rz": "                                               torad(head_yaw)/20*clamp(1-limb_speed*2, 0, 1)",
					"leg2.rz": "                                               torad(head_yaw)/20*clamp(1-limb_speed*2, 0, 1)",
					"leg3.rz": "if(!is_on_ground&&is_in_water, torad( 10), 0) -torad(head_yaw)/16*clamp(1-limb_speed*2, 0, 1)",
					"leg4.rz": "if(!is_on_ground&&is_in_water, torad(-10), 0) -torad(head_yaw)/16*clamp(1-limb_speed*2, 0, 1)",
					"leg1.tx": "-2.5",
					"leg2.tx": " 2.5",
					"leg3.tx": "-2.5 +if(!is_on_ground&&is_in_water, -2, 0)",
					"leg4.tx": " 2.5 +if(!is_on_ground&&is_in_water,  2, 0)",
					"leg1.ty": "24 + if(!is_on_ground&&is_in_water, 4 +cos(var.swim)*1.5, clamp( (-2 +sin(torad( 90-22.5)+var.ls)*2)*limb_speed*var.run +( sin(torad( 0  +20)+var.ls)*2*clamp(limb_speed*4, 0, 1))*var.walk, -4, 0))",
					"leg2.ty": "24 + if(!is_on_ground&&is_in_water, 4 -cos(var.swim)*1.5, clamp( (-2 +sin(torad( 0      )+var.ls)*2)*limb_speed*var.run +( sin(torad(180 +20)+var.ls)*2*clamp(limb_speed*4, 0, 1))*var.walk, -4, 0))",
					"leg3.ty": "24 + if(!is_on_ground&&is_in_water, 2 +sin(var.swim)*1.5, clamp( (-2 +sin(torad(180     )+var.ls)*2)*limb_speed*var.run +( sin(torad(-90    )+var.ls)*2*clamp(limb_speed*4, 0, 1))*var.walk, -4, 0))",
					"leg4.ty": "24 + if(!is_on_ground&&is_in_water, 2 -sin(var.swim)*1.5, clamp( (-2 +sin(torad(-90-22.5)+var.ls)*2)*limb_speed*var.run +( sin(torad( 90    )+var.ls)*2*clamp(limb_speed*4, 0, 1))*var.walk, -4, 0))",
					"leg1.tz": " 7 + if(!is_on_ground&&is_in_water,  sin(var.swim)*6, (sin(torad( 0 -22.5)+var.ls)*6 +1)*limb_speed*var.run +( asin(sin(torad(-90 +20)+var.ls))*4*clamp(limb_speed*4, 0.4, 1))*var.walk )",
					"leg2.tz": " 7 + if(!is_on_ground&&is_in_water, -sin(var.swim)*6, (sin(torad(-90     )+var.ls)*6 +1)*limb_speed*var.run +( asin(sin(torad( 90 +20)+var.ls))*4*clamp(limb_speed*4, 0.4, 1))*var.walk )",
					"leg3.tz": "-5 + if(!is_on_ground&&is_in_water, -cos(var.swim)*6, (sin(torad( 90     )+var.ls)*6 +1)*limb_speed*var.run +( asin(sin(torad(180    )+var.ls))*4*clamp(limb_speed*4, 0.4, 1))*var.walk )",
					"leg4.tz": "-5 + if(!is_on_ground&&is_in_water,  cos(var.swim)*6, (sin(torad(180-22.5)+var.ls)*6 +1)*limb_speed*var.run +( asin(sin(torad( 0     )+var.ls))*4*clamp(limb_speed*4, 0.4, 1))*var.walk )"
				}
			]
		},
		{
			"part": "head",
			"id": "head",
			"invertAxis": "xy",
			"translate": [0, 0, 0]
		},
		{
			"part": "leg1",
			"id": "leg1",
			"invertAxis": "xy",
			"translate": [-3, 0, -7],
			"boxes": [
				{
					"coordinates": [1, 6, 5, 4, 4, 4],
					"uvNorth": [8, 28, 4, 32],
					"uvEast": [12, 28, 8, 32],
					"uvSouth": [16, 28, 12, 32],
					"uvWest": [4, 28, 0, 32],
					"uvUp": [4, 24, 8, 28],
					"uvDown": [8, 24, 12, 28],
					"sizeAdd": 0.5
				}
			]
		},
		{
			"part": "leg2",
			"id": "leg2",
			"invertAxis": "xy",
			"translate": [3, 0, -7],
			"boxes": [
				{
					"coordinates": [-5, 6, 5, 4, 4, 4],
					"uvNorth": [4, 28, 8, 32],
					"uvEast": [0, 28, 4, 32],
					"uvSouth": [12, 28, 16, 32],
					"uvWest": [8, 28, 12, 32],
					"uvUp": [4, 24, 8, 28],
					"uvDown": [12, 24, 8, 28],
					"sizeAdd": 0.5
				}
			]
		},
		{
			"part": "leg3",
			"id": "leg3",
			"invertAxis": "xy",
			"translate": [-3, 0, 5],
			"boxes": [
				{
					"coordinates": [1, 6, -7, 4, 4, 4],
					"uvNorth": [8, 20, 4, 24],
					"uvEast": [12, 20, 8, 24],
					"uvSouth": [16, 20, 12, 24],
					"uvWest": [4, 20, 0, 24],
					"uvUp": [4, 16, 8, 20],
					"uvDown": [8, 16, 12, 20],
					"sizeAdd": 0.5
				}
			]
		},
		{
			"part": "leg4",
			"id": "leg4",
			"invertAxis": "xy",
			"translate": [3, 0, 5],
			"boxes": [
				{
					"coordinates": [-5, 6, -7, 4, 4, 4],
					"uvNorth": [4, 20, 8, 24],
					"uvEast": [0, 20, 4, 24],
					"uvSouth": [12, 20, 16, 24],
					"uvWest": [8, 20, 12, 24],
					"uvUp": [4, 16, 8, 20],
					"uvDown": [12, 16, 8, 20],
					"sizeAdd": 0.5
				}
			]
		}
	]
}