Aller au contenu

Sticks [cooldown unique au stick]


Messages recommandés

Posté(e)

MC: 1.8.8

Sk: dev 27 2.2

 

Bonjour,

 

J'ai modifier (Avec l'aide de AzerFlaash) un skript de Sticks.

 

Je m'explique:

 

Le joueur fais /stick, il sélection le health, sa lui give avec dans le lore "&7Heath I (+ 3 Coeurs)||&7Durabilité 3", quand le joueur l'utilise un cooldown de 10 seconds se met sur le sticks (pas sur le joueur, ni les sticks global health) uniquement sur se stick en question, lors de chaque utilisation la durabilité remove de 1

 

 

J'ai essaye mais sans suite mon code:

 

       
options:
   Permission: admin.shears
   message.permission: &cVous n'avez pas accès à cette commande.

   CMD: /stick

   GUI.nom: &6[&eStick&6]
   GUI.nom.health: &7[&eHealthStick&7]
   GUI.nom.health2: &7[&eHealthStick2&7]
   GUI.nom.speed: &7[&eSpeedStick&7]
   GUI.nom.strength: &7[&eStrengthStick&7]
   GUI.nom.jump: &7[&eJumpStick&7&l]
   GUI.nom.nofall: &7[&eNoFallStick&7]
   GUI.nom.haste: &7[&eHasteStick&7]
   GUI.nom.fire: &7[&eFireStick&7]
   GUI.nom.all: &7[&eTous les shears&7]

   GUI.lore.health: &6* &7Instant Health I (3 Hearts)||&7Durabilité • 3
   GUI.lore.health2: &6* &7Instant Health I (3 Hearts)||&7Durabilité • 3||&8&lID: &7&l%{nombredesticks}%
   GUI.lore.health3: &6* &7Instant Health I (3 Hearts)||&7Durabilité • %{_lvl}%||&8&lID: &7&l%{nombredesticks}%
   GUI.lore.speed: &6* &7Speed II -> 10 Secondes||* &7Nausea -> 7 Secondes||&7Durabilité • 3
   GUI.lore.speed2: &6* &7Speed VI -> 4 Secondes||&6* &7Nausea VI -> 15 Secondes||&7Durabilité • 3||&8&lID: &7&l%{nombredesticks}%
   GUI.lore.speed3: &6* &7Speed VI -> 4 Secondes||&6* &7Nausea VI -> 15 Secondes||&7Durabilité • %{_lvl}%||&8&lID: &7&l%{nombredesticks}%
   GUI.lore.strength: &6* &7Strength III -> 3 Secondes||&6* &7Blindness I -> 10 Secondes||&8&lID: &7&l%{nombredesticks}%
   GUI.lore.jump: &6* &7Jump V -> 5 Secondes||&6* &7Hunger V -> 8 Secondes||&8&lID: &7&l%{nombredesticks}%
   GUI.lore.nofall: &6* &7NoFall -> 10 secondes||&6* &7Damage  -3 coeur||&8&lID: &7&l%{nombredesticks}%
   GUI.lore.haste: &6* &7Haste II -> 100 secondes||&6* &7Blindness I -> 20 Secondes||&8&lID: &7&l%{nombredesticks}%
   GUI.lore.fire: &6* &7Fire Resistance I -> 60 secondes||&6* &7wither III -> 5 Secondes ||&8&lID: &7&l%{nombredesticks}%

