{
  "format_version": "1.8.0",
  "minecraft:client_entity": {
    "description": {
      "identifier": "minecraft:parrot",
      "materials": { "default": "parrot"},
      "textures": {
        "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"
      },
      "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);"
        ]
      },
      "animations": {
        "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": [
        { "setup": "controller.animation.parrot.setup" },
        { "move": "controller.animation.parrot.move" }
      ],
      "render_controllers": [ "controller.render.parrot" ],
      "spawn_egg": {
        "texture": "spawn_egg",
        "texture_index": 43
      }
    }
  }
}