Aller au contenu
  • 0

Problème - Commande GUI non executée


Question

Posté(e)

Bonjour,

 

j'ai crée un skript menu GUI avec Tuske mais j'ai un problème, aucune erreur n'est annoncé lors du reload du script mais lorsqu'on lance le menu, et qu'on clique sur un item censé lancer une commande, ça ne le fait pas, je ne sais pas si c'est le fait que j'ai oublié quelque chose, ou que j'ai mal écrit quelque chose.

 

J'espère que vous pourrez m'aider ! et je vous en remercie, bonne journée / Soirée !

on rightclick holding a 6352 on a player:
   set {mec} to player
   make player execute command "/menufouille"

command /menufouille:
   trigger:
       open virtual chest inventory with size 1 named "&6Menu Fouille" to event-player
       wait 3 ticks
       send "&6Menu Fouille ouvert !"
       create a gui slot 1 of player with 6361 to run player command "/permis %{mec}%"
       wait 3 ticks
       create a gui slot 4 of player with 6352 to run player command "/fouille %{mec}%"
       wait 3 ticks
       create a gui slot 7 of player with 6334 to close then run player command "/infocartev %{mec}%"

command /menufouille2 <player>:
   trigger:
       open virtual chest inventory with size 1 named "&6Menu Fouille" to player
       wait 3 ticks
       send "&6Menu Fouille ouvert !"
       create a gui slot 1 of player with 6361 to run player command "/permis %arg 1%"
       wait 3 ticks
       create a gui slot 4 of player with 6352 to run player command "/fouille %arg 1%"
       wait 3 ticks
       create a gui slot 7 of player with 6334 to close then run player command "/infocartev %arg 1%"
on rightclick holding a 6352 on a player:
   set {mec} to player
   make player execute command "/menufouille"

command /menufouille:
   trigger:
       open virtual chest inventory with size 1 named "&6Menu Fouille" to event-player
       wait 3 ticks
       send "&6Menu Fouille ouvert !"
       create a gui slot 1 of player with 6361 to run player command "/permis %{mec}%"
       wait 3 ticks
       create a gui slot 4 of player with 6352 to run player command "/fouille %{mec}%"
       wait 3 ticks
       create a gui slot 7 of player with 6334 to close then run player command "/infocartev %{mec}%"

command /menufouille2 <player>:
   trigger:
       open virtual chest inventory with size 1 named "&6Menu Fouille" to player
       wait 3 ticks
       send "&6Menu Fouille ouvert !"
       create a gui slot 1 of player with 6361 to run player command "/permis %arg 1%"
       wait 3 ticks
       create a gui slot 4 of player with 6352 to run player command "/fouille %arg 1%"
       wait 3 ticks
       create a gui slot 7 of player with 6334 to close then run player command "/infocartev %arg 1%"

command /fouille <player>:
   trigger:
       wait 5 ticks
       make player execute command "/invsee %{mec}%"

1 réponse à cette question

Messages recommandés

  • 0
Posté(e)

Problème résolu, je l'ai fais sous une autre forme:

on right click on entity with 6352:
   if player has permission "fouille.bo":
       entity is a player
       set {mec} to player
       wait 1 ticks
       open chest with 1 rows named "Fouille" to player
       wait 1 tick
       format slot 0 of player with 6361 named "&cPermis" to close then run [make player execute command "/permis %{mec}%"]
       format slot 1 of player with white stained glass pane named "-" to be unstealable
       format slot 2 of player with white stained glass pane named "-" to be unstealable
       format slot 3 of player with white stained glass pane named "-" to be unstealable
       format slot 4 of player with 6352 named "&cFouille" to close then run [make player execute command "/fouille %{mec}%"]
       format slot 5 of player with white stained glass pane named "-" to be unstealable
       format slot 6 of player with white stained glass pane named "-" to be unstealable
       format slot 7 of player with white stained glass pane named "-" to be unstealable
       format slot 8 of player with white stained glass pane named "-" to be unstealable
       format slot 9 of player with 6334 named "&c Carte Identite" to close then run [make player execute command "/infocartev %{mec}%"]

command /menufouille3 <player>:
   if player has permission "fouille.b":
   trigger:
       wait 1 ticks
       open chest with 1 rows named "Fouille" to player
       wait 1 tick
       format slot 0 of player with 6361 named "&cPermis" to close then run [make player execute command "/permis %arg 1%"]
       format slot 1 of player with white stained glass pane named "-" to be unstealable
       format slot 2 of player with white stained glass pane named "-" to be unstealable
       format slot 3 of player with white stained glass pane named "-" to be unstealable
       format slot 4 of player with 6352 named "&cFouille" to close then run [make player execute command "/fouille %arg 1%"]
       format slot 5 of player with white stained glass pane named "-" to be unstealable
       format slot 6 of player with white stained glass pane named "-" to be unstealable
       format slot 7 of player with white stained glass pane named "-" to be unstealable
       format slot 9 of player with white stained glass pane named "-" to be unstealable
       format slot 8 of player with 6334 named "&c Carte Identite" to close then run [make player execute command "/infocartev %arg 1%"]

×
×
  • Créer...

Information importante

Nous avons placé des cookies sur votre appareil pour aider à améliorer ce site. Vous pouvez choisir d’ajuster vos paramètres de cookie, sinon nous supposerons que vous êtes d’accord pour continuer.