{
	"format_version": "1.8.0",
	"minecraft:client_entity": {
		"description": {
			"identifier": "quetz:spinosaurus",
			"materials": {
				"default": "parrot"
			},
			"textures": {
				"default": "textures/entity/spinosaurus/spinosaurus",
				"mosscovered": "textures/entity/spinosaurus/moss_covered",
				"flowering": "textures/entity/spinosaurus/flowering",
				"unripeberries": "textures/entity/spinosaurus/unripe_berries",
				"partiallyripeberries": "textures/entity/spinosaurus/partially_ripe_berries",
				"ripeberries": "textures/entity/spinosaurus/ripe_berries"
			},
			"geometry": {
				"default": "geometry.spinosaurus"
			},
			"scripts": {
				"pre_animation": [
					"variable.moving = query.ground_speed > 0 || query.vertical_speed > 0;",
					"variable.state=query.is_dancing?3:(query.is_sitting?2:(!query.is_on_ground&&!query.is_jumping&&!query.is_riding?0:1));",
					"variable.dance.x=Math.cos(query.life_time*57.3*20.0);",
					"variable.dance.y=-Math.sin(query.life_time*57.3*20.0);",
					"variable.wing_flap=((math.sin(query.wing_flap_position*57.3)+1)*query.wing_flap_speed);"
				]
			},
			"animations": {
				"idle": "animation.spinosaurus.idle",
				"idle_mounted": "animation.spinosaurus.idle_mounted",
				"idle_swim": "animation.spinosaurus.swimidle",
				"idle_swim_ground": "animation.spinosaurus.idle",
				"sit": "animation.spinosaurus.sit",
				"roar": "animation.spinosaurus.roar",
				"walk": "animation.spinosaurus.walk",
				"swim": "animation.spinosaurus.swim",
				"swim_ground": "animation.spinosaurus.walk",
				"attack": "animation.spinosaurus.attack",
				"aoeattack": "animation.spinosaurus.aoeattack",
				"eating": "animation.acrocanthosaurus.eating",
				"baby_transform": "animation.spinosaurus.baby_transform",
				"look_at_target": "animation.kelenken.look_at_target",
				"turn_angle": "animation.acrocanthosaurus.turn_angle"
			},
			"animation_controllers": [
				{
					"setup": "controller.animation.spinosaurus.general"
				},
				{
					"move": "controller.animation.spinosaurus.move"
				}
			],
			"render_controllers": [
				"controller.render.spinosaurus"
			],
			"spawn_egg": {
				"base_color": "#184641",
				"overlay_color": "#9a7b12"
			}
		}
	}
}