_Clout0son Posted August 5, 2021 Share Posted August 5, 2021 Ive Been trying to add a Cooldown to this skript but its not working can someone help? ```on right click holding iron sword: name of player's tool is "&fAries Sword": push player forwards at speed 2.0 cooldown: 5 seconds cooldown message: &fWait 5 seconds before Use again!``` Link to comment Share on other sites More sharing options...
Ikey Posted August 5, 2021 Share Posted August 5, 2021 Cooldowns will only work on commands. Read this for more info https://github.com/Njol/Skript/blob/master/src/main/resources/scripts/command with cooldown.sk Owner of ikeysurviv.minehut.gg ⊱------------------------------⊰ [LEGEND] on Minehut ⊱------------------------------⊰ In-game name - ikeyIX Discord name - ikeyIX#2007 Link to comment Share on other sites More sharing options...
_Clout0son Posted August 6, 2021 Author Share Posted August 6, 2021 3 hours ago, SkriperManIkey said: Cooldowns will only work on commands. Read this for more info https://github.com/Njol/Skript/blob/master/src/main/resources/scripts/command with cooldown.sk Ohhhhhhhhhh ok thank you for telling me I was getting confused. but do you know how i can make it to where they can only use the item every 5 seconds like a enderpearl? Link to comment Share on other sites More sharing options...
Checkmate128 Posted August 6, 2021 Share Posted August 6, 2021 1 hour ago, _Clout0son said: Ohhhhhhhhhh ok thank you for telling me I was getting confused. but do you know how i can make it to where they can only use the item every 5 seconds like a enderpearl? on right click holding iron sword: name of player's tool is "&fAries Sword": if difference between now and {%player's uuid%.aresSword.lastUsed} is less than 5 seconds: message "&fWait 5 seconds before use again!" to player else: push player forwards at speed 2.0 set {%player's uuid%.aresSword.lastUsed} to now I haven't tested it, but I think this should work. Also I recommend you use code blocks when asking questions in the future because this formatting looks better. Let me know if it doesn't work. Owner of oldgaffle.minehut.gg. (my paintball server) Owner of karted.minehut.gg. (my mario kart server) Advocate of individual freedom, especially freedom of speech. Cooler than Stalemate128. Link to comment Share on other sites More sharing options...
Punish Posted August 6, 2021 Share Posted August 6, 2021 2 hours ago, Checkmate128 said: on right click holding iron sword: name of player's tool is "&fAries Sword": if difference between now and {%player's uuid%.aresSword.lastUsed} is less than 5 seconds: message "&fWait 5 seconds before use again!" to player else: push player forwards at speed 2.0 set {%player's uuid%.aresSword.lastUsed} to now I haven't tested it, but I think this should work. Also I recommend you use code blocks when asking questions in the future because this formatting looks better. Let me know if it doesn't work. this is the cooldown method Every time you tell a lie, You'll have to tell a 100 more. Link to comment Share on other sites More sharing options...
Lapzzo Posted August 6, 2021 Share Posted August 6, 2021 Please post this in the right category please The category you posted this in is for new skripts that or made for the community Link to comment Share on other sites More sharing options...
_Clout0son Posted August 6, 2021 Author Share Posted August 6, 2021 19 hours ago, Checkmate128 said: on right click holding iron sword: name of player's tool is "&fAries Sword": if difference between now and {%player's uuid%.aresSword.lastUsed} is less than 5 seconds: message "&fWait 5 seconds before use again!" to player else: push player forwards at speed 2.0 set {%player's uuid%.aresSword.lastUsed} to now I haven't tested it, but I think this should work. Also I recommend you use code blocks when asking questions in the future because this formatting looks better. Let me know if it doesn't work. No it doesnt work sry Link to comment Share on other sites More sharing options...
Checkmate128 Posted August 7, 2021 Share Posted August 7, 2021 (edited) 5 hours ago, _Clout0son said: No it doesnt work sry on right click holding iron sword: name of player's tool is "&fAries Sword" if difference between now and {%player's uuid%.aresSword.lastUsed} is less than 5 seconds: message "&fWait 5 seconds before use again!" to player else: push player forwards at speed 2.0 set {%player's uuid%.aresSword.lastUsed} to now This should work. Sorry I made a stupid error. Edited August 7, 2021 by Checkmate128 Owner of oldgaffle.minehut.gg. (my paintball server) Owner of karted.minehut.gg. (my mario kart server) Advocate of individual freedom, especially freedom of speech. Cooler than Stalemate128. Link to comment Share on other sites More sharing options...
Lapzzo Posted August 7, 2021 Share Posted August 7, 2021 4 hours ago, Checkmate128 said: This should work. Sorry I made a stupid error. Can I use this? I really need the cooldown thing Link to comment Share on other sites More sharing options...
Punish Posted August 7, 2021 Share Posted August 7, 2021 3 hours ago, Lapzzo said: Can I use this? I really need the cooldown thing i think u can use anything the community offers... Every time you tell a lie, You'll have to tell a 100 more. Link to comment Share on other sites More sharing options...
Checkmate128 Posted August 7, 2021 Share Posted August 7, 2021 5 hours ago, Lapzzo said: Can I use this? I really need the cooldown thing Sure. Owner of oldgaffle.minehut.gg. (my paintball server) Owner of karted.minehut.gg. (my mario kart server) Advocate of individual freedom, especially freedom of speech. Cooler than Stalemate128. Link to comment Share on other sites More sharing options...
Punish Posted August 7, 2021 Share Posted August 7, 2021 2 hours ago, Checkmate128 said: Sure. Every time you tell a lie, You'll have to tell a 100 more. Link to comment Share on other sites More sharing options...
_Clout0son Posted August 8, 2021 Author Share Posted August 8, 2021 19 hours ago, Checkmate128 said: on right click holding iron sword: name of player's tool is "&fAries Sword" if difference between now and {%player's uuid%.aresSword.lastUsed} is less than 5 seconds: message "&fWait 5 seconds before use again!" to player else: push player forwards at speed 2.0 set {%player's uuid%.aresSword.lastUsed} to now This should work. Sorry I made a stupid error. Thanks it works! sorry for asking much but is there a way i can make it to where certain people like only ops can bypass the cooldown? Link to comment Share on other sites More sharing options...
Checkmate128 Posted August 8, 2021 Share Posted August 8, 2021 3 hours ago, _Clout0son said: Thanks it works! sorry for asking much but is there a way i can make it to where certain people like only ops can bypass the cooldown? on right click holding iron sword: name of player's tool is "&fAries Sword" if difference between now and {%player's uuid%.aresSword.lastUsed} is less than 5 seconds: message "&fWait 5 seconds before use again!" to player else: push player forwards at speed 2.0 player is not op set {%player's uuid%.aresSword.lastUsed} to now I think this should work. Owner of oldgaffle.minehut.gg. (my paintball server) Owner of karted.minehut.gg. (my mario kart server) Advocate of individual freedom, especially freedom of speech. Cooler than Stalemate128. Link to comment Share on other sites More sharing options...
NobodyYT Posted January 5 Share Posted January 5 else: is the problem Link to comment Share on other sites More sharing options...
DuckyProgrammer Posted January 5 Share Posted January 5 Please make sure that you aren't responding to posts that haven't been responded to in over a month. Thanks! No rank - 2017-2021 Minehut Tester - 2021-2023 Minehut Volunteer Moderator - 2023-Current Report a player/server: Report Player / Server Create a support ticket: Submit a request Did I help you? If so, feel free to give me a like! Link to comment Share on other sites More sharing options...
Recommended Posts