Aller au contenu
  • 0

Menu


Question

Posté(e)

Bonjour,

Je me pose actuellement trois question que je n'arrive pas a résoudre.

 

La première: En ouvrant le menu des items disparaissent parfois.

La seconde: Le code avec l'item du profil ne fonctionne pas avec les grade.

La troisième: Enlever ceci aux potions : http://puu.sh/jXe1z/e01a9e7460.jpg

 

on right click holding a head:
       wait 5 tick
       open chest with 5 rows named "&8Menu principal" to player
       format slot 0 of player with enchanted book named "&6Statistique" with lore "&7Cliquez ici pour afficher vos statistiques" to close then run ""
       if {sync.perm.%player%} is 0:
           format slot 4 of player with player's skull named "&6Profil" with lore " En cours"
&eGrade: Joueur %nl%      %nl% &eCoins: &b{sync.coins.%player%} %nl% &e *Secret*: &a{sync.*Secret*.%player%} %nl% &eBooster: &c&l✘"
       if {sync.perm.%player%} is 1:
           format slot 4 of player with player's skull named "&6Profil" with lore "ton texte l1 %nl% ton texte ligne 2"
       if {sync.perm.%player%} is 2:
           format slot 4 of player with player's skull named "&6Profil" with lore "ton texte l1 %nl% ton texte ligne 2"
       if {sync.perm.%player%} is 3:
           format slot 4 of player with player's skull named "&6Profil" with lore "ton texte"
       if {sync.perm.%player%} is 4:
           format slot 4 of player with player's skull named "&6Profil" with lore "ton texte l1 %nl% ton texte ligne 2"
       if {sync.perm.%player%} is 5:
           format slot 4 of player with player's skull named "&6Profil" with lore "ton texte l1 %nl% ton texte ligne 2"
       if {sync.perm.%player%} is 6:
           format slot 4 of player with player's skull named "&6Profil" with lore "ton texte l1 %nl% ton texte ligne 2"
       if {sync.perm.%player%} is 7:
           format slot 4 of player with player's skull named "&6Profil" with lore "ton texte l1 %nl% ton texte ligne 2"
       if {sync.perm.%player%} is 8:
           format slot 4 of player with player's skull named "&6Profil" with lore "ton texte l1 %nl% ton texte ligne 2"
       if {sync.perm.%player%} is 9:
           format slot 4 of player with player's skull named "&6Profil" with lore "ton texte l1 %nl% ton texte ligne 2"
       if {sync.perm.%player%} is 10:
           format slot 4 of player with player's skull named "&6Profil" with lore "ton texte l1 %nl% ton texte ligne 2"
       if {sync.perm.%player%} is 11:
           format slot 4 of player with player's skull named "&6Profil" with lore "ton texte l1 %nl% ton texte ligne 2"
       if {sync.perm.%player%} is 12:
           format slot 4 of player with player's skull named "&6Profil" with lore "ton texte l1 %nl% ton texte ligne 2"
       if {sync.perm.%player%} is 13:
           format slot 4 of player with player's skull named "&6Profil" with lore "ton texte l1 %nl% ton texte ligne 2"
       if {sync.perm.%player%} is 14:
           format slot 4 of player with player's skull named "&6Profil" with lore "ton texte l1 %nl% ton texte ligne 2"
       if {sync.perm.%player%} is 15:
           format slot 4 of player with player's skull named "&6Profil" with lore "ton texte l1 %nl% ton texte ligne 2"

       format slot 8 of player with gold ingot named "&6Boutique" with lore "&7Cliquez ici pour ouvrir la boutique" to close then run ""
       format slot 9 of player with redstone repeater named "&6Paramètres" with lore "&7Cliquez ici pour afficher vos paramètres" to close then run ""
       format slot 12 of player with bed named "&6Spawn" with lore "&7Téléportation au spawn!" to close then run "guitp-spawn %player%"
       format slot 14 of player with feather named "&6Jump" with lore "&7Cliquez ici pour aller au jump" to close then run "jump %player%"
       format slot 17 of player with nether star named "&6Cosmétiques" with lore "&7Cliquez ici pour afficher les cosmétiques" to close then run ""
       format slot 30 of player with apple named "*Secret*" with lore "&7Cliquez ici pour aller a *Secret*" to close then run "guitp-ae %player%"
       format slot 31 of player with ice named "&3*Secret*" with lore "&7Clique ici pour aller a *Secret*" to close then run "guitp-ib %player%"
       format slot 32 of player with non-splash speed potion named "*Secret*" with lore "&7Clique ici pour aller au *Secret*" to close then run ""

 

Merci :)

Cordialement, TheKiosK

20 réponses à cette question

Messages recommandés

  • 0
Posté(e)

2 - fait afficher un message dans le chat pour montrez la valeur de la permission du joueur afin que tu puisse controler si c'est pas la valeur qui a un pb

Ex : ta valeur est a 0 ou <none> ou null

 

3 - il y as un addon " je sais plus le quel " pour enlever les metadata des items.

  • J'aime 1
  • 0
Posté(e)
Toujour mettre 1 tick de delay entre l'open chest et le format slot

