Aller au contenu
  • 0

Un Gui dans un autre gui ?


Question

Posté(e)

Bonjour Skript-MC !

Aujourd'hui je fait appelle a vous car j'ai un problème :

 

Alors voilà, quand on click droit sur un beacon sa ouvre un GUI (Fait), mais quand on click sur l'item sugar (Particules), j'aimerais que sa execute ma commande '/ptc on' qui ouvre un autre GUI.. Je met tous en place, aucune erreur, sauf que quand je clik sur le sucre sa ne marche, sa me ferme mon GUI mais sa n'ouvre pas le GUI des particules ;(

 

Merci d'avance a ceux qui m'aiderons !

 

Le code :

 

on rightclick with beacon:
   if name of player's tool is "&4Gadgets":
       open chest with 6 rows named "&4Gadgets" to player
       wait 1 tick   
       format slot 0 of player with blue stained glass pane named "." to be unstealable
       format slot 1 of player with light blue stained glass pane named "." to be unstealable
       format slot 2 of player with red stained glass pane named "." to be unstealable
       format slot 3 of player with pink stained glass pane named "." to be unstealable
       format slot 4 of player with magenta stained glass pane named "." to be unstealable
       format slot 5 of player with green stained glass pane named "." to be unstealable
       format slot 6 of player with yellow stained glass pane named "." to be unstealable
       format slot 7 of player with orange 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 cyan stained glass pane named "." to be unstealable
       format slot 17 of player with brown stained glass pane named "." to be unstealable
       format slot 18 of player with purple stained glass pane named "." to be unstealable
       format slot 26 of player with glass pane named "." to be unstealable
       format slot 27 of player with gray stained glass pane named "." to be unstealable
       format slot 35 of player with orange stained glass pane named "." to be unstealable
       format slot 36 of player with light blue stained glass pane named "." to be unstealable
       format slot 40 of player with player's skull named "&a%player%" with lore "&6OC : %{okeycoins.%players%}%" to be unstealable
       format slot 44 of player with magenta stained glass pane named "." to be unstealable
       format slot 45 of player with red stained glass pane named "." to be unstealable
       format slot 46 of player with light blue stained glass pane named "." to be unstealable
       format slot 47 of player with red stained glass pane named "." to be unstealable
       format slot 48 of player with pink stained glass pane named "." to be unstealable
       format slot 49 of player with magenta stained glass pane named "." to be unstealable
       format slot 50 of player with green stained glass pane named "." to be unstealable
       format slot 51 of player with yellow stained glass pane named "." to be unstealable
       format slot 52 of player with orange stained glass pane named "." to be unstealable
       format slot 53 of player with white stained glass pane named "." to be unstealable
       format slot 10 of player with diamond block named "." to be unstealable
       format slot 16 of player with diamond block named "." to be unstealable
       format slot 20 of player with diamond block named "." to be unstealable
       format slot 24 of player with diamond block named "." to be unstealable
       format slot 39 of player with diamond block named "." to be unstealable
       format slot 41 of player with diamond block named "." to be unstealable
       format slot 32 of player with diamond block named "." to be unstealable
       format slot 31 of player with diamond block named "." to be unstealable
       format slot 30 of player with diamond block named "." to be unstealable
       format slot 22 of player with pumpkin named "&6&lChapeaux" to be unstealable
       format slot 12 of player with sugar named "&f&lParticules" to close then run [make player execute command "/ptc on"]
       format slot 14 of player with bone named "&9&lGadgets" with lore "&9&lEtâts: &4&l✘ En développement ✘" to be unstealable

command /ptc [<text>] [<player>]:
   trigger:
       if arg 1 is "on":
           open chest with 3 rows named "&f&lParticules" to player
           wait 1 tick
           format slot 0 of player with orange stained glass pane to be unstealable
           format slot 1 of player with orange stained glass pane to be unstealable
           format slot 2 of player with orange stained glass pane to be unstealable
           format slot 3 of player with orange stained glass pane to be unstealable
           format slot 4 of player with orange stained glass pane to be unstealable
           format slot 5 of player with orange stained glass pane to be unstealable
           format slot 6 of player with orange stained glass pane to be unstealable
           format slot 7 of player with orange stained glass pane to be unstealable
           format slot 8 of player with orange stained glass pane to be unstealable
           format slot 9 of player with orange stained glass pane to be unstealable
           format slot 10 of player with redstone named "&4&lParticules de Coeur" to be unstealable
           format slot 12 of player with snowball named "&f&lParticules de Cloud (nuage)" to be unstealable
           format slot 14 of player with lava bucket named "&6&lParticules de Lave" to be unstealable
           format slot 16 of player with end portal frame named "&5&lParticules de Nether Portail" to be unstealable
           format slot 17 of player with orange stained glass pane to be unstealable
           format slot 18 of player with orange stained glass pane to be unstealable
           format slot 19 of player with orange stained glass pane to be unstealable
           format slot 20 of player with orange stained glass pane to be unstealable
           format slot 21 of player with orange stained glass pane to be unstealable
           format slot 22 of player with orange stained glass pane to be unstealable
           format slot 23 of player with orange stained glass pane to be unstealable
           format slot 24 of player with orange stained glass pane to be unstealable
           format slot 25 of player with orange stained glass pane to be unstealable
           format slot 26 of player with orange stained glass pane to be unstealable

