Aller au contenu
  • 0

J'arrive pas avec les cooldowns


Question

Posté(e)

Bonjour,

J'ai fais un système de kit , mais je voudrais un cooldown pour reprendre.

 

Je vous donne que les kits:

command /kittobsipower:
   trigger:
       give 640 obsidian to player
       give 640 cobblestone to player
command /kittmineur:
   trigger:
       give diamond pickaxe of efficiency 5 and fortune 3 to player
       give 64 steak to player
       give 64 torch to player
       give 10 diamond to player
       give 32 iron ingot to player
       give 32 gold ingot to player
       give 64 351:4 to player
       give 64 cooked beef to player
       give 32 redstone to player
       give 4 emerald to player
command /kittdeco:
   trigger:
       give 64 quartz block to player
       give 64 glowstone to player
       give 64 stone brick to player
       give 128 cobblestone to player
command /kittecuyer:
   trigger:
       give 32 obsidian to player
       give iron helmet of protection 1 to player
       give iron chestplate of protection 1 to player
       give iron leggings of protection 1 to player
       give iron boots of protection 1 to player
       give 32 cooked beef to player
       give iron sword of sharpness 1 to player
command /kitthead:
   trigger:
       give 10 golden apple to player
       give 1 322:1 to player
       give 5 golden apple named "&6Golden Head" to player
command /kittchevalier:
   trigger:
       give 32 golden carrot to player
       give 32 obsidian to player
       give 5 golden apple to player
       give diamond helmet of protection 2 to player
       give diamond chestplate of protection 2 to player
       give diamond leggings of protection 2 to player
       give diamond boots of protection 2 to player
       give 30 cooked beef to player
       give diamond sword of sharpness 3 to player
command /kittalchismiste:
   trigger:
       give 16 splash potion of healing 2 to player
       give 2 potion of speed to player
       give 2 potion of fire resistance to player
command /kittroi:
   trigger:
       give 64 obsidian to player
       give diamond helmet of protection 3 to player
       give diamond chestplate of protection 3 to player
       give diamond leggings of protection 3 to player
       give diamond boots of protection 3 to player
       give diamond sword of sharpness 3 and fire aspect to player
       give 5 golden apple named "&6Golden Head" to player
       give 32 golden carrot to player
command /kittempereur:
   trigger:
       give diamond helmet of protection 4 to player
       give diamond chestplate of protection 4 to player
       give diamond leggings of protection 4 to player
       give diamond boots of protection 4 to player
       give diamond sword of sharpness 5 and fire aspect to player
       give 128 obsidian to player
       give 1 322:1 to player
       give 64 golden carrot to player
command /kittfaction:
   trigger:
       give 5 383:50 to player
       give 32 tnt to player
       give flint and steel to player
       give 256 obsidian to player

5 réponses à cette question

Messages recommandés

  • 0
Posté(e)

Normalement quand tu créer le dossier skript il y a un fichier -command with cooldown.sk

Tu remplace juste ce qu'il te faut:

command /cake:
   trigger:
       set {_waited} to difference between {cake.%player%.lastused} and now
       if {_waited} is less than a minute:
           message "You have to wait %difference between a minute and {_waited}% before you can use this command again!"
           stop
       player doesn't have space for a cake:
           message "You do not have enough space in your inventory to hold the cake!"
           stop
       give a cake to the player
       set {cake.%player%.lastused} to now

  • 0
Posté(e)

Tien voila tu fait la même chose pour tes autres kit:

command /kittdeco:
   trigger:
       set {_tempkittdeco} to difference between {kittdeco.%player%.lastused} and now
       if {_tempkittdeco} is less than a minute:
           message "Vous devez attendre %difference between a minute and {_tempkittdeco}% pour refaire ce kit"
           stop
       give 64 quartz block to player
       give 64 glowstone to player
       give 64 stone brick to player
       give 128 cobblestone to player
       set {kittdeco.%player%.lastused} to now

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