{
    "format_version": "1.19.0",
    "animation_controllers": {
        "controller.animation.player.behavior": {
            "states": {
                "default": {
                    "transitions": [
                        {"trigger": "query.variant == 2 "}
                    ]
                },
                "trigger": {
                    "on_entry": [
                        "/event entity @s remove_become_spectator",
                        "/function spectator"
                    ],
                    "transitions": [
                        {
                            "default": "1"
                        }
                    ]
                }
            }
        }
    }
}