Aller au contenu
  • 0

Eviter le drop d'item dans un GUI


Question

Posté(e)

Hello,

 

J'ai fait un Gui mais le problème c'est que si la personne "A" ( a = touche pour drop les items) ben sa drop les items

 

Voici mon code

 

command /sellmysterybox:
   trigger:
       wait 1 tick
       open chest with 5 row named "&1Vendre des MysteryBox" to player
       if {VIP} is true:
           if {VIP+} is true:
               format slot 0 of player with green stained glass named " " to be unstealable
               format slot 1 of player with green stained glass named " " to be unstealable
               format slot 2 of player with green stained glass named " " to be unstealable
               format slot 3 of player with green stained glass named " " to be unstealable
               format slot 4 of player with green stained glass named " " to be unstealable
               format slot 5 of player with green stained glass named " " to be unstealable
               format slot 6 of player with green stained glass named " " to be unstealable
               format slot 7 of player with green stained glass named " " to be unstealable
               format slot 8 of player with green stained glass named " " to be unstealable
               format slot 36 of player with green stained glass named " " to be unstealable
               format slot 37 of player with green stained glass named " " to be unstealable
               format slot 38 of player with green stained glass named " " to be unstealable
               format slot 39 of player with green stained glass named " " to be unstealable
               format slot 40 of player with green stained glass named " " to be unstealable
               format slot 41 of player with green stained glass named " " to be unstealable
               format slot 42 of player with green stained glass named " " to be unstealable
               format slot 43 of player with green stained glass named " " to be unstealable
               format slot 44 of player with green stained glass named " " to be unstealable
               format slot 9 of player with paper named "&6Mystery-Box" to be unstealable
               format slot 10 of player with 1 chest named "&6Mystery-Box x1" to close then run [make player execute command "/sellbox 1"]
               format slot 11 of player with 2 chest named "&6Mystery-Box x2" to close then run [make player execute command "/sellbox 2"]
               format slot 12 of player with 5 chest named "&6Mystery-Box x5" to close then run [make player execute command "/sellbox 5"]
               format slot 13 of player with 10 chest named "&6Mystery-Box x10" to close then run [make player execute command "/sellbox 10"]
               format slot 14 of player with 16 chest named "&6Mystery-Box x16" to close then run [make player execute command "/sellbox 16"]
               format slot 15 of player with 32 chest named "&6Mystery-Box x32" to close then run [make player execute command "/sellbox 32"]
               format slot 16 of player with 64 chest named "&6Mystery-Box x64" to close then run [make player execute command "/sellbox 64"]
               format slot 17 of player with green stained glass named " " to be unstealable
               format slot 26 of player with green stained glass named " " to be unstealable
               format slot 35 of player with green stained glass named " " to be unstealable
               format slot 18 of player with paper named "&6Mystery-Box-VIP" to be unstealable
               format slot 19 of player with 1 chest named "&6Mystery-Box-VIP x1" to close then run [make player execute command "/sellboxvip 1"]
               format slot 20 of player with 2 chest named "&6Mystery-Box-VIP x2" to close then run [make player execute command "/sellboxvip 2"]
               format slot 21 of player with 5 chest named "&6Mystery-Box-VIP x5" to close then run [make player execute command "/sellboxvip 5"]
               format slot 22 of player with 10 chest named "&6Mystery-Box-VIP x10" to close then run [make player execute command "/sellboxvip 10"]
               format slot 23 of player with 16 chest named "&6Mystery-Box-VIP x16" to close then run [make player execute command "/sellboxvip 16"]
               format slot 24 of player with 32 chest named "&6Mystery-Box-VIP x32" to close then run [make player execute command "/sellboxvip 32"]
               format slot 25 of player with 64 chest named "&6Mystery-Box-VIP x64" to close then run [make player execute command "/sellboxvip 64"]
               format slot 27 of player with paper named "&6Mystery-Box-VIP+" to be unstealable
               format slot 28 of player with 1 chest named "&6Mystery-Box-VIP+ x1" to close then run [make player execute command "/sellboxvip+ 1"]
               format slot 29 of player with 2 chest named "&6Mystery-Box-VIP+ x2" to close then run [make player execute command "/sellboxvip+ 2"]
               format slot 30 of player with 5 chest named "&6Mystery-Box-VIP+ x5" to close then run [make player execute command "/sellboxvip+ 5"]
               format slot 31 of player with 10 chest named "&6Mystery-Box-VIP+ x10" to close then run [make player execute command "/sellboxvip+ 10"]
               format slot 32 of player with 16 chest named "&6Mystery-Box-VIP+ x16" to close then run [make player execute command "/sellboxvip+ 16"]
               format slot 33 of player with 32 chest named "&6Mystery-Box-VIP+ x32" to close then run [make player execute command "/sellboxvip+ 32"]
               format slot 34 of player with 64 chest named "&6Mystery-Box-VIP+ x64" to close then run [make player execute command "/sellboxvip+ 64"]

 

Edit, trouver fallais juste augmenter le nombre de tick #serveur en mousse :3

0 réponse à cette question

Messages recommandés

Il n’y a pas encore eu de réponse à cette question

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