Sinon, ba bug d'items qui disparaisse ;)

 

J'ai testé ça mais ça ne fonctionne pas :c

Les items disparaissent toujours.

  • 0
Posté(e)

***** TU AS OUBLIE DE METTRE LES "TO CLOSE" A LA FIN DES LIGNES !! *****

 

Correction :

on right click holding a head:
       wait 5 tick
       open chest with 5 rows named "&8Menu principal" to player
       format slot 0 of player with enchanted book named "&6Statistique" with lore "&7Cliquez ici pour afficher vos statistiques" to close then run ""
       if {sync.perm.%player%} is 0:
           format slot 4 of player with player's skull named "&6Profil" with lore " En cours :||
&eGrade: Joueur %nl%    %nl% &eCoins: &b{sync.coins.%player%} %nl% &e *Secret*: &a{sync.*Secret*.%player%} %nl% &eBooster: &c&l✘" to close
       if {sync.perm.%player%} is 1:
           format slot 4 of player with player's skull named "&6Profil" with lore "ton texte l1 %nl% ton texte ligne 2" to close
       if {sync.perm.%player%} is 2:
           format slot 4 of player with player's skull named "&6Profil" with lore "ton texte l1 %nl% ton texte ligne 2" to close
       if {sync.perm.%player%} is 3:
           format slot 4 of player with player's skull named "&6Profil" with lore "ton texte" to close
       if {sync.perm.%player%} is 4:
           format slot 4 of player with player's skull named "&6Profil" with lore "ton texte l1 %nl% ton texte ligne 2" to close
       if {sync.perm.%player%} is 5:
           format slot 4 of player with player's skull named "&6Profil" with lore "ton texte l1 %nl% ton texte ligne 2" to close
       if {sync.perm.%player%} is 6:
           format slot 4 of player with player's skull named "&6Profil" with lore "ton texte l1 %nl% ton texte ligne 2" to close
       if {sync.perm.%player%} is 7:
           format slot 4 of player with player's skull named "&6Profil" with lore "ton texte l1 %nl% ton texte ligne 2" to close
       if {sync.perm.%player%} is 8:
           format slot 4 of player with player's skull named "&6Profil" with lore "ton texte l1 %nl% ton texte ligne 2" to close
       if {sync.perm.%player%} is 9:
           format slot 4 of player with player's skull named "&6Profil" with lore "ton texte l1 %nl% ton texte ligne 2" to close
       if {sync.perm.%player%} is 10:
           format slot 4 of player with player's skull named "&6Profil" with lore "ton texte l1 %nl% ton texte ligne 2" to close
       if {sync.perm.%player%} is 11:
           format slot 4 of player with player's skull named "&6Profil" with lore "ton texte l1 %nl% ton texte ligne 2" to close
       if {sync.perm.%player%} is 12:
           format slot 4 of player with player's skull named "&6Profil" with lore "ton texte l1 %nl% ton texte ligne 2" to close
       if {sync.perm.%player%} is 13:
           format slot 4 of player with player's skull named "&6Profil" with lore "ton texte l1 %nl% ton texte ligne 2" to close
       if {sync.perm.%player%} is 14:
           format slot 4 of player with player's skull named "&6Profil" with lore "ton texte l1 %nl% ton texte ligne 2" to close
       if {sync.perm.%player%} is 15:
           format slot 4 of player with player's skull named "&6Profil" with lore "ton texte l1 %nl% ton texte ligne 2" to close
       format slot 8 of player with gold ingot named "&6Boutique" with lore "&7Cliquez ici pour ouvrir la boutique" to close then run ""
       format slot 9 of player with redstone repeater named "&6Paramètres" with lore "&7Cliquez ici pour afficher vos paramètres" to close then run ""
       format slot 12 of player with bed named "&6Spawn" with lore "&7Téléportation au spawn!" to close then run "guitp-spawn %player%"
       format slot 14 of player with feather named "&6Jump" with lore "&7Cliquez ici pour aller au jump" to close then run "jump %player%"
       format slot 17 of player with nether star named "&6Cosmétiques" with lore "&7Cliquez ici pour afficher les cosmétiques" to close then run ""
       format slot 30 of player with apple named "*Secret*" with lore "&7Cliquez ici pour aller a *Secret*" to close then run "guitp-ae %player%"
       format slot 31 of player with ice named "&3*Secret*" with lore "&7Clique ici pour aller a *Secret*" to close then run "guitp-ib %player%"
       format slot 32 of player with non-splash speed potion named "*Secret*" with lore "&7Clique ici pour aller au *Secret*" to close then run ""

  • 0
Posté(e)

Correction totale pour ne plus avoir aucune erreur:

on right click holding a head:
       wait 5 tick
       open chest with 5 rows named "&8Menu principal" to player
	wait 1 tick
       format slot 0 of player with enchanted book named "&6Statistique" with lore "&7Cliquez ici pour afficher vos statistiques" to close then run [make player execute command "/command"]
       if {sync.perm.%player%} is 0:
           format slot 4 of player with player's skull named "&6Profil" with lore " En cours :||
