How to add delay/cooldown to consumable right-click item
Hello,
I do wonder how to add delay or cooldown to consumable right-click item.
For instance, when I right click fireball, I gotta wait for 3-5 seconds then able to cast again.
-# Although, I'm still learning how to do raycast, I'll do that later, I just wanted to know how to do cooldown/delay
However, I am not sure because I'm using advancement to trigger rewards to run functions.
Basically, I wanted to add scoreboard makes (UNIQUE ID) cooldown.
-# I need to learn how to make unique ID, got any idea how to do that? Please send link of example or such.
But that is the issue, because when triggering reward, it is only one-time thing. I did thought of putting it in tick but I am not actually not sure how to do that properly.
Could you be kindly to give example so I get an idea and be able to do it. Thanks.
Continue to help post