LeCraftDeOuf Posté(e) le 13 septembre 2017 Posté(e) le 13 septembre 2017 Skript : 2.2 dev 25 MineCraft : 1.8 Bonjour, j'ai essayer de faire un code de "Sticks", mais je n'est pas réussit pourquoi ? Je voulez un stick qui à une plusieurs utilisation (Configurable), Avec un cooldown (Configurable). Je me suis donc rendu compte que @Maxlego08 en avais fais un :) Mais il n'y à pas tous se que je voulez pouvez vous m'aider à rajouter un cooldown entre chaque utilisation, et un système pour que il à plusieur utilisation merci :) Cordialement LeCraftDeOuf,[/color] #Mon tous premier skirpt :3 options: Permission: admin.stick 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.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 Stick&7] GUI.lore.health: &6* &7Health III||&6* &7Slownness V -> 5 Secondes GUI.lore.speed: &6* &7Speed VI -> 4 Secondes||&6* &7Nausea VI -> 15 Secondes GUI.lore.strength: &6* &7Strength III -> 3 Secondes||&6* &7Blindness I -> 10 Secondes GUI.lore.jump: &6* &7Jump V -> 5 Secondes||&6* &7Hunger V -> 8 Secondes GUI.lore.nofall: &6* &7NoFall -> 10 secondes||&6* &7Damage -3 coeur GUI.lore.haste: &6* &7Haste II -> 100 secondes||&6* &7Blindness I -> 20 Secondes GUI.lore.fire: &6* &7Fire Resistance I -> 60 secondes||&6* &7wither III -> 5 Secondes 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 slot 9 of player with Stick of silk touch 1 named "{@GUI.nom.speed}" with lore "{@GUI.lore.speed}" to close then run [make player execute command "/stick speed"] format slot 10 of player with Stick of silk touch 1 named "{@GUI.nom.health}" with lore "{@GUI.lore.health}" to close then run [make player execute command "/stick health"] format slot 11 of player with Stick of silk touch 1 named "{@GUI.nom.strength}" with lore "{@GUI.lore.strength}" to close then run [make player execute command "/stick strength"] format slot 12 of player with Stick of silk touch 1 named "{@GUI.nom.jump}" with lore "{@GUI.lore.jump}" to close then run [make player execute command "/stick jump"] format slot 13 of player with Stick of silk touch 1 named "{@GUI.nom.nofall}" with lore "{@GUI.lore.nofall}" to close then run [make player execute command "/stick nofall"] format slot 14 of player with Stick of silk touch 1 named "{@GUI.nom.haste}" with lore "{@GUI.lore.haste}" to close then run [make player execute command "/stick haste"] format slot 15 of player with Stick of silk touch 1 named "{@GUI.nom.fire}" with lore "{@GUI.lore.fire}" to close then run [make player execute command "/stick fire"] format slot 17 of player with blaze rod named "{@GUI.nom.all}" to close then run [make player execute command "/stick all"] while inventory name of current inventory of player is "{@GUI.nom}": if inventory name of current inventory of player is "{@GUI.nom}": format slot 0 of player with stained glass pane:7 named " " to be unstealable format slot 18 of player with stained glass pane:7 named " " to be unstealable format slot 1 of player with stained glass pane:5 named " " to be unstealable format slot 19 of player with stained glass pane:5 named " " to be unstealable format slot 2 of player with stained glass pane:5 named " " to be unstealable format slot 20 of player with stained glass pane:5 named " " to be unstealable format slot 3 of player with stained glass pane:5 named " " to be unstealable format slot 21 of player with stained glass pane:5 named " " to be unstealable format slot 4 of player with stained glass pane:5 named " " to be unstealable format slot 22 of player with stained glass pane:5 named " " to be unstealable format slot 5 of player with stained glass pane:5 named " " to be unstealable format slot 23 of player with stained glass pane:5 named " " to be unstealable format slot 6 of player with stained glass pane:5 named " " to be unstealable format slot 24 of player with stained glass pane:5 named " " to be unstealable format slot 7 of player with stained glass pane:5 named " " to be unstealable format slot 25 of player with stained glass pane:5 named " " to be unstealable format slot 8 of player with stained glass pane:5 named " " to be unstealable format slot 26 of player with stained glass pane:5 named " " to be unstealable wait 2 ticks if inventory name of current inventory of player is "{@GUI.nom}": format slot 0 of player with stained glass pane:5 named " " to be unstealable format slot 18 of player with stained glass pane:5 named " " to be unstealable format slot 1 of player with stained glass pane:7 named " " to be unstealable format slot 19 of player with stained glass pane:7 named " " to be unstealable format slot 2 of player with stained glass pane:5 named " " to be unstealable format slot 20 of player with stained glass pane:5 named " " to be unstealable format slot 3 of player with stained glass pane:5 named " " to be unstealable format slot 21 of player with stained glass pane:5 named " " to be unstealable format slot 4 of player with stained glass pane:5 named " " to be unstealable format slot 22 of player with stained glass pane:5 named " " to be unstealable format slot 5 of player with stained glass pane:5 named " " to be unstealable format slot 23 of player with stained glass pane:5 named " " to be unstealable format slot 6 of player with stained glass pane:5 named " " to be unstealable format slot 24 of player with stained glass pane:5 named " " to be unstealable format slot 7 of player with stained glass pane:5 named " " to be unstealable format slot 25 of player with stained glass pane:5 named " " to be unstealable format slot 8 of player with stained glass pane:5 named " " to be unstealable format slot 26 of player with stained glass pane:5 named " " to be unstealable wait 2 ticks if inventory name of current inventory of player is "{@GUI.nom}": format slot 0 of player with stained glass pane:5 named " " to be unstealable format slot 18 of player with stained glass pane:5 named " " to be unstealable format slot 1 of player with stained glass pane:5 named " " to be unstealable format slot 19 of player with stained glass pane:5 named " " to be unstealable format slot 2 of player with stained glass pane:7 named " " to be unstealable format slot 20 of player with stained glass pane:7 named " " to be unstealable format slot 3 of player with stained glass pane:5 named " " to be unstealable format slot 21 of player with stained glass pane:5 named " " to be unstealable format slot 4 of player with stained glass pane:5 named " " to be unstealable format slot 22 of player with stained glass pane:5 named " " to be unstealable format slot 5 of player with stained glass pane:5 named " " to be unstealable format slot 23 of player with stained glass pane:5 named " " to be unstealable format slot 6 of player with stained glass pane:5 named " " to be unstealable format slot 24 of player with stained glass pane:5 named " " to be unstealable format slot 7 of player with stained glass pane:5 named " " to be unstealable format slot 25 of player with stained glass pane:5 named " " to be unstealable format slot 8 of player with stained glass pane:5 named " " to be unstealable format slot 26 of player with stained glass pane:5 named " " to be unstealable wait 2 ticks if inventory name of current inventory of player is "{@GUI.nom}": format slot 0 of player with stained glass pane:5 named " " to be unstealable format slot 18 of player with stained glass pane:5 named " " to be unstealable format slot 1 of player with stained glass pane:5 named " " to be unstealable format slot 19 of player with stained glass pane:5 named " " to be unstealable format slot 2 of player with stained glass pane:5 named " " to be unstealable format slot 20 of player with stained glass pane:5 named " " to be unstealable format slot 3 of player with stained glass pane:7 named " " to be unstealable format slot 21 of player with stained glass pane:7 named " " to be unstealable format slot 4 of player with stained glass pane:5 named " " to be unstealable format slot 22 of player with stained glass pane:5 named " " to be unstealable format slot 5 of player with stained glass pane:5 named " " to be unstealable format slot 23 of player with stained glass pane:5 named " " to be unstealable format slot 6 of player with stained glass pane:5 named " " to be unstealable format slot 24 of player with stained glass pane:5 named " " to be unstealable format slot 7 of player with stained glass pane:5 named " " to be unstealable format slot 25 of player with stained glass pane:5 named " " to be unstealable format slot 8 of player with stained glass pane:5 named " " to be unstealable format slot 26 of player with stained glass pane:5 named " " to be unstealable wait 2 ticks if inventory name of current inventory of player is "{@GUI.nom}": format slot 0 of player with stained glass pane:5 named " " to be unstealable format slot 18 of player with stained glass pane:5 named " " to be unstealable format slot 1 of player with stained glass pane:5 named " " to be unstealable format slot 19 of player with stained glass pane:5 named " " to be unstealable format slot 2 of player with stained glass pane:5 named " " to be unstealable format slot 20 of player with stained glass pane:5 named " " to be unstealable format slot 3 of player with stained glass pane:5 named " " to be unstealable format slot 21 of player with stained glass pane:5 named " " to be unstealable format slot 4 of player with stained glass pane:7 named " " to be unstealable format slot 22 of player with stained glass pane:7 named " " to be unstealable format slot 5 of player with stained glass pane:5 named " " to be unstealable format slot 23 of player with stained glass pane:5 named " " to be unstealable format slot 6 of player with stained glass pane:5 named " " to be unstealable format slot 24 of player with stained glass pane:5 named " " to be unstealable format slot 7 of player with stained glass pane:5 named " " to be unstealable format slot 25 of player with stained glass pane:5 named " " to be unstealable format slot 8 of player with stained glass pane:5 named " " to be unstealable format slot 26 of player with stained glass pane:5 named " " to be unstealable wait 2 ticks if inventory name of current inventory of player is "{@GUI.nom}": format slot 0 of player with stained glass pane:5 named " " to be unstealable format slot 18 of player with stained glass pane:5 named " " to be unstealable format slot 1 of player with stained glass pane:5 named " " to be unstealable format slot 19 of player with stained glass pane:5 named " " to be unstealable format slot 2 of player with stained glass pane:5 named " " to be unstealable format slot 20 of player with stained glass pane:5 named " " to be unstealable format slot 3 of player with stained glass pane:5 named " " to be unstealable format slot 21 of player with stained glass pane:5 named " " to be unstealable format slot 4 of player with stained glass pane:5 named " " to be unstealable format slot 22 of player with stained glass pane:5 named " " to be unstealable format slot 5 of player with stained glass pane:7 named " " to be unstealable format slot 23 of player with stained glass pane:7 named " " to be unstealable format slot 6 of player with stained glass pane:5 named " " to be unstealable format slot 24 of player with stained glass pane:5 named " " to be unstealable format slot 7 of player with stained glass pane:5 named " " to be unstealable format slot 25 of player with stained glass pane:5 named " " to be unstealable format slot 8 of player with stained glass pane:5 named " " to be unstealable format slot 26 of player with stained glass pane:5 named " " to be unstealable wait 2 ticks if inventory name of current inventory of player is "{@GUI.nom}": format slot 0 of player with stained glass pane:5 named " " to be unstealable format slot 18 of player with stained glass pane:5 named " " to be unstealable format slot 1 of player with stained glass pane:5 named " " to be unstealable format slot 19 of player with stained glass pane:5 named " " to be unstealable format slot 2 of player with stained glass pane:5 named " " to be unstealable format slot 20 of player with stained glass pane:5 named " " to be unstealable format slot 3 of player with stained glass pane:5 named " " to be unstealable format slot 21 of player with stained glass pane:5 named " " to be unstealable format slot 4 of player with stained glass pane:5 named " " to be unstealable format slot 22 of player with stained glass pane:5 named " " to be unstealable format slot 5 of player with stained glass pane:5 named " " to be unstealable format slot 23 of player with stained glass pane:5 named " " to be unstealable format slot 6 of player with stained glass pane:7 named " " to be unstealable format slot 24 of player with stained glass pane:7 named " " to be unstealable format slot 7 of player with stained glass pane:5 named " " to be unstealable format slot 25 of player with stained glass pane:5 named " " to be unstealable format slot 8 of player with stained glass pane:5 named " " to be unstealable format slot 26 of player with stained glass pane:5 named " " to be unstealable wait 2 ticks if inventory name of current inventory of player is "{@GUI.nom}": format slot 0 of player with stained glass pane:5 named " " to be unstealable format slot 18 of player with stained glass pane:5 named " " to be unstealable format slot 1 of player with stained glass pane:5 named " " to be unstealable format slot 19 of player with stained glass pane:5 named " " to be unstealable format slot 2 of player with stained glass pane:5 named " " to be unstealable format slot 20 of player with stained glass pane:5 named " " to be unstealable format slot 3 of player with stained glass pane:5 named " " to be unstealable format slot 21 of player with stained glass pane:5 named " " to be unstealable format slot 4 of player with stained glass pane:5 named " " to be unstealable format slot 22 of player with stained glass pane:5 named " " to be unstealable format slot 5 of player with stained glass pane:5 named " " to be unstealable format slot 23 of player with stained glass pane:5 named " " to be unstealable format slot 6 of player with stained glass pane:5 named " " to be unstealable format slot 24 of player with stained glass pane:5 named " " to be unstealable format slot 7 of player with stained glass pane:7 named " " to be unstealable format slot 25 of player with stained glass pane:7 named " " to be unstealable format slot 8 of player with stained glass pane:5 named " " to be unstealable format slot 26 of player with stained glass pane:5 named " " to be unstealable wait 2 ticks if inventory name of current inventory of player is "{@GUI.nom}": format slot 0 of player with stained glass pane:5 named " " to be unstealable format slot 18 of player with stained glass pane:5 named " " to be unstealable format slot 1 of player with stained glass pane:5 named " " to be unstealable format slot 19 of player with stained glass pane:5 named " " to be unstealable format slot 2 of player with stained glass pane:5 named " " to be unstealable format slot 20 of player with stained glass pane:5 named " " to be unstealable format slot 3 of player with stained glass pane:5 named " " to be unstealable format slot 21 of player with stained glass pane:5 named " " to be unstealable format slot 4 of player with stained glass pane:5 named " " to be unstealable format slot 22 of player with stained glass pane:5 named " " to be unstealable format slot 5 of player with stained glass pane:5 named " " to be unstealable format slot 23 of player with stained glass pane:5 named " " to be unstealable format slot 6 of player with stained glass pane:5 named " " to be unstealable format slot 24 of player with stained glass pane:5 named " " to be unstealable format slot 7 of player with stained glass pane:5 named " " to be unstealable format slot 25 of player with stained glass pane:5 named " " to be unstealable format slot 8 of player with stained glass pane:7 named " " to be unstealable format slot 26 of player with stained glass pane:7 named " " to be unstealable wait 2 ticks else if arg 1 is set: if arg 1 is "Speed" or "speed": give a stick of silk touch 1 named "{@GUI.nom.speed}" with lore "{@GUI.lore.speed}" to player if arg 1 is "health" or "heal": give a stick of silk touch 1 named "{@GUI.nom.health}" with lore "{@GUI.lore.health}" to player if arg 1 is "strength": give a stick of silk touch 1 named "{@GUI.nom.strength}" with lore "{@GUI.lore.strength}" to player if arg 1 is "jump": give a stick of silk touch 1 named "{@GUI.nom.jump}" with lore "{@GUI.lore.jump}" to player if arg 1 is "nofall" or "NoFall": give a stick of silk touch 1 named "{@GUI.nom.nofall}" with lore "{@GUI.lore.nofall}" to player if arg 1 is "haste": give a stick of silk touch 1 named "{@GUI.nom.haste}" with lore "{@GUI.lore.haste}" to player if arg 1 is "fire": give a stick of silk touch 1 named "{@GUI.nom.fire}" with lore "{@GUI.lore.fire}" to player if arg 1 is "all": give a stick of silk touch 1 named "{@GUI.nom.speed}" with lore "{@GUI.lore.speed}" to player give a stick of silk touch 1 named "{@GUI.nom.health}" with lore "{@GUI.lore.health}" to player give a stick of silk touch 1 named "{@GUI.nom.strength}" with lore "{@GUI.lore.strength}" to player give a stick of silk touch 1 named "{@GUI.nom.jump}" with lore "{@GUI.lore.jump}" to player give a stick of silk touch 1 named "{@GUI.nom.nofall}" with lore "{@GUI.lore.nofall}" to player give a stick of silk touch 1 named "{@GUI.nom.haste}" with lore "{@GUI.lore.haste}" to player give a stick 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" #Effect des Stick# #SpeedStick# on rightclick: if name of player's tool is "{@GUI.nom.speed}": cancel event remove player's tool from player's inventory apply speed 2 to the player for 4 seconds apply nausea 4 to the player for 15 seconds #HealthStick# on rightclick: if name of player's tool is "{@GUI.nom.health}": cancel event remove player's tool from player's inventory apply instant health 1 to the player for 1 seconds apply slowness 5 to the player for 8 seconds #StrengthStick# on rightclick: if name of player's tool is "{@GUI.nom.strength}": cancel event remove player's tool from player's inventory apply strength 3 to the player for 3 seconds apply blindness 1 to the player for 10 seconds #JumpStick# on rightclick: if name of player's tool is "{@GUI.nom.jump}": cancel event remove player's tool from player's inventory apply jump boost 5 to the player for 5 seconds apply hunger 5 to the player for 8 seconds #NoFallStick# on rightclick: if name of player's tool is "{@GUI.nom.nofall}": cancel event remove player's tool from player's inventory apply instant damage 1 to the player for 1 seconds wait 2 ticks apply resistance 250 to the player for 5 seconds #HasteStick# on rightclick: if name of player's tool is "{@GUI.nom.haste}": remove player's tool from player's inventory apply haste 2 to the player for 100 seconds apply blindness 2 to the player for 20 seconds #FireStick# on rightclick: if name of player's tool is "{@GUI.nom.fire}": cancel event remove player's tool from player's inventory apply fire resistance 1 to the player for 60 seconds apply wither 3 to the player for 5 seconds
AltaWineMomoth Posté(e) le 13 septembre 2017 Posté(e) le 13 septembre 2017 Tu ma tué les yeux x) Y'a un nom précis pour le stick ?
LeCraftDeOuf Posté(e) le 13 septembre 2017 Auteur Posté(e) le 13 septembre 2017 Met l’effet que le stick donnera je modifierai merci :)
AltaWineMomoth Posté(e) le 13 septembre 2017 Posté(e) le 13 septembre 2017 J'ai fait un truc a l'arrache on rightclick with stick: if {utilisation.%player%} isn't set: set {utilisation.%player%} to 3 #Tu peut modifier else: if {cooldownn.%player%} is set: send "&cMerci de ne pas spam le bâton !" else: set {cooldownn.%player%} to true code code code code if {cooldownn.%player%} is equal to 0: remove 1 stick from player inventory delete {cooldownn.%player%} delete {utilisation.%player%} remove 1 from {utilisation.%player%} wait 5 seconds delete {cooldownn.%player%} ps: J'ai vu que dans ton code y'a 40000 rightclick, évite ça peut faire lag
LeCraftDeOuf Posté(e) le 13 septembre 2017 Auteur Posté(e) le 13 septembre 2017 Je go tester je revien vers vous après (Merci pour la correction de couleur)
Random Posté(e) le 13 septembre 2017 Posté(e) le 13 septembre 2017 Pour éviter les "wait" qui ne vont pas clear les variables si le serveur se stoppe pendant cette durée, utilise ce format: command /cooldown: trigger: {now.%player%} isn't set: set {now.%player%} to now send "&aReset du cooldown" else: difference between {now.%player%} and now is less than 1 minute: #A changer par le temps que tu veux send "&cCooldown: %difference between %{now.%player%}% and now%"
AltaWineMomoth Posté(e) le 13 septembre 2017 Posté(e) le 13 septembre 2017 Oui bon en 5 secondes quand même
Random Posté(e) le 13 septembre 2017 Posté(e) le 13 septembre 2017 Oui bon en 5 secondes quand même On sait jamais, suffit que la variable (permanente) soit pas clear pour que le skript ne soit plus fonctionnel dans son cas :$ 1
LeCraftDeOuf Posté(e) le 13 septembre 2017 Auteur Posté(e) le 13 septembre 2017 Pour éviter les "wait" qui ne vont pas clear les variables si le serveur se stoppe pendant cette durée, utilise ce format: command /cooldown: trigger: {now.%player%} isn't set: set {now.%player%} to now send "&aReset du cooldown" else: difference between {now.%player%} and now is less than 1 minute: #A changer par le temps que tu veux send "&cCooldown: %difference between %{now.%player%}% and now%" Merci, mais la variable se clear quand ? [EDIT] J'ai fais ceci: on rightclick with shears: name of player's tool is "{@GUI.nom.speed}" if {now.%player%} is set: if difference between {now.%player%} and now is less than 10 seconds: #A changer par le temps que tu veux send "&cCooldown: %difference between now and {now.%player%}%" else: delete {now.%player%} else: set {now.%player%} to now cancel event remove player's tool from player's inventory apply speed 2 to the player for 4 seconds apply nausea 4 to the player for 15 seconds mais le soucis c'est que au lieu de faire 9 8 7 6 4 ... sa fais 1 2 3 4 5 6 ...
Random Posté(e) le 13 septembre 2017 Posté(e) le 13 septembre 2017 Merci, mais la variable se clear quand ? Dans l'exemple elle n'est pas clear, libre à toi de la clear pour ton code 1
LeCraftDeOuf Posté(e) le 13 septembre 2017 Auteur Posté(e) le 13 septembre 2017 Dans l'exemple elle n'est pas clear, libre à toi de la clear pour ton code J'ai édit :)
Random Posté(e) le 13 septembre 2017 Posté(e) le 13 septembre 2017 J'ai édit :) Ah oui, essaye ça : command /cooldown: trigger: {now.%player%} isn't set: set {now.%player%} to now send "&aReset du cooldown" else: set {_d} to difference between {now.%player%} and now {_d} is less than 1 minute: send "&cCooldown: %difference between %{_d}% and 1 minute%" Si c'est toujours pas bon (excuse mon cerveau fatigué), dis moi le problème ^^ 1
LeCraftDeOuf Posté(e) le 13 septembre 2017 Auteur Posté(e) le 13 septembre 2017 Tous est parfais, (Juste corriger un petite erreur : tu avez mis des %% dans le %difference between %{_d}% and 1 minute% ) Merci. Tu à une solution pour faire une sorte de durabilité sur le stick ? mon code: #Mon tous premier skirpt :3 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.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* &7Health III||&6* &7Slownness V -> 5 Secondes GUI.lore.speed: &6* &7Speed VI -> 4 Secondes||&6* &7Nausea VI -> 15 Secondes GUI.lore.strength: &6* &7Strength III -> 3 Secondes||&6* &7Blindness I -> 10 Secondes GUI.lore.jump: &6* &7Jump V -> 5 Secondes||&6* &7Hunger V -> 8 Secondes GUI.lore.nofall: &6* &7NoFall -> 10 secondes||&6* &7Damage -3 coeur GUI.lore.haste: &6* &7Haste II -> 100 secondes||&6* &7Blindness I -> 20 Secondes GUI.lore.fire: &6* &7Fire Resistance I -> 60 secondes||&6* &7wither III -> 5 Secondes 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 slot 9 of player with shears of silk touch 1 named "{@GUI.nom.speed}" with lore "{@GUI.lore.speed}" to close then run [make player execute command "/stick speed"] format slot 10 of player with shears of silk touch 1 named "{@GUI.nom.health}" with lore "{@GUI.lore.health}" to close then run [make player execute command "/stick health"] format slot 11 of player with shears of silk touch 1 named "{@GUI.nom.strength}" with lore "{@GUI.lore.strength}" to close then run [make player execute command "/stick strength"] format slot 12 of player with shears of silk touch 1 named "{@GUI.nom.jump}" with lore "{@GUI.lore.jump}" to close then run [make player execute command "/stick jump"] format slot 13 of player with shears of silk touch 1 named "{@GUI.nom.nofall}" with lore "{@GUI.lore.nofall}" to close then run [make player execute command "/stick nofall"] format slot 14 of player with shears of silk touch 1 named "{@GUI.nom.haste}" with lore "{@GUI.lore.haste}" to close then run [make player execute command "/stick haste"] format slot 15 of player with shears of silk touch 1 named "{@GUI.nom.fire}" with lore "{@GUI.lore.fire}" to close then run [make player execute command "/stick fire"] format slot 17 of player with blaze rod named "{@GUI.nom.all}" to close then run [make player execute command "/stick all"] while inventory name of current inventory of player is "{@GUI.nom}": if inventory name of current inventory of player is "{@GUI.nom}": format slot 0 of player with stained glass pane:7 named " " to be unstealable format slot 18 of player with stained glass pane:7 named " " to be unstealable format slot 1 of player with stained glass pane:5 named " " to be unstealable format slot 19 of player with stained glass pane:5 named " " to be unstealable format slot 2 of player with stained glass pane:5 named " " to be unstealable format slot 20 of player with stained glass pane:5 named " " to be unstealable format slot 3 of player with stained glass pane:5 named " " to be unstealable format slot 21 of player with stained glass pane:5 named " " to be unstealable format slot 4 of player with stained glass pane:5 named " " to be unstealable format slot 22 of player with stained glass pane:5 named " " to be unstealable format slot 5 of player with stained glass pane:5 named " " to be unstealable format slot 23 of player with stained glass pane:5 named " " to be unstealable format slot 6 of player with stained glass pane:5 named " " to be unstealable format slot 24 of player with stained glass pane:5 named " " to be unstealable format slot 7 of player with stained glass pane:5 named " " to be unstealable format slot 25 of player with stained glass pane:5 named " " to be unstealable format slot 8 of player with stained glass pane:5 named " " to be unstealable format slot 26 of player with stained glass pane:5 named " " to be unstealable wait 2 ticks if inventory name of current inventory of player is "{@GUI.nom}": format slot 0 of player with stained glass pane:5 named " " to be unstealable format slot 18 of player with stained glass pane:5 named " " to be unstealable format slot 1 of player with stained glass pane:7 named " " to be unstealable format slot 19 of player with stained glass pane:7 named " " to be unstealable format slot 2 of player with stained glass pane:5 named " " to be unstealable format slot 20 of player with stained glass pane:5 named " " to be unstealable format slot 3 of player with stained glass pane:5 named " " to be unstealable format slot 21 of player with stained glass pane:5 named " " to be unstealable format slot 4 of player with stained glass pane:5 named " " to be unstealable format slot 22 of player with stained glass pane:5 named " " to be unstealable format slot 5 of player with stained glass pane:5 named " " to be unstealable format slot 23 of player with stained glass pane:5 named " " to be unstealable format slot 6 of player with stained glass pane:5 named " " to be unstealable format slot 24 of player with stained glass pane:5 named " " to be unstealable format slot 7 of player with stained glass pane:5 named " " to be unstealable format slot 25 of player with stained glass pane:5 named " " to be unstealable format slot 8 of player with stained glass pane:5 named " " to be unstealable format slot 26 of player with stained glass pane:5 named " " to be unstealable wait 2 ticks if inventory name of current inventory of player is "{@GUI.nom}": format slot 0 of player with stained glass pane:5 named " " to be unstealable format slot 18 of player with stained glass pane:5 named " " to be unstealable format slot 1 of player with stained glass pane:5 named " " to be unstealable format slot 19 of player with stained glass pane:5 named " " to be unstealable format slot 2 of player with stained glass pane:7 named " " to be unstealable format slot 20 of player with stained glass pane:7 named " " to be unstealable format slot 3 of player with stained glass pane:5 named " " to be unstealable format slot 21 of player with stained glass pane:5 named " " to be unstealable format slot 4 of player with stained glass pane:5 named " " to be unstealable format slot 22 of player with stained glass pane:5 named " " to be unstealable format slot 5 of player with stained glass pane:5 named " " to be unstealable format slot 23 of player with stained glass pane:5 named " " to be unstealable format slot 6 of player with stained glass pane:5 named " " to be unstealable format slot 24 of player with stained glass pane:5 named " " to be unstealable format slot 7 of player with stained glass pane:5 named " " to be unstealable format slot 25 of player with stained glass pane:5 named " " to be unstealable format slot 8 of player with stained glass pane:5 named " " to be unstealable format slot 26 of player with stained glass pane:5 named " " to be unstealable wait 2 ticks if inventory name of current inventory of player is "{@GUI.nom}": format slot 0 of player with stained glass pane:5 named " " to be unstealable format slot 18 of player with stained glass pane:5 named " " to be unstealable format slot 1 of player with stained glass pane:5 named " " to be unstealable format slot 19 of player with stained glass pane:5 named " " to be unstealable format slot 2 of player with stained glass pane:5 named " " to be unstealable format slot 20 of player with stained glass pane:5 named " " to be unstealable format slot 3 of player with stained glass pane:7 named " " to be unstealable format slot 21 of player with stained glass pane:7 named " " to be unstealable format slot 4 of player with stained glass pane:5 named " " to be unstealable format slot 22 of player with stained glass pane:5 named " " to be unstealable format slot 5 of player with stained glass pane:5 named " " to be unstealable format slot 23 of player with stained glass pane:5 named " " to be unstealable format slot 6 of player with stained glass pane:5 named " " to be unstealable format slot 24 of player with stained glass pane:5 named " " to be unstealable format slot 7 of player with stained glass pane:5 named " " to be unstealable format slot 25 of player with stained glass pane:5 named " " to be unstealable format slot 8 of player with stained glass pane:5 named " " to be unstealable format slot 26 of player with stained glass pane:5 named " " to be unstealable wait 2 ticks if inventory name of current inventory of player is "{@GUI.nom}": format slot 0 of player with stained glass pane:5 named " " to be unstealable format slot 18 of player with stained glass pane:5 named " " to be unstealable format slot 1 of player with stained glass pane:5 named " " to be unstealable format slot 19 of player with stained glass pane:5 named " " to be unstealable format slot 2 of player with stained glass pane:5 named " " to be unstealable format slot 20 of player with stained glass pane:5 named " " to be unstealable format slot 3 of player with stained glass pane:5 named " " to be unstealable format slot 21 of player with stained glass pane:5 named " " to be unstealable format slot 4 of player with stained glass pane:7 named " " to be unstealable format slot 22 of player with stained glass pane:7 named " " to be unstealable format slot 5 of player with stained glass pane:5 named " " to be unstealable format slot 23 of player with stained glass pane:5 named " " to be unstealable format slot 6 of player with stained glass pane:5 named " " to be unstealable format slot 24 of player with stained glass pane:5 named " " to be unstealable format slot 7 of player with stained glass pane:5 named " " to be unstealable format slot 25 of player with stained glass pane:5 named " " to be unstealable format slot 8 of player with stained glass pane:5 named " " to be unstealable format slot 26 of player with stained glass pane:5 named " " to be unstealable wait 2 ticks if inventory name of current inventory of player is "{@GUI.nom}": format slot 0 of player with stained glass pane:5 named " " to be unstealable format slot 18 of player with stained glass pane:5 named " " to be unstealable format slot 1 of player with stained glass pane:5 named " " to be unstealable format slot 19 of player with stained glass pane:5 named " " to be unstealable format slot 2 of player with stained glass pane:5 named " " to be unstealable format slot 20 of player with stained glass pane:5 named " " to be unstealable format slot 3 of player with stained glass pane:5 named " " to be unstealable format slot 21 of player with stained glass pane:5 named " " to be unstealable format slot 4 of player with stained glass pane:5 named " " to be unstealable format slot 22 of player with stained glass pane:5 named " " to be unstealable format slot 5 of player with stained glass pane:7 named " " to be unstealable format slot 23 of player with stained glass pane:7 named " " to be unstealable format slot 6 of player with stained glass pane:5 named " " to be unstealable format slot 24 of player with stained glass pane:5 named " " to be unstealable format slot 7 of player with stained glass pane:5 named " " to be unstealable format slot 25 of player with stained glass pane:5 named " " to be unstealable format slot 8 of player with stained glass pane:5 named " " to be unstealable format slot 26 of player with stained glass pane:5 named " " to be unstealable wait 2 ticks if inventory name of current inventory of player is "{@GUI.nom}": format slot 0 of player with stained glass pane:5 named " " to be unstealable format slot 18 of player with stained glass pane:5 named " " to be unstealable format slot 1 of player with stained glass pane:5 named " " to be unstealable format slot 19 of player with stained glass pane:5 named " " to be unstealable format slot 2 of player with stained glass pane:5 named " " to be unstealable format slot 20 of player with stained glass pane:5 named " " to be unstealable format slot 3 of player with stained glass pane:5 named " " to be unstealable format slot 21 of player with stained glass pane:5 named " " to be unstealable format slot 4 of player with stained glass pane:5 named " " to be unstealable format slot 22 of player with stained glass pane:5 named " " to be unstealable format slot 5 of player with stained glass pane:5 named " " to be unstealable format slot 23 of player with stained glass pane:5 named " " to be unstealable format slot 6 of player with stained glass pane:7 named " " to be unstealable format slot 24 of player with stained glass pane:7 named " " to be unstealable format slot 7 of player with stained glass pane:5 named " " to be unstealable format slot 25 of player with stained glass pane:5 named " " to be unstealable format slot 8 of player with stained glass pane:5 named " " to be unstealable format slot 26 of player with stained glass pane:5 named " " to be unstealable wait 2 ticks if inventory name of current inventory of player is "{@GUI.nom}": format slot 0 of player with stained glass pane:5 named " " to be unstealable format slot 18 of player with stained glass pane:5 named " " to be unstealable format slot 1 of player with stained glass pane:5 named " " to be unstealable format slot 19 of player with stained glass pane:5 named " " to be unstealable format slot 2 of player with stained glass pane:5 named " " to be unstealable format slot 20 of player with stained glass pane:5 named " " to be unstealable format slot 3 of player with stained glass pane:5 named " " to be unstealable format slot 21 of player with stained glass pane:5 named " " to be unstealable format slot 4 of player with stained glass pane:5 named " " to be unstealable format slot 22 of player with stained glass pane:5 named " " to be unstealable format slot 5 of player with stained glass pane:5 named " " to be unstealable format slot 23 of player with stained glass pane:5 named " " to be unstealable format slot 6 of player with stained glass pane:5 named " " to be unstealable format slot 24 of player with stained glass pane:5 named " " to be unstealable format slot 7 of player with stained glass pane:7 named " " to be unstealable format slot 25 of player with stained glass pane:7 named " " to be unstealable format slot 8 of player with stained glass pane:5 named " " to be unstealable format slot 26 of player with stained glass pane:5 named " " to be unstealable wait 2 ticks if inventory name of current inventory of player is "{@GUI.nom}": format slot 0 of player with stained glass pane:5 named " " to be unstealable format slot 18 of player with stained glass pane:5 named " " to be unstealable format slot 1 of player with stained glass pane:5 named " " to be unstealable format slot 19 of player with stained glass pane:5 named " " to be unstealable format slot 2 of player with stained glass pane:5 named " " to be unstealable format slot 20 of player with stained glass pane:5 named " " to be unstealable format slot 3 of player with stained glass pane:5 named " " to be unstealable format slot 21 of player with stained glass pane:5 named " " to be unstealable format slot 4 of player with stained glass pane:5 named " " to be unstealable format slot 22 of player with stained glass pane:5 named " " to be unstealable format slot 5 of player with stained glass pane:5 named " " to be unstealable format slot 23 of player with stained glass pane:5 named " " to be unstealable format slot 6 of player with stained glass pane:5 named " " to be unstealable format slot 24 of player with stained glass pane:5 named " " to be unstealable format slot 7 of player with stained glass pane:5 named " " to be unstealable format slot 25 of player with stained glass pane:5 named " " to be unstealable format slot 8 of player with stained glass pane:7 named " " to be unstealable format slot 26 of player with stained glass pane:7 named " " to be unstealable 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.speed}" to player if arg 1 is "health" or "heal": give a shears of silk touch 1 named "{@GUI.nom.health}" with lore "{@GUI.lore.health}" 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": give a shears of silk touch 1 named "{@GUI.nom.speed}" with lore "{@GUI.lore.speed}" to player give a shears of silk touch 1 named "{@GUI.nom.health}" with lore "{@GUI.lore.health}" to player give a shears of silk touch 1 named "{@GUI.nom.strength}" with lore "{@GUI.lore.strength}" to player give a shears of silk touch 1 named "{@GUI.nom.jump}" with lore "{@GUI.lore.jump}" to player give a shears of silk touch 1 named "{@GUI.nom.nofall}" with lore "{@GUI.lore.nofall}" to player give a shears of silk touch 1 named "{@GUI.nom.haste}" with lore "{@GUI.lore.haste}" to player 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" #Effect des shears# #SpeedStick# on rightclick with shears: name of player's tool is "{@GUI.nom.speed}" if {now.%player%} is set: set {_d} to difference between {now.%player%} and now {_d} is less than 1 minute: send "&cCooldown: %difference between {_d} and 1 minute%" else: delete {now.%player%} else: set {now.%player%} to now cancel event remove player's tool from player's inventory apply speed 2 to the player for 4 seconds apply nausea 4 to the player for 15 seconds #HealthStick# on rightclick: if name of player's tool is "{@GUI.nom.health}": cancel event remove player's tool from player's inventory apply instant health 1 to the player for 1 seconds apply slowness 5 to the player for 8 seconds #StrengthStick# on rightclick: if name of player's tool is "{@GUI.nom.strength}": cancel event remove player's tool from player's inventory apply strength 3 to the player for 3 seconds apply blindness 1 to the player for 10 seconds #JumpStick# on rightclick: if name of player's tool is "{@GUI.nom.jump}": cancel event remove player's tool from player's inventory apply jump boost 5 to the player for 5 seconds apply hunger 5 to the player for 8 seconds #NoFallStick# on rightclick: if name of player's tool is "{@GUI.nom.nofall}": cancel event remove player's tool from player's inventory apply instant damage 1 to the player for 1 seconds wait 2 ticks apply resistance 250 to the player for 5 seconds #HasteStick# on rightclick: if name of player's tool is "{@GUI.nom.haste}": remove player's tool from player's inventory apply haste 2 to the player for 100 seconds apply blindness 2 to the player for 20 seconds #FireStick# on rightclick: if name of player's tool is "{@GUI.nom.fire}": cancel event remove player's tool from player's inventory apply fire resistance 1 to the player for 60 seconds apply wither 3 to the player for 5 seconds
Random Posté(e) le 13 septembre 2017 Posté(e) le 13 septembre 2017 Ce que je fais pour modifier la dura d'un item (sans dura de base) sans devoir lui assigner une variable, c'est que je change son lore avec le nbr d'utilisations restantes, et je le compare à 1 pour voir si je lui retire ou pas
LeCraftDeOuf Posté(e) le 13 septembre 2017 Auteur Posté(e) le 13 septembre 2017 Merci de ton aide, J'arriverai à faire ceci merci beaucoup je close :) 1
Shelk Posté(e) le 13 septembre 2017 Posté(e) le 13 septembre 2017 @GauvainWizard @Blackmine57 @Rush2Fer A lock xD 1
Messages recommandés