{
	"format_version": "1.8.0",
	"minecraft:client_entity": {
		"description": {
			"identifier": "quetz:beistherre",
			"materials": {
				"default": "parrot"
			},
			"textures": {
				"default": "textures/entity/beistherre/waxwing"
			},
			"geometry": {
				"default": "geometry.beistherre"
			},
			"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.beistherre.idle",
				"sit": "animation.beistherre.sit",
				"walk": "animation.beistherre.walk",
				"attack": "animation.beistherre.melee",
				"sprint": "animation.beistherre.sprint",
				"baby_transform": "animation.beistherre.baby_transform",
				"look_at_target": "animation.beistherre.look_at_target",
				"riding": "animation.beistherre.riding",
				"falling": "animation.beistherre.falling"
			},
			"animation_controllers": [
				{
					"setup": "controller.animation.beistherre.general"
				},
				{
					"move": "controller.animation.beistherre.move"
				}
			],
			"render_controllers": [
				"controller.render.beistherre"
			],
			"spawn_egg": {
				"base_color": "#ff9c4d",
				"overlay_color": "#556274"
			}
		}
	}
}