{
    "format_version": "1.8.0",
    "minecraft:client_entity": {
        "description": {
            "identifier": "minecraft:parrot",
            "materials": {
                "default": "parrot",
                "UP_box": "entity_emissive_alpha"
            },
            "textures": {
                "UP_box": "models/entity/UP_box",
                "transparent": "models/entity/transparent",
                "blue": "textures/entity/parrot/parrot_blue",
                "green": "textures/entity/parrot/parrot_green",
                "red_blue": "textures/entity/parrot/parrot_red_blue",
                "yellow_blue": "textures/entity/parrot/parrot_yellow_blue",
                "grey": "textures/entity/parrot/parrot_grey"
            },
            "geometry": {
                "default": "geometry.parrot",
                "target_rotate": "geometry.target_rotate_0",
                "block": "geometry.block_0"
            },
            "scripts": {
                "pre_animation": [
                    "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);"
                ]
            },
            "particle_effects": {

                "invisible": "invisible",
                "status_setup": "status_setup",
                "health_setup": "health_setup",
                "hostile_warnings": "hostile_warnings",
                "pos": "pos",
                "locate_line": "locate_line",
                "locate_mob": "locate_parrot",
				"pos_egg": "pos_parrot"
            },

            "animations": {
                "target_rotate": "animation.target_rotate",
                "camera_rotate": "animation.camera_rotate",

                "moving": "animation.parrot.moving",
                "base": "animation.parrot.base",
                "dance": "animation.parrot.dance",
                "sitting": "animation.parrot.sitting",
                "flying": "animation.parrot.flying",
                "standing": "animation.parrot.standing",
                "look_at_target": "animation.common.look_at_target"
            },
            "animation_controllers": [
					{"1": "controller.animation.target_rotate_setup"}, 
					{"1.1": "controller.animation.camera_rotate_setup"}, 
					{"2": "controller.animation.invisible"}, 
					{"3": "controller.animation.status"}, 
					{"4": "controller.animation.health"}, 
					{"5": "controller.animation.hostile_warnings"}, 
					{"6": "controller.animation.pos"}, 
					{"locate": "controller.animation.locate"},
					
                {
                    "setup": "controller.animation.parrot.setup"}, 
					{"move": "controller.animation.parrot.move"}
            ],
            "render_controllers": [
                "controller.render.target_rotate",
                "controller.render.block",
                "controller.render.parrot"
            ],
            "spawn_egg": {
                "texture": "spawn_egg",
                "texture_index": 43
            }
        }
    }
}
