Aller au contenu

Mon GUI m'aime vraiment pas .-.


Messages recommandés

Posté(e)

Bonsoir, je créé un GUI, mais il ne marche pas ... voici mon code:

on right click holding a clock:
   if name of tool of player contains "&3Menu&dPrincipal":
   open chest with 6 row named "&3Menu&dPrincipal" to player
   wait 3 ticks
   format slot 0 of player with light blue stained glass pane to be unstealable
<encore des formats>
   format slot 20 of player with iron sword named "HardFight" to close then run [ make player execute command "/gui1 joingame"]
   format slot 21 of player with tnt named "Nation" to close then run [ make player execute command "/gui1 joingame"]
   format slot 22 of player with golden apple named "V.I.P HardLife" to close then run [ make player execute command "/gui1 joingame"]
   format slot 23 of player with crafting table named "Semi-RP" to close then run [ make player execute command "/gui1 joingame"]
   format slot 24 of player with iron bars named "Prison" to close then run [ make player execute command "/gui1 joingame"]
   format slot 26 of player with light blue stained glass pane to be unstealable
<encore des formats>
   format slot 53 of player with light blue stained glass pane to be unstealable

command /gui1 <text>:
       trigger:
               if arg 1 is "shopg":
               wait 2 ticks
               open chest with 6 rows named "&3Menu&dShop" to player
               wait 1 ticks
               format slot 0 of player with black stained glass pane to be unstealable
<encore des formats>
               format slot 53 of player with black stained glass pane to be unstealable
               if arg 1 is "joingame":
               wait 2 ticks
               open chest with 3 rows named "&3Menu&dJoin" to player
               wait 1 ticks
               format slot 1 of player with light blue stained glass pane to be unstealable                    format slot 1 of player with light blue stained glass pane to be unstealable
               format slot 2 of player with light blue stained glass pane to be unstealable
<encore des formats>
               format slot 27 of player with light blue stained glass pane to be unstealable
               if arg 1 is "Join":
               wait 2 ticks
               open chest with 3 rows named "&3Menu&dJoin" to player
               wait 1 ticks
               format slot 0 of player with light blue stained glass pane to be unstealable
<encore des formats>
               format slot 37 of player with light blue stained glass pane to be unstealable
               format slot 38 of player with light blue stained glass pane to be unstealable

J'ai deja test de retirer un tab devant les ifs...

 

Merci de votre aide!

Cordialement MrDragonn

Posté(e)

La tabulation est mauvaise

 

essaye ça

on right click holding a clock:
   if name of tool of player contains "&3Menu&dPrincipal":
       open chest with 6 row named "&3Menu&dPrincipal" to player
       wait 3 ticks
       format slot 0 of player with light blue stained glass pane to be unstealable
<encore des formats>
       format slot 20 of player with iron sword named "HardFight" to close then run [ make player execute command "/gui1 joingame"]
       format slot 21 of player with tnt named "Nation" to close then run [ make player execute command "/gui1 joingame"]
       format slot 22 of player with golden apple named "V.I.P HardLife" to close then run [ make player execute command "/gui1 joingame"]
       format slot 23 of player with crafting table named "Semi-RP" to close then run [ make player execute command "/gui1 joingame"]
       format slot 24 of player with iron bars named "Prison" to close then run [ make player execute command "/gui1 joingame"]
       format slot 26 of player with light blue stained glass pane to be unstealable
<encore des formats>
       format slot 53 of player with light blue stained glass pane to be unstealable

command /gui1 <text>:
       trigger:
               if arg 1 is "shopg":
                   wait 2 ticks
                   open chest with 6 rows named "&3Menu&dShop" to player
                   wait 1 ticks
                   format slot 0 of player with black stained glass pane to be unstealable
<encore des formats>
                   format slot 53 of player with black stained glass pane to be unstealable
               if arg 1 is "joingame":
                   wait 2 ticks
                   open chest with 3 rows named "&3Menu&dJoin" to player
                   wait 1 ticks
                   format slot 1 of player with light blue stained glass pane to be unstealable                  
                   format slot 1 of player with light blue stained glass pane to be unstealable
                   format slot 2 of player with light blue stained glass pane to be unstealable
<encore des formats>
                   format slot 27 of player with light blue stained glass pane to be unstealable
               if arg 1 is "Join":
                   wait 2 ticks
                   open chest with 3 rows named "&3Menu&dJoin" to player
                   wait 1 ticks
                   format slot 0 of player with light blue stained glass pane to be unstealable
<encore des formats>
                   format slot 37 of player with light blue stained glass pane to be unstealable
                   format slot 38 of player with light blue stained glass pane to be unstealable

Posté(e)

J'ai réglé le problemes d'une facon différente, c'est a dire que j'ai fais les command /gui, /gui1, /gui2 , ect.

Merci de m'avoir rep, j'avais oublié cette conv, j'la passe en Résolu!

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