
{
  "format_version": "1.10.0",
  "minecraft:attachable": {
    "description": {
      "identifier": "addon:scar_fire",
      "materials": {
        "default": "entity_alphatest"
      },
      "textures": {
        "default": "textures/guns/nato/scar"
      },
      "geometry": {
        "default":  "geometry.scar"
      },
      "scripts": {
        "pre_animation": [
           "v.main_hand = c.item_slot == 'main_hand';",
           "v.scar = c.item_slot == 'main_hand';",
           "v.fire = q.main_hand_item_use_duration > 0.0f;"
        ],
        "animate": [
          {"scar_controller": "c.is_first_person"},
          {"scar_fire_controller": "V.main_hand && variable.is_first_person"}

        ]
      },
      "animations": {
        "scar_controller": "controller.animation.scar",
        "scar_fire_controller": "controller.animation.scar_fire",
        "scar_shoot": "animation.scar_shoot",
        "scar_reload": "animation.scar_reload_item"
      },
      "render_controllers": [ "controller.render.crossbow" ]
    }
  }
}