{
  "format_version": "1.10.0",
  "animation_controllers": {
    "controller.animation.silverlabs_nat.budgie.main": {
      "initial_state": "default",
      "states": {
        "default": {
          "animations": ["idle"],
          "transitions": [
            { "baby_idle": "q.is_baby" },
            {
              "idle_event": "math.random_integer(0, 1000) == 0 && q.ground_speed < 0.15 && !q.is_riding"
            },
            { "walk": "q.modified_move_speed >= 0.05 && !q.is_riding" },
            { "sit": "(q.is_sitting && q.is_on_ground) && !q.is_riding" },
            {
              "fly": "!q.is_in_water && !q.is_on_ground && !q.is_riding && v.health == q.health && !q.is_riding && !q.is_baby"
            },
            { "hurt": "v.health != q.health" },
            { "pet": "q.property('silverlabs_nat:on_pet')" }
          ],
          "blend_transition": 0.2
        },
        "baby_idle": {
          "animations": ["baby_idle"],
          "transitions": [
            { "default": "!q.is_baby" },
            {
              "baby_idle_event": "math.random_integer(0, 300) == 0 && !q.is_riding"
            },
            { "baby_walk": "q.is_baby && (q.modified_move_speed > 0.02)" }
          ],
          "blend_transition": 0.2
        },
        "baby_walk": {
          "animations": ["baby_walk"],
          "transitions": [
            { "default": "!q.is_baby" },
            { "baby_idle": "q.is_baby && !(q.modified_move_speed > 0.02)" }
          ],
          "blend_transition": 0.2
        },
        "baby_idle_event": {
          "animations": ["baby_idle_event"],
          "transitions": [
            { "default": "!q.is_baby" },
            { "baby_walk": "q.is_baby && (q.modified_move_speed > 0.02)" },
            { "baby_idle": "q.all_animations_finished" }
          ],
          "blend_transition": 0.2
        },
        "idle_event": {
          "animations": ["idle_event"],
          "transitions": [
            { "baby_idle": "q.is_baby" },
            { "default": "q.all_animations_finished" },
            { "sit": "q.is_sitting" },
            {
              "fly": "!q.is_in_water && !q.is_on_ground && !q.is_riding && v.health == q.health && !q.is_baby"
            },
            {
              "walk": "!q.is_in_water && !q.is_interested && q.modified_move_speed >= 0.05"
            },
            { "hurt": "v.health != q.health" },
            { "pet": "q.property('silverlabs_nat:on_pet')" }
          ],
          "blend_transition": 0.2
        },
        "walk": {
          "animations": ["walk"],
          "transitions": [
            { "baby_idle": "q.is_baby" },
            { "default": "q.modified_move_speed < 0.05 || q.is_riding" },
            {
              "fly": "!q.is_in_water && !q.is_on_ground && !q.is_riding && v.health == q.health && !q.is_baby || q.is_riding"
            },
            { "hurt": "v.health != q.health" },
            { "pet": "q.property('silverlabs_nat:on_pet')" }
          ],
          "blend_transition": 0.2
        },
        "sit": {
          "animations": ["sit"],
          "transitions": [
            { "baby_idle": "q.is_baby" },
            { "default": "!q.is_sitting" },
            { "sit_pet": "q.property('silverlabs_nat:on_pet')" }
          ],
          "blend_transition": 0.2
        },
        "sit_pet": {
          "animations": ["sit", "pet"],
          "transitions": [
            { "baby_idle": "q.is_baby" },
            { "default": "!q.is_sitting" },
            { "sit": "q.state_time >= 0.5417" }
          ],
          "blend_transition": 0.2
        },
        "fly": {
          "animations": ["fly"],
          "transitions": [
            { "baby_idle": "q.is_baby" },
            { "default": "q.is_in_water || q.is_on_ground || q.is_riding" }
          ],
          "blend_transition": 0.2
        },
        "hurt": {
          "animations": [{ "hurt": "v.health > q.health" }],
          "transitions": [
            { "default": "v.health > q.health ? q.state_time >= 0.333 : 1.0" }
          ],
          "on_exit": ["v.health = q.health;"],
          "blend_transition": 0.2
        },
        "pet": {
          "animations": ["pet"],
          "transitions": [{ "default": "q.any_animation_finished" }],
          "blend_transition": 0.2
        }
      }
    }
  }
}
