execute store success score button_pressed temp run clear @s comparator[minecraft:custom_data~{Button:"AI"}] 1
execute if score button_pressed temp matches 1 run function guipack:gui/function/ai
execute store success score button_pressed temp run clear @s arrow[minecraft:custom_data~{Button:"arrowmenu"}] 1
execute if score button_pressed temp matches 1 run function guipack:gui/function/arrow
execute store success score button_pressed temp run clear @s armor_stand[minecraft:custom_data~{Button:"Reset Trap"}] 1
execute if score button_pressed temp matches 1 run function guipack:gui/function/trap
so uhh this doesnt work but when I use that in another datapack it works (where the only change is switch guipack -> trapessentials)
It gets executed though but when i have this special arrow nothing happens.