{
    "format_version": "1.16.100",
    "minecraft:attachable": {
        "description": {
            "identifier": "true:flare_gun",
            "materials": {
                "default": "entity_alphatest"
            },
            "textures": {
                "default": "textures/guns/flare_gun.png"
            },
            "geometry": {
                "default": "geometry.flare_gun"
            },
            "render_controllers": [
                "controller.render.default"
            ],
            "animations": {
                "first_person_main_hand": "animation.flare_gun.first_person_main_hand",
                "first_person_sneaking_main_hand": "animation.flare_gun.first_person_sneaking_main_hand",
                "third_person_main_hand": "animation.flare_gun.third_person_main_hand"
            },
            "scripts": {
                "pre_animation": [
                    "v.main_hand = c.item_slot == 'main_hand';"
                ],
                "animate": [
                    {
                        "first_person_main_hand": "(v.main_hand && c.is_first_person) && !query.is_sneaking"
                    },
                    {
                        "first_person_sneaking_main_hand": "(v.main_hand && c.is_first_person) && query.is_sneaking"
                    },
                    {
                        "third_person_main_hand": "v.main_hand && !c.is_first_person"
                    }
                ]
            }
        }
    }
}