#Item Cooldown

1 messages · Page 1 of 1 (latest)

plucky shell
#

How do I make a cooldown for my item

lament imp
#

use nbt tags

storm thicket
lament imp
#

Why?

plucky shell
#

How do I use nbt tag,

toxic light
#

lol

halcyon sapphire
#

you can make a basic cooldown actionbar if you do the following things

  1. make a function (best for efficiency)
  2. make a cooldown var {thiscool.cooldown.%{_p}%} (set to time in seconds), and a var for {cooldownenabled.%{_p}%} (set to 1)
  3. make a while loop for while {thiscool.cooldown.%{_p}%} is not 0
  4. in that loop, send action bar "%{thiscool.cooldown.%{_p}%}%", remove 1 from the var, and wait 1 second
  5. set a condition, if {thiscool.cooldown.%{_p}%} is 0, then set {cooldownenabled.%{_p%} to 0,
  6. for your item, you would do this
    #do stuff, call function```
this is just how i do it
storm thicket
# halcyon sapphire you can make a basic cooldown actionbar if you do the following things 1. make a...

He already solved it using https://skripthub.net/docs/?id=7677