{
  "format_version": "1.10.0",
  "animation_controllers": {
    "controller.animation.player.ataque": {
      "initial_state": "no",
      "states": {
        "no": {
          "animations": [
            { "delay": "q.is_baby && v.spartan_shields_charged >= 1" }
          ],
          "transitions": [
            { "attacking": "v.attack_time > 0.0" }
          ],
          "on_exit": [ "@s add:hit" ]
        },
        "attacking": {
          "animations": [
            { "delay": "q.is_baby && v.spartan_shields_charged >= 1" }
          ],
          "transitions": [
            { "no": "v.attack_time == 0.0" }
          ],
          "on_exit": [ "@s add:none" ]
        }
      }
    },
    "controller.animation.player.faces2d": {
      "initial_state": "default",
      "states": {
        "default": {
          "transitions": [
            { "north": "q.cardinal_facing_2d == 2"
},
            { "south": "q.cardinal_facing_2d == 3" },
            { "west": "q.cardinal_facing_2d == 4" },
            { "east": "q.cardinal_facing_2d == 5" }
          ]
        },
        "north": {
          "transitions": [
            { "default": "q.cardinal_facing_2d != 2" }
          ],
          "on_entry": [ "/tag @s add norte" ],
          "on_exit": [ "/tag @s remove norte" ]
        },
        "south": {
          "transitions": [
            { "default": "q.cardinal_facing_2d != 3" }
          ],
          "on_entry": [ "/tag @s add sur" ],
          "on_exit": [ "/tag @s remove sur" ]
        },
        "east": {
          "transitions": [
            { "default": "q.cardinal_facing_2d != 5" }
          ],
          "on_entry": [ "/tag @s add este" ],
          "on_exit": [ "/tag @s remove este" ]
        },
        "west": {
          "transitions": [
            { "default": "q.cardinal_facing_2d != 4" }
          ],
          "on_entry": [ "/tag @s add oeste" ],
          "on_exit": [ "/tag @s remove oeste" ]
        }
      }
    },
    "controller.animation.player.throw_supports": {
      "initial_state": "default",
      "states": {
        "default": {
          "transitions": [
            { "on_use": "(q.get_equipped_item_name('main_hand') == 'egg' || q.get_equipped_item_name('main_hand') == 'snowball') && q.is_using_item"
}
          ],
          "on_entry": [
            "v.throwing_supports = 0; return v.throwing_supports;"
          ]
        },
        "on_use": {
          "transitions": [
            { "default": "!q.is_using_item" }
          ],
          "on_exit": [
            "v.throwing_supports = 1; return v.throwing_supports;"
          ]
        }
      }
    },
    "controller.animation.player.throw_trident": {
      "initial_state": "default",
      "states": {
        "default": {
          "transitions": [
            { "charging_trident": "q.get_equipped_item_name('main_hand') == 'trident' && v.is_brandishing_spear" }
          ],
          "on_entry": [
            "v.throwing_trident = 0; return v.throwing_trident;"
          ]
        },
        "charging_trident": {
          "transitions": [ 
            { "default": "!v.is_brandishing_spear" }
          ],
          "on_exit": [
            "v.throwing_trident = 1; return v.throwing_trident;"
          ]
        }
      }
    },
    "controller.animation.player.throw_arrow": {
      "initial_state": "default",
      "states": {
        "default": {
          "transitions": [
            { "charging_bow": "q.get_equipped_item_name('main_hand') == 'bow' && q.item_remaining_use_duration"
}
          ],
          "on_entry": [
            "v.myarrow_from_bow = 0; return v.myarrow_from_bow;"
          ]
        },
        "charging_bow": {
          "transitions": [
            { "default": "!q.item_remaining_use_duration && q.get_equipped_item_name('main_hand') == 'bow'"
}
          ],
          "on_exit": [
            "v.myarrow_from_bow = 1; return v.myarrow_from_bow;"
          ]
        }
      }
    },
    "controller.animation.player.throw_arrow2": {
      "initial_state": "default",
      "states": {
        "default": {
          "transitions": [
            { "crossbow_charged": "q.get_equipped_item_name('main_hand') == 'crossbow' && q.item_is_charged" }
          ],
          "on_entry": [
            "v.myarrow_from_crossbow = 0; return v.myarrow_from_crossbow;"
          ]
        },
        "crossbow_charged": {
          "transitions": [
            { "default": "!q.item_is_charged && q.get_equipped_item_name('main_hand') == 'crossbow'" }
          ],
          "on_exit": [
            "v.myarrow_from_crossbow = 1; return v.myarrow_from_crossbow;"
          ]
        }
      }
    }
  }
}