{
    "format_version": "1.8.0",
    "animation_controllers": {
        "controller.animation.boss_vex_actions": {
            "initial_state": "default",
            "states": {
                "default": {
                    "on_entry": [
                        "variable.position = variable.position ?? 0;"  
                    ],
                    "transitions": [
                        {
                            "death": "!query.is_alive"
                        },
                        {
                            "special1": "query.variant == 1"
                        },
                        {
                            "special3": "query.variant == 3"
                        },
                        {
                            "special21": "query.variant == 2 && variable.position == 0"
                        },
                        {
                            "special22": "query.variant == 2 && variable.position == 1"
                        },
                        {
                            "special23": "query.variant == 2 && variable.position == 2"
                        }    
                    ]
                },
                "death": {
                    "on_entry": [
                        "/tellraw @a {\"rawtext\":[{\"text\":\"§9<The Enchanter> §5NOOOO§kOO§r§5OOOO§kOOOOOOOOOOOOO\"}]}"
                    ]
                },
                "special1": {
                    "transitions": [
                        {
                            "default": "query.variant == 0"
                        },
                        {
                            "death": "!query.is_alive"
                        }
                    ],
                    "on_entry": [
                        "@s dungeon:start_timer",
                        "/tellraw @a {\"rawtext\":[{\"text\":\"§9<The Enchanter> §5Don't §ofall!\"}]}",
                        "/execute @a[tag=!exempt,r=25] ~ ~ ~ tp -77 72 123",
                        "/playsound mob.endermen.portal @a[r=25] -77 72 123"
                    ]
                },
                "special21": {
                    "transitions": [
                        {
                            "default": "query.variant == 0"
                        },
                        {
                            "death": "!query.is_alive"
                        }
                    ],
                    "on_entry": [
                        "@s dungeon:start_timer",
                        "/tellraw @a {\"rawtext\":[{\"text\":\"§9<The Enchanter> §5Come find me FOOL!\"}]}",
                        "/tp -84 67 130",
                        "variable.position = 1;",
                        "/playsound mob.endermen.portal @a[r=25]"
                    ]
                },
                "special22": {
                    "transitions": [
                        {
                            "default": "query.variant == 0"
                        },
                        {
                            "death": "!query.is_alive"
                        }
                    ],
                    "on_entry": [
                        "@s dungeon:start_timer",
                        "/tellraw @a {\"rawtext\":[{\"text\":\"§9<The Enchanter> §5Come find me FOOL!\"}]}",
                        "/tp -70 68 116",
                        "variable.position = 2;",
                        "/playsound mob.endermen.portal @a[r=25]"
                    ]
                },
                "special23": {
                    "transitions": [
                        {
                            "default": "query.variant == 0"
                        },
                        {
                            "death": "!query.is_alive"
                        }
                    ],
                    "on_entry": [
                        "@s dungeon:start_timer",
                        "/tellraw @a {\"rawtext\":[{\"text\":\"§9<The Enchanter> §5Come find me FOOL!\"}]}",
                        "/tp -77 66 123",
                        "variable.position = 0;",
                        "/playsound mob.endermen.portal @a[r=25]"
                    ]
                },


                "special3": {
                    "transitions": [
                        {
                            "default": "query.variant == 0"
                        },
                        {
                            "death": "!query.is_alive"
                        }
                    ],
                    "on_entry": [
                        "@s dungeon:start_timer",
                        "/tellraw @a {\"rawtext\":[{\"text\":\"§9<The Enchanter> §5Feel the §lPOWER\"}]}",
                        "/playsound mob.evocation_illager.cast_spell @a[r=25]"
                    ]
                }
            }
        }
    }
}