{
    "format_version": "1.16.0",
    "minecraft:attachable": {
        "description": {
            "identifier": "hb_we:stone_t4_trident",
            "materials": {
                "default": "entity_alphatest"
            },
            "geometry": {
                "default": "geometry.hb_we.trident_t4"
            },
            "textures": {
                "enchanted": "textures/misc/enchanted_item_glint",
                "default": "textures/horizonblocks/we/weapons/trident/t4/trident_t4_stone"
            },
            "animations": {
"trident_use_tp": "animation.hb_we.trident_use_tp",
                "controller_fp": "controller.animation.hb_we.trident_fp",
                "scale_tp": "animation.hb_we.weapon.scale_07",
                "wield_fp": "animation.hb_we.weapon.fp_trident",
                "charge": "animation.hb_we.weapon.trident_charge",
                "hold": "animation.hb_we.weapon.trident_hold",
                "release": "animation.hb_we.weapon.trident_release"
            },
            "scripts": {
                "pre_animation": [
                    "variable.is_using_item = c.owning_entity -> query.is_using_item;"
                ],
                "initialize": [
                    "variable.is_using_item = 0;"
                ],
                "animate": [
                    {
                        "controller_fp": "c.is_first_person"
                    },
                    {
                        "scale_tp": "!c.is_first_person"
                    },
                    {
                        "wield_fp": "c.is_first_person"
                    },
                    {
                        "trident_use_tp": "!c.is_first_person && v.is_using_item"
                    }
                ]
            },
            "render_controllers": [
                "controller.render.default"
            ]
        }
    }
}