//This JSON was modified by Netongas NG (@netongas_ng), AgentMindStorm (@agentms_), and Kevin Okada (@LateLagMC). Please do not use this document without permission.
{
  "format_version" : "1.8.0",
  "animations" : {
    "animation.piglin.bob" : {
      "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" ]
        },
        "leftear" : {
          "rotation" : [ 0.0, 0.0, "(-math.cos(query.life_time * 143.2) * 2.865)"]
        },
        "rightear" : {
          "rotation" : [ 0.0, 0.0, "(math.cos(query.life_time * 123.2) * 2.865)"]
        }
      }
    },
    "animation.piglin.celebrate_hunt_special": {
      "loop": true,
      "bones": {
        "leftear": {
          "rotation": [ 0.0, 0.0, "Math.sin(query.time_stamp * 30) * 10" ]
        },
        "rightear": {
          "rotation": [ 0.0, 0.0, "Math.cos(query.time_stamp * 30) * 10" ]
        },
        "head": {
          "position": [ "Math.sin(query.time_stamp * 10)", "Math.sin(query.time_stamp * 40) - 1.0", 0.0 ]
        },
        "rightarm": {
          "rotation": [ 0.0, 0.0, "70 + Math.cos(query.time_stamp * 40) * 10"]
        },
        "leftarm": {
          "rotation": [ 0.0, 0.0, "-70 - Math.cos(query.time_stamp * 40) * 10"]
        },
        "body": {
          "position": [ 0.0, "Math.sin(query.time_stamp * 40) * 0.35 - 0.35", 0.0 ]
        }
      }
    },
    "animation.piglin.crossbow.charge" : {
      "bones" : {
        "leftarm" : {
          "rotation" : [ "math.lerp(-90.0 + 34.38, -90.0, variable.crossbow_charge)  -this", "math.lerp(22.92, 48.70, variable.crossbow_charge) -this", 0.0 ]
        },
        "rightarm" : {
          "rotation" : [ "-90.0 + 34.38 -this", "-45.84 -this", 0.0 ]
        },
        "rightitem" : {
          "position" : [ 0.0, -1.0, 0.0]
        }
      },
      "loop" : true
    },
    "animation.piglin.crossbow.hold" : {
      "bones" : {
        "leftarm" : {
          "rotation" : [ "-85.94 + query.target_x_rotation -this", "34.38 + math.clamp(query.target_y_rotation, -45, 25) -this", 0.0 ]
        },
        "rightarm" : {
          "rotation" : [ "-90.0 + 5.73 + query.target_x_rotation -this", "-17.19 + math.clamp(query.target_y_rotation, -25, 45) -this", 0.0 ]
        },
        "rightitem" : {
          "position" : [ 0.0, -1.0, 0.0]
        }
      },
      "loop" : true
    },
    "animation.piglin.hand.attack" : {
      "loop" : true,
      "bones" : {
        "body" : {
          "rotation" : [ 0.0, "math.sin(math.sqrt(variable.attack_time) * 360.0) * 11.46", 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" ]
        },
        "leftarm" : {
          "rotation" : [ "math.sin(math.sqrt(variable.attack_time) * 360) * 11.46", 0.0, 0.0 ]
        }
      }
    },
    "animation.piglin.move" : {
      "loop" : true,
      "bones": {
        "leftear": {
          "rotation" : [ 0.0, 0.0, "variable.tcos0_left_ear * 0.5" ]
        },
        "rightear": {
          "rotation" : [ 0.0, 0.0, "-variable.tcos0 * 0.5" ]
        },
        "leftarm" : {
          "rotation" : [ "variable.tcos0", 0.0, 0.0 ]
        },
        "leftleg" : {
          "rotation" : [ "-variable.tcos0 * 1.4", 0.0, 0.0 ]
        },
        "rightarm" : {
          "rotation" : [ "-variable.tcos0", 0.0, 0.0 ]
        },
        "rightleg" : {
          "rotation" : [ "variable.tcos0 * 1.4", 0.0, 0.0 ]
        }
      }
    },
    "animation.piglin.sword.attack" : {
      "loop" : true,
      "bones" : {
        "body" : {
          "rotation" : [ 0.0, "q.is_item_equipped('main_hand') ? 0.0 : math.sin(math.sqrt(variable.attack_time) * 360.0) * 11.46", 0.0 ]
        },
        "rightarm" : {
          "rotation" : [ "q.is_item_equipped('main_hand') ? 108 * ((variable.is_brandishing_spear * -0.5) - 1.0) - 1.15 * (-(math.sin(variable.attack_time * 180.0) * 57.3) * 1.2 - (math.sin((1.0 - (1.0 - variable.attack_time) * (1.0 - variable.attack_time)) * 180.0) * 57.3) * 0.5) + (math.sin(query.life_time * 76.776372) * 2.865) - this : -(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)", "q.is_item_equipped('main_hand') ? 0.0 : (math.sin(math.sqrt(variable.attack_time) * 360) * 11.46) * 2.0", "q.is_item_equipped('main_hand') ? 0.0 : math.sin(math.sqrt(variable.attack_time) * 360) * 11.46" ]
        },
        "leftarm" : {
          "rotation" : [ "q.is_item_equipped('main_hand') ? 0.0 : math.sin(math.sqrt(variable.attack_time) * 360) * 11.46", 0.0, 0.0 ]
        }
      }
    }
  }
}
