{
    "format_version": "1.10.0",
    "minecraft:attachable": {
        "description": {
            "identifier": "drz:flashlight",
            "materials": {
              "default": "entity_emissive"
            },
            "textures": {
              "default": "textures/entity/flashlight_drz"
            },
            "geometry": {
              "default": "geometry.flashlight_drz"
            },
            "animations": {
                "tpp": "animation.flashlight_drz.tpp",
                "fpp": "animation.flashlight_drz.fpp",
                "fpp_off": "animation.flashlight_drz.fpp_offhand"
            },
            "scripts": {
               "initialize": [
                 "v.off_hand_first_person_pos_x = -16;",
                 "v.off_hand_first_person_pos_y = 28;",
                 "v.off_hand_first_person_pos_z = 13;",
                 "v.off_hand_first_person_rot_x = 1;",
                 "v.off_hand_first_person_rot_y = 176;",
                 "v.off_hand_first_person_rot_z = -3;"
                ],
                "animate": [
                    {
                        "tpp": "!c.is_first_person"
                    },
                    {
                        "fpp": "c.is_first_person && c.item_slot == 'main_hand'"
                    },
                    {
                        "fpp_off": "c.is_first_person && c.item_slot != 'main_hand'"
                    }
                ]
            },
            "render_controllers": [
                "controller.render.default"
            ]
        }
    }
}