{
  "format_version": "1.10.0",
  "animation_controllers": {
    "controller.animation.damage_condition": {
      "initial_state": "default",
      "states": {
        "default": {
          "transitions": [
            {
              "charged_mainhand": "v.spartan_shields_charged == 1"
            },
            {
              "charged_offhand": "v.spartan_shields_charged == 2"
            }
          ]
        },
        "charged_offhand": {
          "animations": [ "fluidez" ],
          "on_entry": [
            "/execute @s[tag=sur] ~~~ summon add:tagger ~ ~ ~4",
            "/execute @s[tag=sur] ~~~ summon add:no_tagger ~ ~ ~-6",
            "/execute @s[tag=norte] ~~~ summon add:tagger ~ ~ ~-6",
            "/execute @s[tag=norte] ~~~ summon add:no_tagger ~ ~ ~6",
            "/execute @s[tag=este] ~~~ summon add:tagger ~6 ~ ~",
            "/execute @s[tag=este] ~~~ summon add:no_tagger ~-6 ~ ~",
            "/execute @s[tag=oeste] ~~~ summon add:tagger ~-6 ~ ~",
            "/execute @s[tag=oeste] ~~~ summon add:no_tagger ~6 ~ ~",
            "/tag @s add player_shield"
          ],
          "transitions": [
            {
              "default": "q.all_animations_finished"
            },
            {
              "charged_mainhand": "v.spartan_shields_charged == 1"
            }
          ]
        },
        "charged_mainhand": {
          "animations": [ "fluidez" ],
          "transitions": [
            {
              "default": "q.all_animations_finished"
            },
            {
              "charged_offhand": "v.spartan_shields_charged == 2"
            }
          ],
          "on_entry": [
            "/execute @s[tag=sur] ~~~ summon add:tagger ~ ~ ~6",
            "/execute @s[tag=sur] ~~~ summon add:no_tagger ~ ~ ~-6",
            "/execute @s[tag=norte] ~~~ summon add:tagger ~ ~ ~-6",
            "/execute @s[tag=norte] ~~~ summon add:no_tagger ~ ~ ~6",
            "/execute @s[tag=este] ~~~ summon add:tagger ~6 ~ ~",
            "/execute @s[tag=este] ~~~ summon add:no_tagger ~-6 ~ ~",
            "/execute @s[tag=oeste] ~~~ summon add:tagger ~-6 ~ ~",
            "/execute @s[tag=oeste] ~~~ summon add:no_tagger ~6 ~ ~",
            "/tag @s add player_shield"
          ]
        }
      }
    }
  }
}