Aller au contenu
  • 0

Mini aide skript gui


Question

Posté(e)

Bonsoir, j'ai besoin de votre aide pour résoudre un petit problème pour mon gui kit:

Je voudrais ouvrir un gui de 1 ligne avec

au slot 1 une épée en bois nommé Joueur et quand on clic sur l'épée en bois cela nous fais executer la commande /kitjoueur !

Pour le moment j'ai réalisé mon code mais il y a un problème, l'épée ne s'affiche pas !

Code: https://pastebin.com/jcF74S9i

Screen: https://imgur.com/a/tp9H0

 

Merci pour votre aide !

8 réponses à cette question

Messages recommandés

  • 0
Posté(e)

voila un code + optimisé (avec/grâce a TuSKe)[spoiler=code]

command /ffa <text>:
   usage: &7/ffa join / leave
   trigger:
       if arg-1 is "join":
           if {joined.%player%} is "yes":
               send "{@icon} &cTu es déjà en jeu!"
           else:
               open virtual chest with 1 row named "&8Choisis ton kit" to player
               format gui slot 1 of player with diamond sword named "&6&lJoueur" to run:
                   close player's inventory
                   send "{@icon} &3Tu viens de rejoindre le FFA!"
                   set {joined.%player%} to "yes"
                   teleport player to {arene.ffa}
                   remove absorption from player
                   remove regeneration from player
                   heal player
                   set gamemode of player to survival
                   clear player's inventory
                   play "NOTE_PLING" to player at volume 100
                   wait 3 tick
                   apply speed 2 to player for 9999999 seconds
                   set player's helmet to diamond helmet of protection 4
                   set player's chestplate to diamond chestplate of protection 4
                   set player's leggings to diamond leggings of protection 4
                   set player's boots to diamond boots of protection 4
                   give 1 diamond sword of sharpness 5 to player
                   give 1 bow of punch 2 to player
                   give 64 322 to player
                   give 1 322:1 to player
                   give 16 ender pearl to player
                   give 3 373:16421 to player
                   give 64 364 to player
                   wait 6 tick
                   give 64 arrow to player
                   give 8 373:16421 to player
                   wait 6 tick
                   give 8 373:16421 to player
                   give 16 ender pearl to player
                   wait 6 tick
                   give 9 373:16421 to player

 

du coup il te faudra TuSKe 1.8.2-finaldev

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