command {@CMD} [<text>]:
   permission: {@Permission}
   permission message: {@message.permission}
   trigger:
       if arg 1 is not set:
           open chest with 3 rows named "{@GUI.nom}" to player
           format gui slot 9 of player with shears of silk touch 1 named "{@GUI.nom.speed}" with lore "{@GUI.lore.speed}" to run:
               make player execute command "/stick speed"
               add 1 to {nombredesticks}
               close player's inventory
           format gui slot 10 of player with shears of silk touch 1 named "{@GUI.nom.health}" with lore "{@GUI.lore.health}" to run:
               make player execute command "/stick health"
               add 1 to {nombredesticks}
               close player's inventory
           format gui slot 11 of player with shears of silk touch 1 named "{@GUI.nom.strength}" with lore "{@GUI.lore.strength}" to run:
               make player execute command "/stick strength"
               add 1 to {nombredesticks}
               close player's inventory
           format gui slot 12 of player with shears of silk touch 1 named "{@GUI.nom.jump}" with lore "{@GUI.lore.jump}" to run:
               make player execute command "/stick jump"
               add 1 to {nombredesticks}
               close player's inventory
           format gui slot 13 of player with shears of silk touch 1 named "{@GUI.nom.nofall}" with lore "{@GUI.lore.nofall}" to run:
               make player execute command "/stick nofall"
               add 1 to {nombredesticks}
               close player's inventory
           format gui slot 14 of player with shears of silk touch 1 named "{@GUI.nom.haste}" with lore "{@GUI.lore.haste}" to run:
               make player execute command "/stick haste"
               add 1 to {nombredesticks}
               close player's inventory
           format gui slot 15 of player with shears of silk touch 1 named "{@GUI.nom.fire}" with lore "{@GUI.lore.fire}" to run:
               make player execute command "/stick fire"
               add 1 to {nombredesticks}
               close player's inventory
           format gui slot 17 of player with blaze rod named "{@GUI.nom.all}" to run:
               make player execute command "/stick all"
               close player's inventory
           while inventory name of current inventory of player is "{@GUI.nom}":
               if inventory name of current inventory of player is "{@GUI.nom}":   
                   format gui slot 0 of player with stained glass pane:7 named " " to do nothing
                   format gui slot 18 of player with stained glass pane:7 named " " to do nothing           
                   format gui slot 1 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 19 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 2 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 20 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 3 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 21 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 4 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 22 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 5 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 23 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 6 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 24 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 7 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 25 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 8 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 26 of player with stained glass pane:5 named " " to do nothing
               wait 2 ticks
               if inventory name of current inventory of player is "{@GUI.nom}":                   
                   format gui slot 0 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 18 of player with stained glass pane:5 named " " to do nothing           
                   format gui slot 1 of player with stained glass pane:7 named " " to do nothing
                   format gui slot 19 of player with stained glass pane:7 named " " to do nothing
                   format gui slot 2 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 20 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 3 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 21 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 4 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 22 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 5 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 23 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 6 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 24 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 7 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 25 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 8 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 26 of player with stained glass pane:5 named " " to do nothing               
               wait 2 ticks
               if inventory name of current inventory of player is "{@GUI.nom}":                   
                   format gui slot 0 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 18 of player with stained glass pane:5 named " " to do nothing           
                   format gui slot 1 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 19 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 2 of player with stained glass pane:7 named " " to do nothing
                   format gui slot 20 of player with stained glass pane:7 named " " to do nothing
                   format gui slot 3 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 21 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 4 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 22 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 5 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 23 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 6 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 24 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 7 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 25 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 8 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 26 of player with stained glass pane:5 named " " to do nothing               
               wait 2 ticks           
               if inventory name of current inventory of player is "{@GUI.nom}":                   
                   format gui slot 0 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 18 of player with stained glass pane:5 named " " to do nothing           
                   format gui slot 1 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 19 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 2 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 20 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 3 of player with stained glass pane:7 named " " to do nothing
                   format gui slot 21 of player with stained glass pane:7 named " " to do nothing
                   format gui slot 4 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 22 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 5 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 23 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 6 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 24 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 7 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 25 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 8 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 26 of player with stained glass pane:5 named " " to do nothing               
               wait 2 ticks   
               if inventory name of current inventory of player is "{@GUI.nom}":                   
                   format gui slot 0 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 18 of player with stained glass pane:5 named " " to do nothing           
                   format gui slot 1 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 19 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 2 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 20 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 3 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 21 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 4 of player with stained glass pane:7 named " " to do nothing
                   format gui slot 22 of player with stained glass pane:7 named " " to do nothing
                   format gui slot 5 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 23 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 6 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 24 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 7 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 25 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 8 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 26 of player with stained glass pane:5 named " " to do nothing               
               wait 2 ticks
               if inventory name of current inventory of player is "{@GUI.nom}":                   
                   format gui slot 0 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 18 of player with stained glass pane:5 named " " to do nothing           
                   format gui slot 1 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 19 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 2 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 20 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 3 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 21 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 4 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 22 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 5 of player with stained glass pane:7 named " " to do nothing
                   format gui slot 23 of player with stained glass pane:7 named " " to do nothing
                   format gui slot 6 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 24 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 7 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 25 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 8 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 26 of player with stained glass pane:5 named " " to do nothing               
               wait 2 ticks
               if inventory name of current inventory of player is "{@GUI.nom}":                   
                   format gui slot 0 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 18 of player with stained glass pane:5 named " " to do nothing           
                   format gui slot 1 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 19 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 2 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 20 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 3 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 21 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 4 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 22 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 5 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 23 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 6 of player with stained glass pane:7 named " " to do nothing
                   format gui slot 24 of player with stained glass pane:7 named " " to do nothing
                   format gui slot 7 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 25 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 8 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 26 of player with stained glass pane:5 named " " to do nothing               
               wait 2 ticks
               if inventory name of current inventory of player is "{@GUI.nom}":                   
                   format gui slot 0 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 18 of player with stained glass pane:5 named " " to do nothing           
                   format gui slot 1 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 19 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 2 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 20 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 3 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 21 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 4 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 22 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 5 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 23 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 6 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 24 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 7 of player with stained glass pane:7 named " " to do nothing
                   format gui slot 25 of player with stained glass pane:7 named " " to do nothing
                   format gui slot 8 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 26 of player with stained glass pane:5 named " " to do nothing               
               wait 2 ticks
               if inventory name of current inventory of player is "{@GUI.nom}":                   
                   format gui slot 0 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 18 of player with stained glass pane:5 named " " to do nothing           
                   format gui slot 1 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 19 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 2 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 20 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 3 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 21 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 4 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 22 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 5 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 23 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 6 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 24 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 7 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 25 of player with stained glass pane:5 named " " to do nothing
                   format gui slot 8 of player with stained glass pane:7 named " " to do nothing
                   format gui slot 26 of player with stained glass pane:7 named " " to do nothing               
               wait 2 ticks                   
       else if arg 1 is set:
           if arg 1 is "Speed" or "speed":
               give a shears of silk touch 1 named "{@GUI.nom.speed}" with lore "{@GUI.lore.speed2}" to player
           if arg 1 is "health" or "heal":
               give a shears of silk touch 1 named "{@GUI.nom.health}" with lore "{@GUI.lore.health2}" to player
           if arg 1 is "strength":
               give a shears of silk touch 1 named "{@GUI.nom.strength}" with lore "{@GUI.lore.strength}" to player
           if arg 1 is "jump":
               give a shears of silk touch 1 named "{@GUI.nom.jump}" with lore "{@GUI.lore.jump}" to player
           if arg 1 is "nofall" or "NoFall":
               give a shears of silk touch 1 named "{@GUI.nom.nofall}" with lore "{@GUI.lore.nofall}" to player
           if arg 1 is "haste":
               give a shears of silk touch 1 named "{@GUI.nom.haste}" with lore "{@GUI.lore.haste}" to player
           if arg 1 is "fire":
               give a shears of silk touch 1 named "{@GUI.nom.fire}" with lore "{@GUI.lore.fire}" to player
           if arg 1 is "all":
               add 1 to {nombredesticks}
               give a shears of silk touch 1 named "{@GUI.nom.speed}" with lore "{@GUI.lore.speed}" to player
               add 1 to {nombredesticks}
               give a shears of silk touch 1 named "{@GUI.nom.health}" with lore "{@GUI.lore.health}" to player
               add 1 to {nombredesticks}
               give a shears of silk touch 1 named "{@GUI.nom.strength}" with lore "{@GUI.lore.strength}" to player
               add 1 to {nombredesticks}
               give a shears of silk touch 1 named "{@GUI.nom.jump}" with lore "{@GUI.lore.jump}" to player
               add 1 to {nombredesticks}
               give a shears of silk touch 1 named "{@GUI.nom.nofall}" with lore "{@GUI.lore.nofall}" to player
               add 1 to {nombredesticks}
               give a shears of silk touch 1 named "{@GUI.nom.haste}" with lore "{@GUI.lore.haste}" to player
               add 1 to {nombredesticks}
               give a shears of silk touch 1 named "{@GUI.nom.fire}" with lore "{@GUI.lore.fire}" to player

               stop
       if arg 1 is "reload" or "rl":
           make player execute command "/sk reload %script name%"
           send "&6* &cRELOAD"

