{
    "format_version": "1.10.0",
    "minecraft:attachable": {
        "description": {
            "identifier": "vl:is_electrogun",
            "materials": {
                "default": "entity_alphatest",
                "enchanted": "entity_alphatest_glint"
            },
            "textures": {
                "default": "textures/items3d/is_electrogun",
                "enchanted": "textures/misc/enchanted_item_glint"
            },
            "geometry": {
                "default": "geometry.is_electrogun"
            },
            "particle_effects": {
                "electric": "vl:electric_hit"
            },
            "scripts": {
                "pre_animation": [
                    "v.equip = c.item_slot == 'main_hand';",
                    "v.electric = query.modified_move_speed < 0.5;"
                ],
                "animate": [{
                    "fp": "v.equip && c.is_first_person"
                },
                    {
                        "fp_sneak": "v.equip && query.is_sneaking && c.is_first_person"
                    },
                    {
                        "tp": "v.equip && !c.is_first_person"
                    },
                    {
                        "equip": "v.equip && v.electric"
                    }]
            },
            "animations": {
                "fp": "animation.is_electrogun.first_person.equip",
                "fp_sneak": "animation.is_electrogun.first_person.sneak",
                "tp": "animation.is_electrogun.third_person.equip",
                "equip": "animation.is_electrogun.spar3k"
            },
            "render_controllers": [
                "controller.render.item_default"
            ]
        }
    }
}