rafti Posted April 28, 2023 Share Posted April 28, 2023 on right click on entity holding amethyst shard: send "&4Lift power used! " to player push entity up at speed 2.5 push entity in direction of player at speed 1 wait 1 second push entity down at speed 2.5 how do i add a cooldown to this? Link to comment Share on other sites More sharing options...
ApexSplat Posted April 29, 2023 Share Posted April 29, 2023 Use this https://skripthub.net/docs/?id=3025, metadata or variables Discord: Dead#6905 Love anime! Link to comment Share on other sites More sharing options...
xcfgdfg Posted April 29, 2023 Share Posted April 29, 2023 (edited) on load: set {cooldown.%player%} to false on right click on entity holding amethyst shard: if {cooldown.%player%} is true: send "You are on cooldown!" to player stop if {cooldown.%player%} is false: send "&4Lift power used!" to player push entity up at speed 2.5 push entity in direction of player at speed 1 wait 1 second push entity down at speed 2.5 # COOLDOWN # set {cooldown.%player%} to true wait 2 seconds set {cooldown.%player%} to false This could be one way. With this your cooldown is 2 seconds, and every player gets their cooldown reset every time the skript is reloaded or the server is restarted too. (you might wanna make it on join if you are worried about them leaving before the cooldown is out) Edited April 29, 2023 by xcfgdfg 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