{
    "format_version": "1.10.0",
    "animation_controllers": {
        "controller.animation.item_listener": {
            "states": {
                "default": {
                    "transitions": [
                        {
                            "loopback": "query.has_armor_slot(0)"
                        }
                    ]
                },
                "loopback": {
                    "transitions": [
                        {
                            "default": "1.0"
                        }
                    ],
                    "on_entry": [
                        "/function teleporter/lobby",
                        "/replaceitem entity @s slot.armor.head 0 air"
                    ]
                }
            }
        }
    }
}