&eGrade: Joueur %nl%    %nl% &eCoins: &b{sync.coins.%player%} %nl% &e *Secret*: &a{sync.*Secret*.%player%} %nl% &eBooster: &c&l✘" to close
       if {sync.perm.%player%} is 1:
           format slot 4 of player with player's skull named "&6Profil" with lore "ton texte l1 %nl% ton texte ligne 2" to close
       if {sync.perm.%player%} is 2:
           format slot 4 of player with player's skull named "&6Profil" with lore "ton texte l1 %nl% ton texte ligne 2" to close
       if {sync.perm.%player%} is 3:
           format slot 4 of player with player's skull named "&6Profil" with lore "ton texte" to close
       if {sync.perm.%player%} is 4:
           format slot 4 of player with player's skull named "&6Profil" with lore "ton texte l1 %nl% ton texte ligne 2" to close
       if {sync.perm.%player%} is 5:
           format slot 4 of player with player's skull named "&6Profil" with lore "ton texte l1 %nl% ton texte ligne 2" to close
       if {sync.perm.%player%} is 6:
           format slot 4 of player with player's skull named "&6Profil" with lore "ton texte l1 %nl% ton texte ligne 2" to close
       if {sync.perm.%player%} is 7:
           format slot 4 of player with player's skull named "&6Profil" with lore "ton texte l1 %nl% ton texte ligne 2" to close
       if {sync.perm.%player%} is 8:
           format slot 4 of player with player's skull named "&6Profil" with lore "ton texte l1 %nl% ton texte ligne 2" to close
       if {sync.perm.%player%} is 9:
           format slot 4 of player with player's skull named "&6Profil" with lore "ton texte l1 %nl% ton texte ligne 2" to close
       if {sync.perm.%player%} is 10:
           format slot 4 of player with player's skull named "&6Profil" with lore "ton texte l1 %nl% ton texte ligne 2" to close
       if {sync.perm.%player%} is 11:
           format slot 4 of player with player's skull named "&6Profil" with lore "ton texte l1 %nl% ton texte ligne 2" to close
       if {sync.perm.%player%} is 12:
           format slot 4 of player with player's skull named "&6Profil" with lore "ton texte l1 %nl% ton texte ligne 2" to close
       if {sync.perm.%player%} is 13:
           format slot 4 of player with player's skull named "&6Profil" with lore "ton texte l1 %nl% ton texte ligne 2" to close
       if {sync.perm.%player%} is 14:
           format slot 4 of player with player's skull named "&6Profil" with lore "ton texte l1 %nl% ton texte ligne 2" to close
       if {sync.perm.%player%} is 15:
           format slot 4 of player with player's skull named "&6Profil" with lore "ton texte l1 %nl% ton texte ligne 2" to close
       format slot 8 of player with gold ingot named "&6Boutique" with lore "&7Cliquez ici pour ouvrir la boutique" to close then run [make player execute command "/command"]
       format slot 9 of player with redstone repeater named "&6Paramètres" with lore "&7Cliquez ici pour afficher vos paramètres" to close then run [make player execute command "/command"]
       format slot 12 of player with bed named "&6Spawn" with lore "&7Téléportation au spawn!" to close then run [make player execute command "/guitp-spawn %player%"]
       format slot 14 of player with feather named "&6Jump" with lore "&7Cliquez ici pour aller au jump" to close then run [make player execute command "/jump %player%"]
       format slot 17 of player with nether star named "&6Cosmétiques" with lore "&7Cliquez ici pour afficher les cosmétiques" to close then run [make player execute command "/command"]
       format slot 30 of player with apple named "*Secret*" with lore "&7Cliquez ici pour aller a *Secret*" to close then run [make player execute command "/guitp-ae %player%"]
       format slot 31 of player with ice named "&3*Secret*" with lore "&7Clique ici pour aller a *Secret*" to close then run [make player execute command "/guitp-ib %player%"]
       format slot 32 of player with non-splash speed potion named "*Secret*" with lore "&7Clique ici pour aller au *Secret*" to close then run [make player execute command "/command"]

  • J'aime 1
  • 0
Posté(e)

Je vais aller tester le code, merci beaucoup

 

Edit: Si je résume tous les problèmes sont réglés sauf un, les items.

Même avec le "wait 1 tick" y en a qui disparaissent :c

  • 0
Posté(e)
Je vais aller tester le code, merci beaucoup

 

Edit: Si je résume tous les problèmes sont réglés sauf un, les items.

Même avec le "wait 1 tick" y en a qui disparaissent :c

Il y a des items qui ne sont là, sûrement que la variable {sync.perm.%player%} n'est pas active sur toi ou il est sur 1 ou 0 ou 2 ou etc...

  • 0
Posté(e)

J'ai changé les items et ça marche parfaite, merci :p

 

Au passage tu sais comment faire un item enchanté ?

Exemple une lead, format slot 1 of player with ??? named ....

  • 0
Posté(e)

A tous azard

L'item qui apparaisser pas , c'etais pas la potion ?

 

J'ai eu un pb similaire une fois avec le give des potion et sa a bien fonctionné quand je fesais

 

Give 1 potion of:ID to the player

Donc en utilisent " potion of: " suivi de l'id de la potion.

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