{
  "format_version": "1.10.0",
  "animation_controllers": {
    "controller.animation.parry": {
      "states": {
        "default": {
          "transitions": [
            {
              "killing": "query.equipped_item_any_tag('slot.weapon.mainhand','minecraft:is_saber')&& query.is_sneaking"
            }
          ],
          "on_entry": [
            "@s remove_block"
          ]
        },
        "killing": {
          "transitions": [
            {
              "default": "!query.is_sneaking"
            },
            {
              "default": "!query.equipped_item_any_tag('slot.weapon.mainhand','minecraft:is_saber')"
            }
          ],
          "on_entry": [
            "@s add_block"
          ]
        }
      }
    },
    "controller.animation.dodger": {
      "states": {
        "default": {
          "transitions": [
            {
              "killing": "query.is_jumping"
            }
          ],
          "on_entry": [
            "/scoreboard objectives add jump dummy",
            "/scoreboard players set @s jump 0"
          ]
        },
        "killing": {
          "transitions": [
            {
              "default": "!query.is_jumping"
            }
          ],
          "on_entry": [
            "/scoreboard objectives add jump dummy",
            "/scoreboard players set @s jump 1"
          ]
        }
      }
    },
    "controller.animation.sprinter": {
      "states": {
        "default": {
          "transitions": [
            {
              "killing": "query.is_sprinting"
            }
          ],
          "on_entry": [
            "/scoreboard objectives add sprint dummy",
            "/scoreboard players set @s sprint 0"
          ]
        },
        "killing": {
          "transitions": [
            {
              "default": "!query.is_sprinting"
            }
          ],
          "on_entry": [
            "/scoreboard objectives add sprint dummy",
            "/scoreboard players set @s sprint 1"
          ]
        }
      }
    },
    "controller.animation.rider": {
      "states": {
        "default": {
          "transitions": [
            {
              "killing": "query.is_riding"
            }
          ],
          "on_entry": [
            "/scoreboard objectives add rider dummy",
            "/scoreboard players set @s rider 0",
            "/tag @e[type=minecraft:horse,c=1,r=2,tag=horse] remove horse"
          ]
        },
        "killing": {
          "transitions": [
            {
              "default": "!query.is_riding"
            }
          ],
          "on_entry": [
            "/scoreboard objectives add rider dummy",
            "/scoreboard players set @s rider 1",
            "/tag @e[type=minecraft:horse,c=1,r=2] add horse" 
          ]
        }
      }
    }
  }
}