on rightclick with shears:
   name of player's tool is "{@GUI.nom.health}"
   if health of player < 10:
       if {now.%line 3 of lore of player's tool%} is set:
           set {_d} to difference between {now.%line 3 of lore of player's tool%} and now
           {_d} is less than 10 seconds:
               send "&cCooldown: %difference between {_d} and 10 seconds%"
           else:
               clear {now.%line 3 of lore of player's tool%}
       else:
           set {now.%line 3 of lore of player's tool%} to now
           cancel event
           add 3 to health of player
           if lore of tool of player contains "Durabilité • 1":
               set tool of player to air
               set action bar of player to ""
           else:
               if line 2 of lore of tool of player contains "Durabilité • ":
                   set {_p} to lore of tool of player
                   replace all "§0" and "§1" and "§2" and "§3" and "§4" and "§5" and "§l" and "§6" and "§7" and "§8" and "§9" and "§a" and "§b" and "§c" and "§d" and "§e" and "§f" and "§k" and "§m" and "§n" and "§o" and "§r" with "" in {_p}
                   replace all "* Instant Health I (3 Hearts)||Durabilité • " with "" in {_p}
                   # replace all "Durabilité • " with "" in {_p}
                   replace all "||%line 3 of lore of player's tool%" with "" in {_p}
                   send "%{_p}%"
                   set {_lvl} to {_p} parsed as integer
                   send "%{_lvl}%"
                   remove 1 from {_lvl}
                   send "%{_lvl}%"
                   set action bar of player to "&7Durabilité • %{_lvl}%"
                   set tool of player to a shears of silk touch 1 named "{@GUI.nom.health}" with lore "{@GUI.lore.health3}"   
   else:
       send "&cVous avez tous vos coeurs"

Vous pouvez modifier directement sur mon code, merci de votre aide précieuse !

 

Cordialement,

Posté(e)
comment ? j'aimerais aussi optimiser mes skripts de GUI car sa prend beaucoup de place mais quelle est le code le plus opti ? stp

je vais te faire un exemple

command /mod:
   permission: mod.gui
   trigger:
       open virtual chest with size 6 named "&b&l>> &bOutils de modération" to player
       format gui slot 9, 10, 11, 12, 13, 18, 27, 36, 45, 22, 31, 40, 46, 47, 48 and 49 of player with gray stained glass pane named " " to do nothing
       format gui slot 0, 1, 2, 3, 4, 5, 6, 7, 8, 26, 35, 44, 54, 17 and 53 of player with cyan stained glass pane named " " to do nothing
       format gui slot 24 of player with player's skull named "&7&l%player's display name%" with lore " " to do nothing
       format gui slot 28 of player with compass named "&cRandom" with lore "Random TP sur un joueur" to close then run player command "stafftp"
       format gui slot 29 of player with clock named "&cSpawn" with lore "Retour au spawn" to close then run player command "spawn"
       format gui slot 30 of player with blaze rod named "&cBaton de Freeze" with lore "Permet de freeze un joueur" to close then run player command "freezeb"

 

Ici par exemple je réalise un menu de modération grâce à l'addon de TuSKe.

 

au lieu de faire je ne sais combien de ligne pour du décor tu peux le faire en une ligne, tout tes items stained glass etc:5 tu peux le faire en une ligne comme sur mon code

Posté(e)
En gros ta demande c'est "Comment mettre une variable sur un l'item que tien le joueur".

 

Perso je sais pas donc je pense pas pouvoir t'aider

Merci quand même de ta réponse

 

 

En gros, mettre une variable sur l'item en lui même.

Posté(e)
Merci quand même de ta réponse

 

 

En gros, mettre une variable sur l'item en lui même.

Tu devrais peut être aussi demander sur SkUnity et d'autre forum de Skript pour une réponse plus vite car ici ça répond aps très vite

Posté(e)

Je sais pas si c'est ce que tu veut, mais via un "add "{tavariable:valeur}" to nbt of player's tool" tu devrais pouvoir mettre ton tag nbt. Enfin bref, regarde du côté de skstuff, je suis sur téléphone, donc j'peux pas trop faire plus précis pour le moment.

Posté(e)
Je sais pas si c'est ce que tu veut, mais via un "add "{tavariable:valeur}" to nbt of player's tool" tu devrais pouvoir mettre ton tag nbt. Enfin bref, regarde du côté de skstuff, je suis sur téléphone, donc j'peux pas trop faire plus précis pour le moment.

Ouais d'accord pour le nbt mais sa va me servir à quoi ? Je vois pas où tu veut en venir

skUnity Spigot et Bukkit

merci :)

Posté(e)

Youyou!

En voyant que le sujet partait légèrement en vrille (des conseils sans explication qui tienne la route, bien que le conseil soit bon), j'ai décidé de te filer un coup de main. Surtout si c'est pour demain. Du coup… j'y ai passé la journée, mais voilà pour toi les…

 

Bâtons de Pouvoir

Alors oui, le nom fait un peu nom-anglais-qui-déboîte-massacré-par-les-québécois-qui-ont-voulu-le-traduire-à-tout-prix. Mais!… le script qui se cache derrière permet d'avoir les même sticks que ce que tu avais dans le script que tu as fourni, mêmes effets, mêmes noms, vraiment tout pareil, à l'exception près que, grâce à un système de NBT, chaque stick a son propre cooldown de 10 minutes (configurable dans la section options, comme tout le reste, d'ailleurs.) Commande /stick [all|fire|haste|health|jump|nofall|speed|strength] pour se give les sticks, ou sans argument pour ouvrir le menu. Menu qui d'ailleurs a été raccourci et optimisé par rapport à celui que tu donnais. La petit permission qui va bien, pour toute la commande : skript.stick.command.stick . Le code est fourni avec les commentaires intégraux, au cas où t'aies envie de l'étudier/ le modifier avec facilité. Ca doit être tout. Je reste dispo en MP si besoin.

 

EDIT: Oui, euh… le code… En pièce jointe :rolleyes: Désolé :x

Bonne ouverture de serveur.

The__V, une Ombre à votre service.

  • J'aime 1
Posté(e)
Youyou!

En voyant que le sujet partait légèrement en vrille (des conseils sans explication qui tienne la route, bien que le conseil soit bon), j'ai décidé de te filer un coup de main. Surtout si c'est pour demain. Du coup… j'y ai passé la journée, mais voilà pour toi les…

 

Bâtons de Pouvoir

Alors oui, le nom fait un peu nom-anglais-qui-déboîte-massacré-par-les-québécois-qui-ont-voulu-le-traduire-à-tout-prix. Mais!… le script qui se cache derrière permet d'avoir les même sticks que ce que tu avais dans le script que tu as fourni, mêmes effets, mêmes noms, vraiment tout pareil, à l'exception près que, grâce à un système de NBT, chaque stick a son propre cooldown de 10 minutes (configurable dans la section options, comme tout le reste, d'ailleurs.) Commande /stick [all|fire|haste|health|jump|nofall|speed|strength] pour se give les sticks, ou sans argument pour ouvrir le menu. Menu qui d'ailleurs a été raccourci et optimisé par rapport à celui que tu donnais. La petit permission qui va bien, pour toute la commande : skript.stick.command.stick . Le code est fourni avec les commentaires intégraux, au cas où t'aies envie de l'étudier/ le modifier avec facilité. Ca doit être tout. Je reste dispo en MP si besoin.

Bonne ouverture de serveur.

The__V, une Ombre à votre service.

Wow je te remerci de ton aide :) Mais le code se trouve où ?

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