
{
  "format_version": "1.10.0",
  "minecraft:attachable": {
    "description": {
      "identifier": "addon:ft72",
      "materials": {
        "default": "entity_alphatest"
      },
      "textures": {
        "default": "textures/entity/vehicle/t72",
        "bmp2_kord": "textures/entity/flash/flash"
      },
      "geometry": {
        "default":  "geometry.t72_b2",
        "bmp2_kord": "geometry.pustota"
      },
      "scripts": {
        "pre_animation": [
           "v.off_hand = c.item_slot == 'off_hand';",
           "v.t90a_fyg = c.item_slot == 'main_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"},
          {"t90a_kord_fire_controller": "variable.t90a_fyg"}

        ]
      },
      "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",
        "t90a_kord_fire_controller": "controller.animation.t90a_kord_fire",
        "shoot": "animation.t90a_fire"
      },
      "render_controllers": [ 
        "controller.render.car",
        "controller.render.bmp2" ]
    }
  }
}