Solved How to add a cooldown to a click skript

  • 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 comminuty!

    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.

JakeIsNugget

New Member
Sep 13, 2020
8
1
3
24
mc version 1.16.2
skript version most recent

This is the skript so far i wanted to add a 3 second cooldown, how could i? also if i could make it so the golden hoe has to be named a certain thing thatd be great :emoji_grinning: (i did the spacing wont show for some reason) edit: only addon i have is skellet

on right click:
player is holding golden hoe
push the player upwards
 
Last edited:
this works for me in 1.16

i also added a command that gives you the wand so that you dont have to name it in an anvil
 

Attachments

  • leap.sk
    502 bytes · Views: 860
on right click:
if name of player's held item is "&6Launcher":
if {cooldown.%player%} is true:
message "&6you have to wait"
stop
cancel event
if {cooldown.%player%} isn't set:
set {cooldown.%player%} to false
if {cooldown.%player%} is false:
set {cooldown.%player%} to true
push the player upwards
message "&byou have been launched"
wait 3 seconds
set {cooldown.%player%} to false

command /lw:
trigger:
give player 1 golden hoe named "&6Launcher"

-------------------------------------------------------------------------

this works for me in 1.16

i also added a command that gives you the wand so that you dont have to name it in an anvil
TYSM
 
this works for me in 1.16

i also added a command that gives you the wand so that you dont have to name it in an anvil

now it says you have to wait but the cooldown never resets
[doublepost=1600024961,1600024486][/doublepost]nvm there was just improper spacing
[doublepost=1600025024][/doublepost]wait nope now nothing happens
[doublepost=1600026119][/doublepost]NVM I GOT IT YAY
[doublepost=1600027094][/doublepost]
this works for me in 1.16

i also added a command that gives you the wand so that you dont have to name it in an anvil
i actually have an improvement to ur skript, on second line do "player is holding a golden hoe named "&6Launcher" that way it HAS to be a golden hoe no other item
 
now it says you have to wait but the cooldown never resets
[doublepost=1600024961,1600024486][/doublepost]nvm there was just improper spacing
[doublepost=1600025024][/doublepost]wait nope now nothing happens
[doublepost=1600026119][/doublepost]NVM I GOT IT YAY
[doublepost=1600027094][/doublepost]
i actually have an improvement to ur skript, on second line do "player is holding a golden hoe named "&6Launcher" that way it HAS to be a golden hoe no other item
-------------------------------------
alright but the chances someone has another item named &6Launcher are very small
but good luck with the skript!
 
Status
Not open for further replies.