Aller au contenu

[Kits] PvPFaction


Messages recommandés

Posté(e)

Minecraft 1.8

Skript 1.8

 

Bonjours,bonsoir j'aimerais de l'aide a mon skript ci dessous pour que quand le joueur fait sont kit sa lui mes 24h d'attente dans tous les kits et lui met les secondes d'attente dans la commande et si possible si le joueur est full quand il fait sont kit sa tombe a terre. Merci :)

 

command /kit:
   trigger:   
       open chest with 5 rows named "&6Kits" to player
       wait 2 tick
       format slot 11 of player with 1 336 named "&7Lynosien" to run [make player execute command "/kitlynosien"]
       format slot 21 of player with 1 265 named "&9Baby-VIP" to run [make player execute command "/kitbaby-vip"]
       format slot 13 of player with 1 266 named "&eVIP" to run [make player execute command "/kitvip"]
       format slot 23 of player with 1 388 named "&aPaladin" to run [make player execute command "/kitpaladin"]
       format slot 15 of player with 1 264 named "&bVIP+" to run [make player execute command "/kitvip+"]

command /kitlynosien:
   permission: kit.lynosien
   permission message: &cTu n'as pas accès a avoir ce kit !
   trigger:
       give 1 iron sword to player
       give 16 297 to player
       give 1 iron chestplate to player
       give 1 iron leggings to player
       give 1 iron helmet to player
       give 1 iron boots to player
       give 1 278 to player
       give 1 258 to player
       give 1 256 to player
       give 16 17 to player
       stop

command /kitBaby-Vip:
   permission: kit.Baby-Vip
   permission message: &cTu n'as pas accès a avoir ce kit !
   trigger:
       give 1 diamond sword of sharpness 3 and unbreaking 1 to player
       give 32 steak to player
       give 1 diamond chestplate of protection 2 and unbreaking 3 to player
       give 1 diamond leggings of protection 2 and unbreaking 3 to player
       give 1 diamond helmet of protection 2 and unbreaking 3 to player
       give 1 diamond boots of protection 2 and unbreaking 3 to player
       give 32 49 to player
       give 128 384 to player
       give 48 368 to player
       stop

command /kitVip:
   permission: kit.Vip
   permission message: &cTu n'as pas accès a avoir ce kit !
   trigger:
       give 1 diamond sword of sharpness 4 and unbreaking 2 to player
       give 64 steak to player
       give 1 diamond chestplate of protection 3 and unbreaking 3 to player
       give 1 diamond leggings of protection 3 and unbreaking 3 to player
       give 1 diamond helmet of protection 3 and unbreaking 3 to player
       give 1 diamond boots of protection 3 and unbreaking 3 to player
       give 64 49 to player
       give 256 384 to player
       give 80 368 to player
       stop

command /kitVip+:
   permission: kit.Vip+
   permission message: &cTu n'as pas accès a avoir ce kit !
   trigger:
       give 1 diamond sword of sharpness 5 and unbreaking 3 to player
       give 80 steak to player
       give 1 diamond chestplate of protection 4 and unbreaking 3 to player
       give 1 diamond leggings of protection 4 and unbreaking 3 to player
       give 1 diamond helmet of protection 4 and unbreaking 3 to player
       give 1 diamond boots of protection 4 and unbreaking 3 to player
       give 96 49 to player
       give 112 384 to player
       stop

command /kitPaladin:
   permission: kit.Paladin
   permission message: &cTu n'as pas accès a avoir ce kit !
   trigger:
       give 1 diamond sword of sharpness 5 and unbreaking 3 and fire aspect 2 to player
       give 96 steak to player
       give 1 diamond chestplate of protection 4 and unbreaking 3 to player
       give 1 diamond leggings of protection 4 and unbreaking 3 to player
       give 1 diamond helmet of protection 4 and unbreaking 3 to player
       give 1 diamond boots of protection 4 and unbreaking 3 to player
       give 128 49 to player
       give 144 384 to player
       stop

Posté(e)
Tu mets : if player has enought place for ...

Si c’est non tu fais pas un give mais un drop.

Je compren dpas trop ou le mettre dans le code :/ le if player has enought place for ...

Posté(e)

Deja de base ton skript est loin d'être optimisé, utilise des variable liste pour tes items. ET après ça reviens vers nous ^^

La réponse ta été donnée.

 

on command "kitblabla":
   if player has enought place for [VARIABLE D'ITEMS]:
       send "Tu viens de recevoir le kit"
   else:
       drop [VARIABLE D'ITEMS] to player's location

Posté(e)
Deja de base ton skript est loin d'être optimisé, utilise des variable liste pour tes items. ET après ça reviens vers nous ^^

La réponse ta été donnée.

 

on command "kitblabla":
   if player has enought place for [VARIABLE D'ITEMS]:
       send "Tu viens de recevoir le kit"
   else:
       drop [VARIABLE D'ITEMS] to player's location

Variable d'items ? cet a dire ?

Posté(e)
Salut !

En fait tu devrais faire un creation de kit ingame ce qui allegerait beaucoup ton code c est de ça qu il parle ;)

Oui j'y est pensée mes avec essentialskitsmanager je peux creer que un kit les autres je les creers mes j pas accès j essayer avec des permissions et tous sa marche pas

Invité
Ce sujet ne peut plus recevoir de nouvelles réponses.
×
×
  • 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.