//This JSON was modified by LateLag (@LateLagMC) and AgentMindStorm (@agentms_). Please do not use this document without permission.
{
  "format_version": "1.10.0",
  "animations": {
    "animation.crossbow.wield": { //Holding unloaded crossbow in main hand
      "loop": true,
      "bones": {
        "rightitem": {
          "position": [ "c.is_first_person ? 10.1 - 8.0 : 0.0", "c.is_first_person ? 22.4 - 14.5 : -6.0", "c.is_first_person ? 10.35 - 10.5 : -3.1" ],
          "rotation": [ "c.is_first_person ? 0.0 : -90.0", "c.is_first_person ? 90.0 + 35.0 : 0.0", "c.is_first_person ? 180.0 : 270.0 - 45.0" ],
          "scale": "c.is_first_person ? 0.68 : 0.9"
        }
      }
    },
    "animation.crossbow.wield_offhand": { //Holding unloaded crossbow in off hand
      "loop": true,
      "bones": {
        "rightitem": {
          "position": [ "c.is_first_person ? -10.1 + 8.0 : 0.0", "c.is_first_person ? 22.4 - 14.5 : -6.0", "c.is_first_person ? 10.35 - 10.5 : -3.1" ],
          "rotation": [ "c.is_first_person ? 0.0 : -90.0", "c.is_first_person ? 180.0 - 35.0 : 0.0", "c.is_first_person ? 180.0 : 180.0 + 45.0" ],
          "scale": "c.is_first_person ? 0.68 : 0.9"
        }
      }
    },
    "animation.crossbow.wield_first_person_pull": { //Loading crossbow (shaking, raising, and rotation)
      "loop": true,
      "bones": {
        "rightitem": {
          "position": [ 0.0, "math.lerp(0.0, math.sin((q.life_time) * 1000.0 * 1.3) * 0.1, variable.charge_amount) + math.min(variable.charge_amount * 80.0,10.0) - 10.0", 0.0 ],
          "rotation": [ 15.0, 27.0, -12.0 ]
        }
      }
    },
    "animation.crossbow.wield_first_person": { //Holding loaded crossbow - returns to normal position if holding shield
      "loop": true,
      "bones": {
        "rightitem": {
          "position": [ "q.is_item_name_any('slot.weapon.offhand', 'minecraft:shield') ? 0.0 : -10.1", 0.0, "q.is_item_name_any('slot.weapon.offhand', 'minecraft:shield') ? 0.0 : 0.25" ],
          "rotation": [ 0.0, "q.is_item_name_any('slot.weapon.offhand', 'minecraft:shield') ? 0.0 : 10.0", 0.0 ]
        }
      }
    }
  }
}