//This JSON was modified by Netongas NG (@netongas_ng), AgentMindStorm (@agentms_), and LateLag (@LateLagMC). Please do not use this document without permission.
{
  "format_version": "1.8.0",
  "animations": {
    "animation.piglin.crossbow.charge": {
      "loop": true,
      "bones": {
        "leftarm": {
          "rotation": [ "math.lerp(-55.62 + variable.x_bob, -90.0, variable.crossbow_charge) + variable.x_bob - this", "math.lerp(22.92, 48.70, variable.crossbow_charge) -this", 0.0 ]
        },
        "rightarm": {
          "rotation": [ "-55.62 + variable.x_bob - this", "-45.84 -this", 0.0 ]
        }
      },
      "loop": true
    },
    "animation.piglin.crossbow.hold": {
      "loop": true,
      "bones": {
        "leftarm": {
          "rotation": [ "-85.94 + query.target_x_rotation - variable.x_bob - this", "34.38 + math.clamp(query.target_y_rotation, -45, 45) -this", 0.0 ]
        },
        "rightarm": {
          "rotation": [ "-84.27 + query.target_x_rotation + variable.x_bob - this", "-17.19 + math.clamp(query.target_y_rotation, -45, 45) -this", 0.0 ]
        }
      }
    },
    "animation.piglin.hand.attack": {
      "loop": true,
      "bones": {
        "body": {
          "rotation": [ 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, 3.0) * 180.0) * 68.755 - math.sin(variable.attack_time * 180.0) * -(query.target_x_rotation - 40.107) * 0.75", "math.sin(math.sqrt(variable.attack_time) * 360.0) * 22.9183", "math.sin(variable.attack_time * 180.0) * -22.9183" ]
        }
      }
    }
  }
}
