Ce que je te conseil, c'est que au lieu d'executer une commande dirrecetement dans le format tu fait:
command /test:
trigger:
open chest with 1 rows named "TON MENU" to player
wait 1 ticks
format slot 3 of player with enchanted book named "COMMANDE SPAWN" with lore "&7ICI LITEM OU TU VA EXECUTER LA COMMANDE" to close
unformat slot 3 of player # TU UNFORMAT LITEM EN GROS IL POURRAS LE VOLER
on inventory click:
name of clicked item is "COMMANDE SPAWN": #NOM DE LITEM
cancel event # POUR PAS LE VOLER
make player command "/spawn" as op # COMMANDE
# ET EN PLUS TU PEUX CARREMENT EXECUTER DU CODE