Jump to content

how do I make a cooldown to a skript


Mophro755

Recommended Posts

hello guys anyone can help me I want to make a cooldown in a skript

this is my skript i want to make 2 seconds cooldown every right click help me please

 

on rightclick with blaze rod:
    if name of tool of player is "&6Fire":
        set {_waited} to difference between {col.%player%.lastused} and now
        if {_waited} is less than a minute:
        message "&cYou have to wait %difference between a minute and {_waited}% before you can use this command again!"
        stop
        set {col.%player%.lastused} to now
        shoot an fire ball at speed 1.0
        wait 1 tick
        play sound "entity.dragon_fireball.explode" to player

Link to comment
Share on other sites

just copy this, its your skript but will only input the command every 2 seconds

on rightclick with blaze rod:
    if name of tool of player is "&6Fire":
        set {_waited} to difference between {col.%player%.lastused} and now
        if {_waited} is less than a minute:
        message "&cYou have to wait %difference between a minute and {_waited}% before you can use this command again!"
        stop
        set {col.%player%.lastused} to now
        shoot an fire ball at speed 1.0
        wait 1 tick
        play sound "entity.dragon_fireball.explode" to player
		wait 40 ticks

 

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

Skript - 8 months

Minecraft - 8 years                         No Bitches?

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

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...