5 réponses à cette question

Messages recommandés

  • 0
Posté(e)

J'ai eu le même problème, rajoute un délais sur la commande ptc, en gros sa donne ça:

 

on rightclick with beacon:
   if name of player's tool is "&4Gadgets":
       open chest with 6 rows named "&4Gadgets" to player
       wait 1 tick  
       format slot 0 of player with blue stained glass pane named "." to be unstealable
       format slot 1 of player with light blue stained glass pane named "." to be unstealable
       format slot 2 of player with red stained glass pane named "." to be unstealable
       format slot 3 of player with pink stained glass pane named "." to be unstealable
       format slot 4 of player with magenta stained glass pane named "." to be unstealable
       format slot 5 of player with green stained glass pane named "." to be unstealable
       format slot 6 of player with yellow stained glass pane named "." to be unstealable
       format slot 7 of player with orange 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 cyan stained glass pane named "." to be unstealable
       format slot 17 of player with brown stained glass pane named "." to be unstealable
       format slot 18 of player with purple stained glass pane named "." to be unstealable
       format slot 26 of player with glass pane named "." to be unstealable
       format slot 27 of player with gray stained glass pane named "." to be unstealable
       format slot 35 of player with orange stained glass pane named "." to be unstealable
       format slot 36 of player with light blue stained glass pane named "." to be unstealable
       format slot 40 of player with player's skull named "&a%player%" with lore "&6OC : %{okeycoins.%players%}%" to be unstealable
       format slot 44 of player with magenta stained glass pane named "." to be unstealable
       format slot 45 of player with red stained glass pane named "." to be unstealable
       format slot 46 of player with light blue stained glass pane named "." to be unstealable
       format slot 47 of player with red stained glass pane named "." to be unstealable
       format slot 48 of player with pink stained glass pane named "." to be unstealable
       format slot 49 of player with magenta stained glass pane named "." to be unstealable
       format slot 50 of player with green stained glass pane named "." to be unstealable
       format slot 51 of player with yellow stained glass pane named "." to be unstealable
       format slot 52 of player with orange stained glass pane named "." to be unstealable
       format slot 53 of player with white stained glass pane named "." to be unstealable
       format slot 10 of player with diamond block named "." to be unstealable
       format slot 16 of player with diamond block named "." to be unstealable
       format slot 20 of player with diamond block named "." to be unstealable
       format slot 24 of player with diamond block named "." to be unstealable
       format slot 39 of player with diamond block named "." to be unstealable
       format slot 41 of player with diamond block named "." to be unstealable
       format slot 32 of player with diamond block named "." to be unstealable
       format slot 31 of player with diamond block named "." to be unstealable
       format slot 30 of player with diamond block named "." to be unstealable
       format slot 22 of player with pumpkin named "&6&lChapeaux" to be unstealable
       format slot 12 of player with sugar named "&f&lParticules" to close then run [make player execute command "/ptc on"]
       format slot 14 of player with bone named "&9&lGadgets" with lore "&9&lEtâts: &4&l✘ En développement ✘" to be unstealable

command /ptc [<text>] [<player>]:
   trigger:
       if arg 1 is "on":
           wait 5 tick
           open chest with 3 rows named "&f&lParticules" to player
           wait 1 tick
           format slot 0 of player with orange stained glass pane to be unstealable
           format slot 1 of player with orange stained glass pane to be unstealable
           format slot 2 of player with orange stained glass pane to be unstealable
           format slot 3 of player with orange stained glass pane to be unstealable
           format slot 4 of player with orange stained glass pane to be unstealable
           format slot 5 of player with orange stained glass pane to be unstealable
           format slot 6 of player with orange stained glass pane to be unstealable
           format slot 7 of player with orange stained glass pane to be unstealable
           format slot 8 of player with orange stained glass pane to be unstealable
           format slot 9 of player with orange stained glass pane to be unstealable
           format slot 10 of player with redstone named "&4&lParticules de Coeur" to be unstealable
           format slot 12 of player with snowball named "&f&lParticules de Cloud (nuage)" to be unstealable
           format slot 14 of player with lava bucket named "&6&lParticules de Lave" to be unstealable
           format slot 16 of player with end portal frame named "&5&lParticules de Nether Portail" to be unstealable
           format slot 17 of player with orange stained glass pane to be unstealable
           format slot 18 of player with orange stained glass pane to be unstealable
           format slot 19 of player with orange stained glass pane to be unstealable
           format slot 20 of player with orange stained glass pane to be unstealable
           format slot 21 of player with orange stained glass pane to be unstealable
           format slot 22 of player with orange stained glass pane to be unstealable
           format slot 23 of player with orange stained glass pane to be unstealable
           format slot 24 of player with orange stained glass pane to be unstealable
           format slot 25 of player with orange stained glass pane to be unstealable
           format slot 26 of player with orange stained glass pane to be unstealable

 

J'ai mis 5 tick mais je pense que tu peut mettre moins

  • 0
Posté(e)
Il doit me manquer un addon o_O Pourtant j'ai télécharger le pack skript-mc, tu peu me donner ta liste d'addons stp ?

Si il te manque des addons, tu as obligatoirement une erreur quand tu essaie de reload les skripts. Si tu n'as aucune erreur, ça ne vient pas des addons.

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