{
    "format_version": "1.8.0",
    "animations": {
        "animation.p2reload_full": {
            "loop":"hold_on_last_frame",
            "animation_length": 1.4,
            "timeline": {
                  "0.0": [
                      "/playsound p2_reload_full",
                      "/event entity @s full",
                      "/replaceitem entity @s[hasitem={item=hd:p-2,location=slot.weapon.mainhand}] slot.weapon.mainhand 0 hd:p-2_reloading",
                      "/replaceitem entity @s[hasitem={item=hd:p-2_empty,location=slot.weapon.mainhand}] slot.weapon.mainhand 0 hd:p-2_reloading"
                      ],
                  "0.42": [
                      "/clear @s hd:sec_mag 0 1"
                      ],
                  "1.2": [
                "/replaceitem entity @s[hasitem={item=hd:p-2_reloading,location=slot.weapon.mainhand}] slot.weapon.mainhand 0 hd:p-2",
                "/scoreboard players set @s p2_ammo 0"
                ]
            }
        },
        "animation.p2reload_empty": {
            "loop":"hold_on_last_frame",
            "animation_length": 1.5,
            "timeline": {
                  "0.0": [
                      "/playsound p2_reload_empty",
                      "/event entity @s empty",
                      "/replaceitem entity @s[hasitem={item=hd:p-2,location=slot.weapon.mainhand}] slot.weapon.mainhand 0 hd:p-2_reloading",
                      "/replaceitem entity @s[hasitem={item=hd:p-2_empty,location=slot.weapon.mainhand}] slot.weapon.mainhand 0 hd:p-2_reloading"
                      ],
                  "0.42": [
                      "/clear @s hd:sec_mag 0 1"
                      ],
                  "1.4": [
                "/replaceitem entity @s[hasitem={item=hd:p-2_reloading,location=slot.weapon.mainhand}] slot.weapon.mainhand 0 hd:p-2",
                "/scoreboard players set @s p2_ammo 0"
                ]
            }
        }
    }
}