Aller au contenu
  • 0

Gui qui ne s'ouvre pas


Question

Posté(e)

Bonjour,

 

J'ai un problème avec ce code:

 

command /recette [<text>]:
   aliases:rct
   trigger:
       if arg 1 is not set:
           send "{@fr}"
       if arg 1 is "blocks":
           open chest with 6 rows named "&4Recettes Des Blocs" to the player
           format slot 0 of player with oak plank to close then run "crafting oak plank"
       if arg 1 is "items":
           open chest with 6 rows named "&4Recettes Des Objets" to the player


command /crafting [<text>]:
   trigger:
       if arg 1 is "oak plank":
           close player's inventory
           wait 1 tick
           open crafting table to the player
           format slot 1 of player with oak log to close
           format slot 10 of player with 4 oak plank to close

 

Le problème est que l'inventaire ce ferme mais celui de la table de craft ne s'ouvre pas

 

 

Merci, Tatsuke

5 réponses à cette question

Messages recommandés

  • 0
Posté(e)

Hey, c'est tout à fait normal, le système de GUI peut normalement générer qu'un seul inventaire, pour en faire plusieurs je te propose de rajouter un "wait 1 ticks", c'est quasiment instantané :)

  • 0
Posté(e)
command /recette [<text>]:
   aliases:rct
   trigger:
       if arg 1 is not set:
           send "{@fr}"
       if arg 1 is "blocks":
           open chest with 6 rows named "&4Recettes Des Blocs" to the player
           wait 1 tick
           format slot 0 of player with oak plank to close then run "crafting oak plank"
       if arg 1 is "items":
           open chest with 6 rows named "&4Recettes Des Objets" to the player


command /crafting [<text>]:
   trigger:
       if arg 1 is "oak plank":
           close player's inventory
           wait 1 tick
           open crafting table to the player
           wait 1 tick
           format slot 1 of player with oak log to close
           format slot 10 of player with 4 oak plank to close

×
×
  • 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.