#Cooldown on effects

1 messages · Page 1 of 1 (latest)

ripe nebula
#

So I made a simple custom item skript as an example,

    victim is a player
    if victim's held item is a nether star named "&f&lAngel &e&lStar":
        send "&dYou are holding the Angel Star!" to victim
    apply invisibility 1 to victim for 5 seconds```

So like I want the effect to have a 1 minute cooldown, could anyone show how?
narrow citrus
#

set a variable to now when they use the item, then you can check if time since {} < (YOUR COOLDOWN DDURATION):

manic sundial
#

^^ or you can just set an item cooldown set item cooldown of nether star to 1 second