so the plan is to have an item
on right click of item
push player upwards
wait 15 seconds before they can use again
having trouble of finding a way round it overlapping meaning when item is clicked it cannot be clicked again until wait time is over.
so I tried making on right click executing a command which I can put a cooldown on when I cam up with this
command /pogo:
trigger:
if {command::%player's uuid%::last-usage} was less than a minute ago:
message "&7[&e&lHumble&7] &cYou're on cooldown! &7Please wait one minute before using this again"
stop
if {command::%player's uuid%::last-usage} was more than minute ago:
push player upwards
message "eee"
taking reference from https://skriptlang.github.io/Skript/conditions.html#CondDate
so
on right click holding a stick:
make player execute command "/pogo"
command /pogo:
trigger:
if {command::%player's uuid%::last-usage} was less than a minute ago:
message "&7[&e&lHumble&7] &cYou're on cooldown! &7Please wait one minute before using this again"
stop
if {command::%player's uuid%::last-usage} was more than minute ago:
push player upwards
message "eee"
this could be completely wrong, looking for input and possible a way around it?
thanks
PASTE BIN:
https://pastebin.com/CuGCxi6t
I also came up with this version which could be closer to solving it? https://pastebin.com/NkSgfJ7F if so then perhaps modifying this would be more efficent?
on right click of item
push player upwards
wait 15 seconds before they can use again
having trouble of finding a way round it overlapping meaning when item is clicked it cannot be clicked again until wait time is over.
so I tried making on right click executing a command which I can put a cooldown on when I cam up with this
command /pogo:
trigger:
if {command::%player's uuid%::last-usage} was less than a minute ago:
message "&7[&e&lHumble&7] &cYou're on cooldown! &7Please wait one minute before using this again"
stop
if {command::%player's uuid%::last-usage} was more than minute ago:
push player upwards
message "eee"
taking reference from https://skriptlang.github.io/Skript/conditions.html#CondDate
so
on right click holding a stick:
make player execute command "/pogo"
command /pogo:
trigger:
if {command::%player's uuid%::last-usage} was less than a minute ago:
message "&7[&e&lHumble&7] &cYou're on cooldown! &7Please wait one minute before using this again"
stop
if {command::%player's uuid%::last-usage} was more than minute ago:
push player upwards
message "eee"
this could be completely wrong, looking for input and possible a way around it?
thanks
PASTE BIN:
https://pastebin.com/CuGCxi6t
I also came up with this version which could be closer to solving it? https://pastebin.com/NkSgfJ7F if so then perhaps modifying this would be more efficent?