Mophro755 Posted November 2, 2021 Share Posted November 2, 2021 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 More sharing options...
Pryzmm Posted November 3, 2021 Share Posted November 3, 2021 Skript/command with cooldown.sk at master · Njol/Skript (github.com) Owner of Lifestealed, Labs, Encore, UNOfficially and Observed OG [VIP] 12/26/20 - 10/27/2021 OG [PRO] 12/27/21 - 11/18/2022 OG [LEGEND] 11/18/2022 - 3/14/2023 [DEFAULT] 3/14/2023 - 5/8/2024 [MOD] 5/8/2024 - Present Link to comment Share on other sites More sharing options...
ButterflyBullets Posted November 3, 2021 Share Posted November 3, 2021 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now