
{
  "format_version": "1.10.0",
  "minecraft:attachable": {
    "description": {
      "identifier": "addon:fbmp1",
      "materials": {
        "default": "entity_alphatest"
      },
      "textures": {
        "default": "textures/entity/vehicle/bmp1_rf",
        "rf": "textures/entity/vehicle/bmp1_rf",
        "ykr": "textures/entity/vehicle/bmp1_rf"
      },
      "geometry": {
        "default":  "geometry.bmp1bs",
        "pricel_bmp2": "geometry.pustota"
      },
      "scripts": {
        "pre_animation": [
           "v.off_hand = c.item_slot == 'off_hand';",
           "v.bmp2_kord = c.item_slot == 'off_hand';",
           "v.fire = q.main_hand_item_use_duration > 0.0f;"
        ],
        "animate": [
          {"look_at_target_tigr_m_turret": "!c.is_first_person"},
          {"tigr_m_turret": "!c.is_first_person"},
          {"tigr_m_turret_first": "c.is_first_person"},
          {"bmp2_kord_fire_controller": "variable.bmp2_kord"}

        ]
      },
      "animations": {
        "tigr_m_turret": "animation.tigr_m_turret",
        "tigr_m_turret_first": "animation.tigr_m_turret_first",
        "look_at_target_tigr_m_turret": "animation.humanoid.look_at_target_tigr_m_turret",
        "bmp2_kord_fire_controller": "controller.animation.bmp2_kord_fire",
        "shoot2": "animation.pkt_kord_shoot",
        "shoot": "animation.bmp2_kord_shoot"
      },
      "render_controllers": [ 
        "controller.render.perekras",
        "controller.render.bmp2" ]
    }
  }
}