cooldown and stopping skript when item is taken out of hand

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.
Jul 18, 2022
1
0
1
  • Trying to add a cooldown of 1500 ticks, or 1 minute and 15 seconds, but placing it anywhere it still has not worked at all. please help im very new


    on right click:
    player is holding a enchanted book named "Medical Syringe" with lore "Heal 2 hearts after 2 seconds":
    if player's health is 10:
    send "&cYou're already full health!"
    else:
    send " is administering a Medical Syringe"
    apply slowness to player for 60 ticks
    wait 60 ticks
    remove 1 of player's held item from player's inventory
    heal player by 3 hearts
    cooldown: 1500 ticks
    cooldown message: You must wait %remaining_time% more seconds!


    #/give @p enchanted_book{display:{Name:'[{"text":"Medical Syringe","italic":false}]',Lore:['[{"text":"Heal 2 hearts after 2 seconds","italic":false}]']},Enchantments:[]} 1#



    Need help with also clearing the action, if the book is taken out of hand
 
Hey there, there is 2 cooldown posts that's been posted for help recently, please check them.

Also I don't understand
Need help with also clearing the action, if the book is taken out of hand
 
Status
Not open for further replies.