//This JSON was modified by rafael rosado (@carlosisawsom55), Netongas NG (@netongas_ng), Rainvay_ZCYF (@ZouChenyunfei), Kevin Okada (@LateLagMC), and AgentMindStorm (@agentms_). Please do not use this document without permission.
{
  "format_version": "1.8.0",
  "animations": {
    "animation.player.attack.positions": {
      "loop": true,
      "bones": {
        "head": {
          "rotation": [ 0.0, 0.0, 0.0 ]
        }
      }
    },
    "animation.player.attack.rotations": {
      "loop": true,
      "bones": {
        "body": {
          "rotation": [ 0.0, "query.is_gliding || query.is_swimming ? 0.0 : math.sin(math.sqrt(variable.attack_time) * 360.0) * 11.46", 0.0 ]
        },
        "leftarm": {
          "rotation": [ "math.sin(math.sqrt(variable.attack_time) * 360) * 11.46", 0.0, 0.0 ]
        },
        "rightarm": {
          "rotation": [ "-(math.sin((1.0 - math.pow(1.0 - variable.attack_time, 2.0)) * 180.0) * 75.0 + math.sin(variable.attack_time * 180.0) * -0.75 * query.target_x_rotation)", "(math.sin(math.sqrt(variable.attack_time) * 360) * 11.46) * 2.0", "math.sin(math.sqrt(variable.attack_time) * 360) * 11.46" ]
        }
      }
    },
    "animation.player.bob": { //This animation also has item positions hooked into it. The code is nasty, but this is necessary to keep persona skins working. The animations are ordered flat, perpendicular, crossbow, fishing rod, goat horn, pointed dripstone, and totem of undying.
      "loop": true,
      "bones": {
        "leftarm": {
          "rotation": [ "math.sin(query.life_time * 76.8) * 2.865", 0.0, "((math.cos(query.life_time * 103.2) * 2.865) + 2.865) *-1.0" ]
        },
        "rightarm": {
          "rotation": [ "-math.sin(query.life_time * 76.8) * 2.865", 0.0, "(math.cos(query.life_time * 103.2) * 2.865) + 2.865" ]
        },
        "leftitem": {
          "rotation": [
            "
              (q.is_item_name_any('slot.weapon.offhand', 'minecraft:arrow', 'minecraft:firework_rocket', 'minecraft:filled_map', 'minecraft:nautilus_shell') ? 13.0 : 0.0) +
              (q.is_item_name_any('slot.weapon.offhand', 'minecraft:bamboo', 'minecraft:blaze_rod', 'minecraft:bone', 'minecraft:diamond_axe', 'minecraft:diamond_hoe', 'minecraft:diamond_pickaxe', 'minecraft:diamond_shovel', 'minecraft:diamond_sword', 'minecraft:golden_axe', 'minecraft:golden_hoe', 'minecraft:golden_pickaxe', 'minecraft:golden_shovel', 'minecraft:golden_sword', 'minecraft:iron_axe', 'minecraft:iron_hoe', 'minecraft:iron_pickaxe', 'minecraft:iron_shovel', 'minecraft:iron_sword', 'minecraft:netherite_axe', 'minecraft:netherite_hoe', 'minecraft:netherite_pickaxe', 'minecraft:netherite_shovel', 'minecraft:netherite_sword', 'minecraft:stick', 'minecraft:stone_axe', 'minecraft:stone_hoe', 'minecraft:stone_pickaxe', 'minecraft:stone_shovel', 'minecraft:stone_sword', 'minecraft:wooden_axe', 'minecraft:wooden_hoe', 'minecraft:wooden_pickaxe', 'minecraft:wooden_shovel', 'minecraft:wooden_sword') ? 18.5 : 0.0) +
              (q.is_item_name_any('slot.weapon.offhand', 'minecraft:banner') ? 17.5 : 0.0) +
              (q.is_item_name_any('slot.weapon.offhand', 'minecraft:crossbow') ? 0.0 : 0.0) +
              (q.is_item_name_any('slot.weapon.offhand', 'minecraft:carrot_on_a_stick', 'minecraft:fishing_rod', 'minecraft:warped_fungus_on_a_stick') ? -5.0 : 0.0) +
              (q.is_item_name_any('slot.weapon.offhand', 'minecraft:pointed_dripstone') ? 13.0 : 0.0) +
              (q.is_item_name_any('slot.weapon.offhand', 'minecraft:totem_of_undying') ? 13.0 : 0.0)
            ",
            "
              (q.is_item_name_any('slot.weapon.offhand', 'minecraft:arrow', 'minecraft:firework_rocket', 'minecraft:filled_map', 'minecraft:nautilus_shell') ? 14.5 : 0.0) +
              (q.is_item_name_any('slot.weapon.offhand', 'minecraft:bamboo', 'minecraft:blaze_rod', 'minecraft:bone', 'minecraft:diamond_axe', 'minecraft:diamond_hoe', 'minecraft:diamond_pickaxe', 'minecraft:diamond_shovel', 'minecraft:diamond_sword', 'minecraft:golden_axe', 'minecraft:golden_hoe', 'minecraft:golden_pickaxe', 'minecraft:golden_shovel', 'minecraft:golden_sword', 'minecraft:iron_axe', 'minecraft:iron_hoe', 'minecraft:iron_pickaxe', 'minecraft:iron_shovel', 'minecraft:iron_sword', 'minecraft:netherite_axe', 'minecraft:netherite_hoe', 'minecraft:netherite_pickaxe', 'minecraft:netherite_shovel', 'minecraft:netherite_sword', 'minecraft:stick', 'minecraft:stone_axe', 'minecraft:stone_hoe', 'minecraft:stone_pickaxe', 'minecraft:stone_shovel', 'minecraft:stone_sword', 'minecraft:wooden_axe', 'minecraft:wooden_hoe', 'minecraft:wooden_pickaxe', 'minecraft:wooden_shovel', 'minecraft:wooden_sword') ? -2.4 : 0.0) +
              (q.is_item_name_any('slot.weapon.offhand', 'minecraft:banner') ? -10.0 : 0.0) +
              (q.is_item_name_any('slot.weapon.offhand', 'minecraft:crossbow') ? 3.0 : 0.0) +
              (q.is_item_name_any('slot.weapon.offhand', 'minecraft:carrot_on_a_stick', 'minecraft:fishing_rod', 'minecraft:warped_fungus_on_a_stick') ? 2.0 : 0.0) +
              (q.is_item_name_any('slot.weapon.offhand', 'minecraft:pointed_dripstone') ? 14.5 : 0.0) +
              (q.is_item_name_any('slot.weapon.offhand', 'minecraft:totem_of_undying') ? -19.0 : 0.0)
            ",
            "
              (q.is_item_name_any('slot.weapon.offhand', 'minecraft:arrow', 'minecraft:firework_rocket', 'minecraft:filled_map', 'minecraft:nautilus_shell') ? -11.5 : 0.0) +
              (q.is_item_name_any('slot.weapon.offhand', 'minecraft:bamboo', 'minecraft:blaze_rod', 'minecraft:bone', 'minecraft:diamond_axe', 'minecraft:diamond_hoe', 'minecraft:diamond_pickaxe', 'minecraft:diamond_shovel', 'minecraft:diamond_sword', 'minecraft:golden_axe', 'minecraft:golden_hoe', 'minecraft:golden_pickaxe', 'minecraft:golden_shovel', 'minecraft:golden_sword', 'minecraft:iron_axe', 'minecraft:iron_hoe', 'minecraft:iron_pickaxe', 'minecraft:iron_shovel', 'minecraft:iron_sword', 'minecraft:netherite_axe', 'minecraft:netherite_hoe', 'minecraft:netherite_pickaxe', 'minecraft:netherite_shovel', 'minecraft:netherite_sword', 'minecraft:stick', 'minecraft:stone_axe', 'minecraft:stone_hoe', 'minecraft:stone_pickaxe', 'minecraft:stone_shovel', 'minecraft:stone_sword', 'minecraft:wooden_axe', 'minecraft:wooden_hoe', 'minecraft:wooden_pickaxe', 'minecraft:wooden_shovel', 'minecraft:wooden_sword') ? 3.85 : 0.0) +
              (q.is_item_name_any('slot.weapon.offhand', 'minecraft:banner') ? 258.0 : 0.0) +
              (q.is_item_name_any('slot.weapon.offhand', 'minecraft:crossbow') ? -14.5 : 0.0) +
              (q.is_item_name_any('slot.weapon.offhand', 'minecraft:carrot_on_a_stick', 'minecraft:fishing_rod', 'minecraft:warped_fungus_on_a_stick') ? 4.75 : 0.0) +
              (q.is_item_name_any('slot.weapon.offhand', 'minecraft:pointed_dripstone') ? 98.5 : 0.0) +
              (q.is_item_name_any('slot.weapon.offhand', 'minecraft:totem_of_undying') ? 1.0 : 0.0)
            "
          ],
          "position": [
            "
              (q.is_item_name_any('slot.weapon.offhand', 'minecraft:arrow', 'minecraft:firework_rocket', 'minecraft:filled_map', 'minecraft:nautilus_shell') ? 0.9 : 0.0) +
              (q.is_item_name_any('slot.weapon.offhand', 'minecraft:bamboo', 'minecraft:blaze_rod', 'minecraft:bone', 'minecraft:diamond_axe', 'minecraft:diamond_hoe', 'minecraft:diamond_pickaxe', 'minecraft:diamond_shovel', 'minecraft:diamond_sword', 'minecraft:golden_axe', 'minecraft:golden_hoe', 'minecraft:golden_pickaxe', 'minecraft:golden_shovel', 'minecraft:golden_sword', 'minecraft:iron_axe', 'minecraft:iron_hoe', 'minecraft:iron_pickaxe', 'minecraft:iron_shovel', 'minecraft:iron_sword', 'minecraft:netherite_axe', 'minecraft:netherite_hoe', 'minecraft:netherite_pickaxe', 'minecraft:netherite_shovel', 'minecraft:netherite_sword', 'minecraft:stick', 'minecraft:stone_axe', 'minecraft:stone_hoe', 'minecraft:stone_pickaxe', 'minecraft:stone_shovel', 'minecraft:stone_sword', 'minecraft:wooden_axe', 'minecraft:wooden_hoe', 'minecraft:wooden_pickaxe', 'minecraft:wooden_shovel', 'minecraft:wooden_sword') ? 0.3 : 0.0) +
              (q.is_item_name_any('slot.weapon.offhand', 'minecraft:banner') ? -3.93 : 0.0) +
              (q.is_item_name_any('slot.weapon.offhand', 'minecraft:crossbow') ? -0.35 : 0.0) +
              (q.is_item_name_any('slot.weapon.offhand', 'minecraft:carrot_on_a_stick', 'minecraft:fishing_rod', 'minecraft:warped_fungus_on_a_stick') ? 1.8 : 0.0) +
              (q.is_item_name_any('slot.weapon.offhand', 'minecraft:pointed_dripstone') ? 1.15 : 0.0) +
              (q.is_item_name_any('slot.weapon.offhand', 'minecraft:totem_of_undying') ? -0.59 : 0.0)
            ",
            "
              (q.is_item_name_any('slot.weapon.offhand', 'minecraft:arrow', 'minecraft:firework_rocket', 'minecraft:filled_map', 'minecraft:nautilus_shell') ? 0.0 : 0.0) +
              (q.is_item_name_any('slot.weapon.offhand', 'minecraft:bamboo', 'minecraft:blaze_rod', 'minecraft:bone', 'minecraft:diamond_axe', 'minecraft:diamond_hoe', 'minecraft:diamond_pickaxe', 'minecraft:diamond_shovel', 'minecraft:diamond_sword', 'minecraft:golden_axe', 'minecraft:golden_hoe', 'minecraft:golden_pickaxe', 'minecraft:golden_shovel', 'minecraft:golden_sword', 'minecraft:iron_axe', 'minecraft:iron_hoe', 'minecraft:iron_pickaxe', 'minecraft:iron_shovel', 'minecraft:iron_sword', 'minecraft:netherite_axe', 'minecraft:netherite_hoe', 'minecraft:netherite_pickaxe', 'minecraft:netherite_shovel', 'minecraft:netherite_sword', 'minecraft:stick', 'minecraft:stone_axe', 'minecraft:stone_hoe', 'minecraft:stone_pickaxe', 'minecraft:stone_shovel', 'minecraft:stone_sword', 'minecraft:wooden_axe', 'minecraft:wooden_hoe', 'minecraft:wooden_pickaxe', 'minecraft:wooden_shovel', 'minecraft:wooden_sword') ? 0.8 : 0.0) +
              (q.is_item_name_any('slot.weapon.offhand', 'minecraft:banner') ? -3.6 : 0.0) +
              (q.is_item_name_any('slot.weapon.offhand', 'minecraft:crossbow') ? 1.0 : 0.0) +
              (q.is_item_name_any('slot.weapon.offhand', 'minecraft:carrot_on_a_stick', 'minecraft:fishing_rod', 'minecraft:warped_fungus_on_a_stick') ? -3.7 : 0.0) +
              (q.is_item_name_any('slot.weapon.offhand', 'minecraft:pointed_dripstone') ? -5.05 : 0.0) +
              (q.is_item_name_any('slot.weapon.offhand', 'minecraft:totem_of_undying') ? -0.09 : 0.0)
            ",
            "
              (q.is_item_name_any('slot.weapon.offhand', 'minecraft:arrow', 'minecraft:firework_rocket', 'minecraft:filled_map', 'minecraft:nautilus_shell') ? -0.6 : 0.0) +
              (q.is_item_name_any('slot.weapon.offhand', 'minecraft:bamboo', 'minecraft:blaze_rod', 'minecraft:bone', 'minecraft:diamond_axe', 'minecraft:diamond_hoe', 'minecraft:diamond_pickaxe', 'minecraft:diamond_shovel', 'minecraft:diamond_sword', 'minecraft:golden_axe', 'minecraft:golden_hoe', 'minecraft:golden_pickaxe', 'minecraft:golden_shovel', 'minecraft:golden_sword', 'minecraft:iron_axe', 'minecraft:iron_hoe', 'minecraft:iron_pickaxe', 'minecraft:iron_shovel', 'minecraft:iron_sword', 'minecraft:netherite_axe', 'minecraft:netherite_hoe', 'minecraft:netherite_pickaxe', 'minecraft:netherite_shovel', 'minecraft:netherite_sword', 'minecraft:stick', 'minecraft:stone_axe', 'minecraft:stone_hoe', 'minecraft:stone_pickaxe', 'minecraft:stone_shovel', 'minecraft:stone_sword', 'minecraft:wooden_axe', 'minecraft:wooden_hoe', 'minecraft:wooden_pickaxe', 'minecraft:wooden_shovel', 'minecraft:wooden_sword') ? -1.4 : 0.0) +
              (q.is_item_name_any('slot.weapon.offhand', 'minecraft:banner') ? 0.0 : 0.0) +
              (q.is_item_name_any('slot.weapon.offhand', 'minecraft:crossbow') ? 0.23 : 0.0) +
              (q.is_item_name_any('slot.weapon.offhand', 'minecraft:carrot_on_a_stick', 'minecraft:fishing_rod', 'minecraft:warped_fungus_on_a_stick') ? -1.6 : 0.0) +
              (q.is_item_name_any('slot.weapon.offhand', 'minecraft:pointed_dripstone') ? 5.85 : 0.0) +
              (q.is_item_name_any('slot.weapon.offhand', 'minecraft:totem_of_undying') ? -1.55 : 0.0)
            "
          ],
          "scale":
            "
              1.0 +
              (q.is_item_name_any('slot.weapon.offhand', 'minecraft:arrow', 'minecraft:firework_rocket', 'minecraft:filled_map', 'minecraft:nautilus_shell') ? 0.1 : 0.0) +
              (q.is_item_name_any('slot.weapon.offhand', 'minecraft:bamboo', 'minecraft:blaze_rod', 'minecraft:bone', 'minecraft:diamond_axe', 'minecraft:diamond_hoe', 'minecraft:diamond_pickaxe', 'minecraft:diamond_shovel', 'minecraft:diamond_sword', 'minecraft:golden_axe', 'minecraft:golden_hoe', 'minecraft:golden_pickaxe', 'minecraft:golden_shovel', 'minecraft:golden_sword', 'minecraft:iron_axe', 'minecraft:iron_hoe', 'minecraft:iron_pickaxe', 'minecraft:iron_shovel', 'minecraft:iron_sword', 'minecraft:netherite_axe', 'minecraft:netherite_hoe', 'minecraft:netherite_pickaxe', 'minecraft:netherite_shovel', 'minecraft:netherite_sword', 'minecraft:stick', 'minecraft:stone_axe', 'minecraft:stone_hoe', 'minecraft:stone_pickaxe', 'minecraft:stone_shovel', 'minecraft:stone_sword', 'minecraft:wooden_axe', 'minecraft:wooden_hoe', 'minecraft:wooden_pickaxe', 'minecraft:wooden_shovel', 'minecraft:wooden_sword') ? -0.08 : 0.0) +
              (q.is_item_name_any('slot.weapon.offhand', 'minecraft:banner') ? 0.3 : 0.0) +
              (q.is_item_name_any('slot.weapon.offhand', 'minecraft:crossbow') ? -0.1 : 0.0) +
              (q.is_item_name_any('slot.weapon.offhand', 'minecraft:carrot_on_a_stick', 'minecraft:fishing_rod', 'minecraft:warped_fungus_on_a_stick') ? -0.08 : 0.0) +
              (q.is_item_name_any('slot.weapon.offhand', 'minecraft:pointed_dripstone') ? 0.5 : 0.0) +
              (q.is_item_name_any('slot.weapon.offhand', 'minecraft:totem_of_undying') ? 0.1 : 0.0)
            "
        },
        "rightitem": {
          "rotation": [
            "
              (!q.is_item_name_any('slot.weapon.mainhand', 'minecraft:spyglass', 'minecraft:trident', 'minecraft:shield', 'minecraft:bow') ? 13.0 : 0.0) +
              (q.is_item_name_any('slot.weapon.mainhand', 'minecraft:bamboo', 'minecraft:blaze_rod', 'minecraft:bone', 'minecraft:diamond_axe', 'minecraft:diamond_hoe', 'minecraft:diamond_pickaxe', 'minecraft:diamond_shovel', 'minecraft:diamond_sword', 'minecraft:golden_axe', 'minecraft:golden_hoe', 'minecraft:golden_pickaxe', 'minecraft:golden_shovel', 'minecraft:golden_sword', 'minecraft:iron_axe', 'minecraft:iron_hoe', 'minecraft:iron_pickaxe', 'minecraft:iron_shovel', 'minecraft:iron_sword', 'minecraft:netherite_axe', 'minecraft:netherite_hoe', 'minecraft:netherite_pickaxe', 'minecraft:netherite_shovel', 'minecraft:netherite_sword', 'minecraft:stick', 'minecraft:stone_axe', 'minecraft:stone_hoe', 'minecraft:stone_pickaxe', 'minecraft:stone_shovel', 'minecraft:stone_sword', 'minecraft:wooden_axe', 'minecraft:wooden_hoe', 'minecraft:wooden_pickaxe', 'minecraft:wooden_shovel', 'minecraft:wooden_sword') ? 18.5 - 13.0 : 0.0) +
              (q.is_item_name_any('slot.weapon.mainhand', 'minecraft:banner') ? 17.5 - 13.0 : 0.0) +
              (q.is_item_name_any('slot.weapon.mainhand', 'minecraft:crossbow') ? 0.0 - 13.0 : 0.0) +
              (q.is_item_name_any('slot.weapon.mainhand', 'minecraft:carrot_on_a_stick', 'minecraft:fishing_rod', 'minecraft:warped_fungus_on_a_stick') ? -5.0 - 13.0 : 0.0) +
              (q.is_item_name_any('slot.weapon.mainhand', 'minecraft:goat_horn') ? 13.0 - 13.0 : 0.0) +
              (q.is_item_name_any('slot.weapon.mainhand', 'minecraft:pointed_dripstone') ? 0.0 - 13.0 : 0.0)
            ",
            "
              (!q.is_item_name_any('slot.weapon.mainhand', 'minecraft:spyglass', 'minecraft:trident', 'minecraft:shield', 'minecraft:bow') ? 14.5 : 0.0) +
              (q.is_item_name_any('slot.weapon.mainhand', 'minecraft:bamboo', 'minecraft:blaze_rod', 'minecraft:bone', 'minecraft:diamond_axe', 'minecraft:diamond_hoe', 'minecraft:diamond_pickaxe', 'minecraft:diamond_shovel', 'minecraft:diamond_sword', 'minecraft:golden_axe', 'minecraft:golden_hoe', 'minecraft:golden_pickaxe', 'minecraft:golden_shovel', 'minecraft:golden_sword', 'minecraft:iron_axe', 'minecraft:iron_hoe', 'minecraft:iron_pickaxe', 'minecraft:iron_shovel', 'minecraft:iron_sword', 'minecraft:netherite_axe', 'minecraft:netherite_hoe', 'minecraft:netherite_pickaxe', 'minecraft:netherite_shovel', 'minecraft:netherite_sword', 'minecraft:stick', 'minecraft:stone_axe', 'minecraft:stone_hoe', 'minecraft:stone_pickaxe', 'minecraft:stone_shovel', 'minecraft:stone_sword', 'minecraft:wooden_axe', 'minecraft:wooden_hoe', 'minecraft:wooden_pickaxe', 'minecraft:wooden_shovel', 'minecraft:wooden_sword') ? -2.4 - 14.5 : 0.0) +
              (q.is_item_name_any('slot.weapon.mainhand', 'minecraft:banner') ? -10.0 - 14.5 : 0.0) +
              (q.is_item_name_any('slot.weapon.mainhand', 'minecraft:crossbow') ? 3.0 - 14.5 : 0.0) +
              (q.is_item_name_any('slot.weapon.mainhand', 'minecraft:carrot_on_a_stick', 'minecraft:fishing_rod', 'minecraft:warped_fungus_on_a_stick') ? 2.0 - 14.5 : 0.0) +
              (q.is_item_name_any('slot.weapon.mainhand', 'minecraft:goat_horn') ? 14.5 - 14.5 : 0.0) +
              (q.is_item_name_any('slot.weapon.mainhand', 'minecraft:pointed_dripstone') ? 2.0 - 14.5 : 0.0)
            ",
            "
              (!q.is_item_name_any('slot.weapon.mainhand', 'minecraft:spyglass', 'minecraft:trident', 'minecraft:shield', 'minecraft:bow') ? -11.5 : 0.0) +
              (q.is_item_name_any('slot.weapon.mainhand', 'minecraft:bamboo', 'minecraft:blaze_rod', 'minecraft:bone', 'minecraft:diamond_axe', 'minecraft:diamond_hoe', 'minecraft:diamond_pickaxe', 'minecraft:diamond_shovel', 'minecraft:diamond_sword', 'minecraft:golden_axe', 'minecraft:golden_hoe', 'minecraft:golden_pickaxe', 'minecraft:golden_shovel', 'minecraft:golden_sword', 'minecraft:iron_axe', 'minecraft:iron_hoe', 'minecraft:iron_pickaxe', 'minecraft:iron_shovel', 'minecraft:iron_sword', 'minecraft:netherite_axe', 'minecraft:netherite_hoe', 'minecraft:netherite_pickaxe', 'minecraft:netherite_shovel', 'minecraft:netherite_sword', 'minecraft:stick', 'minecraft:stone_axe', 'minecraft:stone_hoe', 'minecraft:stone_pickaxe', 'minecraft:stone_shovel', 'minecraft:stone_sword', 'minecraft:wooden_axe', 'minecraft:wooden_hoe', 'minecraft:wooden_pickaxe', 'minecraft:wooden_shovel', 'minecraft:wooden_sword') ? 3.85 + 11.5 : 0.0) +
              (q.is_item_name_any('slot.weapon.mainhand', 'minecraft:banner') ? 78.0 + 11.5 : 0.0) +
              (q.is_item_name_any('slot.weapon.mainhand', 'minecraft:crossbow') ? 16.0 + 11.5 : 0.0) +
              (q.is_item_name_any('slot.weapon.mainhand', 'minecraft:carrot_on_a_stick', 'minecraft:fishing_rod', 'minecraft:warped_fungus_on_a_stick') ? 4.75 + 11.5 : 0.0) +
              (q.is_item_name_any('slot.weapon.mainhand', 'minecraft:goat_horn') ? 168.5 + 11.5 : 0.0) +
              (q.is_item_name_any('slot.weapon.mainhand', 'minecraft:pointed_dripstone') ? -10.0 + 11.5 : 0.0)
            "
          ],
          "position": [
            "
              (!q.is_item_name_any('slot.weapon.mainhand', 'minecraft:spyglass', 'minecraft:trident', 'minecraft:shield', 'minecraft:bow') ? -1.18 : 0.0) +
              (q.is_item_name_any('slot.weapon.mainhand', 'minecraft:bamboo', 'minecraft:blaze_rod', 'minecraft:bone', 'minecraft:diamond_axe', 'minecraft:diamond_hoe', 'minecraft:diamond_pickaxe', 'minecraft:diamond_shovel', 'minecraft:diamond_sword', 'minecraft:golden_axe', 'minecraft:golden_hoe', 'minecraft:golden_pickaxe', 'minecraft:golden_shovel', 'minecraft:golden_sword', 'minecraft:iron_axe', 'minecraft:iron_hoe', 'minecraft:iron_pickaxe', 'minecraft:iron_shovel', 'minecraft:iron_sword', 'minecraft:netherite_axe', 'minecraft:netherite_hoe', 'minecraft:netherite_pickaxe', 'minecraft:netherite_shovel', 'minecraft:netherite_sword', 'minecraft:stick', 'minecraft:stone_axe', 'minecraft:stone_hoe', 'minecraft:stone_pickaxe', 'minecraft:stone_shovel', 'minecraft:stone_sword', 'minecraft:wooden_axe', 'minecraft:wooden_hoe', 'minecraft:wooden_pickaxe', 'minecraft:wooden_shovel', 'minecraft:wooden_sword') ? -0.1 + 1.18 : 0.0) +
              (q.is_item_name_any('slot.weapon.mainhand', 'minecraft:banner') ? 3.4 + 1.18 : 0.0) +
              (q.is_item_name_any('slot.weapon.mainhand', 'minecraft:crossbow') ? -0.45 + 1.18 : 0.0) +
              (q.is_item_name_any('slot.weapon.mainhand', 'minecraft:carrot_on_a_stick', 'minecraft:fishing_rod', 'minecraft:warped_fungus_on_a_stick') ? 0.26 + 1.18 : 0.0) +
              (q.is_item_name_any('slot.weapon.mainhand', 'minecraft:goat_horn') ? 1.22 + 1.18 : 0.0) +
              (q.is_item_name_any('slot.weapon.mainhand', 'minecraft:pointed_dripstone') ? 0.6 + 1.18 : 0.0)
            ",
            "
              (!q.is_item_name_any('slot.weapon.mainhand', 'minecraft:spyglass', 'minecraft:trident', 'minecraft:shield', 'minecraft:bow') ? -0.39 : 0.0) +
              (q.is_item_name_any('slot.weapon.mainhand', 'minecraft:bamboo', 'minecraft:blaze_rod', 'minecraft:bone', 'minecraft:diamond_axe', 'minecraft:diamond_hoe', 'minecraft:diamond_pickaxe', 'minecraft:diamond_shovel', 'minecraft:diamond_sword', 'minecraft:golden_axe', 'minecraft:golden_hoe', 'minecraft:golden_pickaxe', 'minecraft:golden_shovel', 'minecraft:golden_sword', 'minecraft:iron_axe', 'minecraft:iron_hoe', 'minecraft:iron_pickaxe', 'minecraft:iron_shovel', 'minecraft:iron_sword', 'minecraft:netherite_axe', 'minecraft:netherite_hoe', 'minecraft:netherite_pickaxe', 'minecraft:netherite_shovel', 'minecraft:netherite_sword', 'minecraft:stick', 'minecraft:stone_axe', 'minecraft:stone_hoe', 'minecraft:stone_pickaxe', 'minecraft:stone_shovel', 'minecraft:stone_sword', 'minecraft:wooden_axe', 'minecraft:wooden_hoe', 'minecraft:wooden_pickaxe', 'minecraft:wooden_shovel', 'minecraft:wooden_sword') ? 0.8 + 0.39 : 0.0) +
              (q.is_item_name_any('slot.weapon.mainhand', 'minecraft:banner') ? 1.1 + 0.39 : 0.0) +
              (q.is_item_name_any('slot.weapon.mainhand', 'minecraft:crossbow') ? 1.2 + 0.39 : 0.0) +
              (q.is_item_name_any('slot.weapon.mainhand', 'minecraft:carrot_on_a_stick', 'minecraft:fishing_rod', 'minecraft:warped_fungus_on_a_stick') ? -0.5 + 0.39 : 0.0) +
              (q.is_item_name_any('slot.weapon.mainhand', 'minecraft:goat_horn') ? -3.6 + 0.39 : 0.0) +
              (q.is_item_name_any('slot.weapon.mainhand', 'minecraft:pointed_dripstone') ? -0.65 + 0.39 : 0.0)
            ",
            "
              (!q.is_item_name_any('slot.weapon.mainhand', 'minecraft:spyglass', 'minecraft:trident', 'minecraft:shield', 'minecraft:bow') ? -0.11 : 0.0) +
              (q.is_item_name_any('slot.weapon.mainhand', 'minecraft:bamboo', 'minecraft:blaze_rod', 'minecraft:bone', 'minecraft:diamond_axe', 'minecraft:diamond_hoe', 'minecraft:diamond_pickaxe', 'minecraft:diamond_shovel', 'minecraft:diamond_sword', 'minecraft:golden_axe', 'minecraft:golden_hoe', 'minecraft:golden_pickaxe', 'minecraft:golden_shovel', 'minecraft:golden_sword', 'minecraft:iron_axe', 'minecraft:iron_hoe', 'minecraft:iron_pickaxe', 'minecraft:iron_shovel', 'minecraft:iron_sword', 'minecraft:netherite_axe', 'minecraft:netherite_hoe', 'minecraft:netherite_pickaxe', 'minecraft:netherite_shovel', 'minecraft:netherite_sword', 'minecraft:stick', 'minecraft:stone_axe', 'minecraft:stone_hoe', 'minecraft:stone_pickaxe', 'minecraft:stone_shovel', 'minecraft:stone_sword', 'minecraft:wooden_axe', 'minecraft:wooden_hoe', 'minecraft:wooden_pickaxe', 'minecraft:wooden_shovel', 'minecraft:wooden_sword') ? -1.4 + 0.11 : 0.0) +
              (q.is_item_name_any('slot.weapon.mainhand', 'minecraft:banner') ? -0.5 + 0.11 : 0.0) +
              (q.is_item_name_any('slot.weapon.mainhand', 'minecraft:crossbow') ? 0.23 + 0.11 : 0.0) +
              (q.is_item_name_any('slot.weapon.mainhand', 'minecraft:carrot_on_a_stick', 'minecraft:fishing_rod', 'minecraft:warped_fungus_on_a_stick') ? -1.4 + 0.11 : 0.0) +
              (q.is_item_name_any('slot.weapon.mainhand', 'minecraft:goat_horn') ? -0.11 + 0.11 : 0.0) +
              (q.is_item_name_any('slot.weapon.mainhand', 'minecraft:pointed_dripstone') ? -0.47 + 0.11 : 0.0)
            "
          ],
          "scale":
            "
              1.0 +
              (!q.is_item_name_any('slot.weapon.mainhand', 'minecraft:spyglass', 'minecraft:trident', 'minecraft:shield', 'minecraft:bow') ? 0.1 : 0.0) +
              (q.is_item_name_any('slot.weapon.mainhand', 'minecraft:bamboo', 'minecraft:blaze_rod', 'minecraft:bone', 'minecraft:diamond_axe', 'minecraft:diamond_hoe', 'minecraft:diamond_pickaxe', 'minecraft:diamond_shovel', 'minecraft:diamond_sword', 'minecraft:golden_axe', 'minecraft:golden_hoe', 'minecraft:golden_pickaxe', 'minecraft:golden_shovel', 'minecraft:golden_sword', 'minecraft:iron_axe', 'minecraft:iron_hoe', 'minecraft:iron_pickaxe', 'minecraft:iron_shovel', 'minecraft:iron_sword', 'minecraft:netherite_axe', 'minecraft:netherite_hoe', 'minecraft:netherite_pickaxe', 'minecraft:netherite_shovel', 'minecraft:netherite_sword', 'minecraft:stick', 'minecraft:stone_axe', 'minecraft:stone_hoe', 'minecraft:stone_pickaxe', 'minecraft:stone_shovel', 'minecraft:stone_sword', 'minecraft:wooden_axe', 'minecraft:wooden_hoe', 'minecraft:wooden_pickaxe', 'minecraft:wooden_shovel', 'minecraft:wooden_sword') ? -0.08 - 0.1 : 0.0) +
              (q.is_item_name_any('slot.weapon.mainhand', 'minecraft:banner') ? 0.3 - 0.1 : 0.0) +
              (q.is_item_name_any('slot.weapon.mainhand', 'minecraft:crossbow') ? -0.1 - 0.1 : 0.0) +
              (q.is_item_name_any('slot.weapon.mainhand', 'minecraft:carrot_on_a_stick', 'minecraft:fishing_rod', 'minecraft:warped_fungus_on_a_stick') ? -0.08 - 0.1 : 0.0) +
              (q.is_item_name_any('slot.weapon.mainhand', 'minecraft:goat_horn') ? 0.1 - 0.1 : 0.0) +
              (q.is_item_name_any('slot.weapon.mainhand', 'minecraft:pointed_dripstone') ? -0.08 - 0.1 : 0.0)
            "
        }
      }
    },
    "animation.player.bob.stationary": {
      "loop": true,
      "bones": {
        "leftarm": {
          "rotation": [ "math.sin(query.life_time * 76.8) * 2.865", 0.0, "((math.cos(query.life_time * 103.2) * 2.865) + 2.865) *-1.0" ]
        },
        "rightarm": {
          "rotation": [ "-math.sin(query.life_time * 76.8) * 2.865", 0.0, "(math.cos(query.life_time * 103.2) * 2.865) + 2.865" ]
        }
      }
    },
    "animation.player.bow_equipped": {
      "loop": true,
      "bones": {
        "leftarm": {
          "rotation": [ "-90.0 + query.target_x_rotation - query.is_sneaking * 15.0 - this", "27.5 + query.target_y_rotation", 0.0 ]
        },
        "rightarm": {
          "rotation": [ "-90.0 + query.target_x_rotation - query.is_sneaking * 15.0 - this", "-5.0 + query.target_y_rotation", 0.0 ]
        },
        "rightitem": {
          "rotation": [ 0.0, -10.0, 0.0 ]
        }
      }
    },
    "animation.player.cape": {
      "loop": true,
      "bones": {
        "cape": {
          "position": [ 0.0, "query.get_root_locator_offset('armor_offset.default_neck',1) + 0.25", 0.0 ],
          "rotation": [ "math.clamp(math.lerp(0.0,-126.0,0.75 * query.cape_flap_amount) - 6.0,-100,0)", "math.clamp(-query.yaw_speed * 0.08,-10,10)", "math.clamp(0.05 * ((query.yaw_speed) > 250 ? 250 : (((query.yaw_speed) < -250)? -250 : (query.yaw_speed))),-10,10)" ]
        }
      }
    },
    "animation.player.crossbow_equipped": {
      "loop": true,
      "bones": {
        "leftarm": {
          "position": [ 0.0, 0.0, 0.5 ],
          "rotation": [ "-this - 65.0 - (1.0 - variable.item_use_normalized) * 5.0", "-this + (1.0 - variable.item_use_normalized) * 30.0", "-this + 20.0 + (1.0 - variable.item_use_normalized) * 10.0" ]
        },
        "rightarm": {
          "rotation": [ "- 60.0 - this", "- 45.0 - this", "- 2.5 - this" ]
        },
        "rightitem": {
          "rotation": [ 0.0, 0.0, 0.0 ],
          "position": [ 0.0, -1.0, 0.0 ]
        }
      }
    },
    "animation.player.crossbow_hold": {
      "loop": true,
      "bones": {
        "leftarm": {
          "rotation": [ "query.is_swimming ? 0.0 : -93.0 + query.target_x_rotation - query.is_sneaking * 27.0 -this + 10.0", "query.is_swimming ? 0.0 : 42.0 + math.clamp(query.target_y_rotation, -60.0, 30.0) -this", "query.is_sneaking * -15.0" ]
        },
        "rightarm": {
          "rotation": [ "query.is_swimming ? 0.0 : -93.0 + query.target_x_rotation - query.is_sneaking * 27.0 -this + 10.0", "query.is_swimming ? 0.0 : math.clamp(query.target_y_rotation, -60.0, 45.0) -this -18.0", 0.0 ]
        },
        "rightitem": {
          "rotation": [ 0.0, 0.0, 0.0 ],
          "position": [ 0.0, -1.0, 0.0 ]
        }
      }
    },
    "animation.player.shield_block_main_hand": {
      "loop": true,
      "bones": {
        "leftarm": {
          "rotation": [ "variable.is_holding_left ? 18.0: 0.0", 0.0, 0.0 ]
        },
        "rightarm": {
          "rotation": [ -40.0, -28.0, 10.0 ]
        },
        "rightitem": {
          "position": [ -1.0, -3.0, 0.5 ],
          "rotation": [ -30.0, -30.0, -35.0 ]
        }
      }
    },
    "animation.player.shield_block_off_hand": {
      "loop": true,
      "bones": {
        "leftarm": {
          "rotation": [ -40.0, 28.0, -10.0 ]
        },
        "leftitem": {
          "position": [ 5.0, -2.0, -2.0 ],
          "rotation": [ -210.0, 30.0, 30.0 ]
        },
        "rightarm": {
          "rotation": [ "variable.is_holding_right ? 18.0: 0.0", 0.0, 0.0 ]
        }
      }
    },
    "animation.player.sneaking": {
      "loop": true,
      "bones": {
        "body": {
          "position": [ 0.0, -2.0, 0.75 ]
        },
        "head": {
          "position": [ 0.0, -1.0, 0.0 ]
        },
        "leftarm": {
          "rotation": [ -7.7, 0.0, 0.0 ]
        },
        "leftleg": {
          "rotation": [ -30.0, 0.0, 0.0 ]
        },
        "rightarm": {
          "rotation": [ -7.7, 0.0, 0.0 ]
        },
        "rightleg": {
          "rotation": [ -30.0, 0.0, 0.0 ]
        },
        "root": {
          "position": [ 0.0, -0.5, 9.0 ],
          "rotation": [ "30.0 - this", 0.0, 0.0 ]
        }
      }
    },
    "animation.player.swim": {
      "animation_length": 1.3,
      "loop": true,
      "override_previous_animation": true,
      "bones": {
        "leftarm": {
          "rotation": {
            "0": [ "0.0 + math.sin(math.sqrt(variable.attack_time) * 360) * 11.46", 180.0, 180.0 ],
            "0.7": [ "0.0 + math.sin(math.sqrt(variable.attack_time) * 360) * 11.46", 180.0, 287.2 ],
            "1.1": [ "90.0 + math.sin(math.sqrt(variable.attack_time) * 360) * 11.46", 180.0, 180.0 ],
            "1.3": [ "0.0 + math.sin(math.sqrt(variable.attack_time) * 360) * 11.46", 180.0, 180.0 ]
          }
        },
        "rightarm": {
          "rotation": {
            "0": [ "variable.attack_time > 0 ? -(math.sin((1.0 - math.pow(1.0 - variable.attack_time, 2.0)) * 180.0) * 75.0 + math.sin(variable.attack_time * 180.0) * -0.75 * query.target_x_rotation) : 0.0", "variable.attack_time > 0 ? (math.sin(math.sqrt(variable.attack_time) * 360) * 11.46) * 2.0 : 180.0", "variable.attack_time > 0 ? math.sin(math.sqrt(variable.attack_time) * 360) * 11.46 : -180.0" ],
            "0.7": [ "variable.attack_time > 0 ? -(math.sin((1.0 - math.pow(1.0 - variable.attack_time, 2.0)) * 180.0) * 75.0 + math.sin(variable.attack_time * 180.0) * -0.75 * query.target_x_rotation) : 0.0", "variable.attack_time > 0 ? (math.sin(math.sqrt(variable.attack_time) * 360) * 11.46) * 2.0 : 180.0", "variable.attack_time > 0 ? math.sin(math.sqrt(variable.attack_time) * 360) * 11.46 : -287.2" ],
            "1.1": [ "variable.attack_time > 0 ? -(math.sin((1.0 - math.pow(1.0 - variable.attack_time, 2.0)) * 180.0) * 75.0 + math.sin(variable.attack_time * 180.0) * -0.75 * query.target_x_rotation) : 90.0", "variable.attack_time > 0 ? (math.sin(math.sqrt(variable.attack_time) * 360) * 11.46) * 2.0 : 180.0", "variable.attack_time > 0 ? math.sin(math.sqrt(variable.attack_time) * 360) * 11.46 : -180.0" ],
            "1.3": [ "variable.attack_time > 0 ? -(math.sin((1.0 - math.pow(1.0 - variable.attack_time, 2.0)) * 180.0) * 75.0 + math.sin(variable.attack_time * 180.0) * -0.75 * query.target_x_rotation) : 0.0", "variable.attack_time > 0 ? (math.sin(math.sqrt(variable.attack_time) * 360) * 11.46) * 2.0 : 180.0", "variable.attack_time > 0 ? math.sin(math.sqrt(variable.attack_time) * 360) * 11.46 : -180.0" ]
          }
        },
        "root": {
          "position": [ 0.0, "(math.sin(query.target_x_rotation) * 17.0 + 5.0) * variable.swim_amount", "(math.cos(query.target_x_rotation) * 17.0) * variable.swim_amount" ],
          "rotation": [ "variable.swim_amount * (90.0 + query.target_x_rotation)", 0.0, 0.0 ]
        }
      }
    }
  }
}