#Item Cooldown
1 messages · Page 1 of 1 (latest)
use nbt tags
This gotta be one of the worst answers ever given on this server
Why?
How do I use nbt tag,
lol
you can make a basic cooldown actionbar if you do the following things
- make a function (best for efficiency)
- make a cooldown var {thiscool.cooldown.%{_p}%} (set to time in seconds), and a var for {cooldownenabled.%{_p}%} (set to 1)
- make a while loop for while {thiscool.cooldown.%{_p}%} is not 0
- in that loop, send action bar "%{thiscool.cooldown.%{_p}%}%", remove 1 from the var, and wait 1 second
- set a condition, if {thiscool.cooldown.%{_p}%} is 0, then set {cooldownenabled.%{_p%} to 0,
- for your item, you would do this
#do stuff, call function```
this is just how i do it
He already solved it using https://skripthub.net/docs/?id=7677
Skript Hub - Documentation
Get/set a cooldown on the specified material for a certain timespan.
Cooldowns are used by the server for items such as ender pearls and shields to prevent them from being used repeatedly.
Note that cooldowns will not by themselves stop an item from being used for attacking.
This is per player and per MATERIAL, not per actual item.