#Skript Cooldown

1 messages · Page 1 of 1 (latest)

heady delta
fickle matrix
fickle matrix
heady delta
#

thats more than $10 but ill take it

fickle matrix
#

;l

heady delta
#

btw in vars you shouldnt use %player%

#

you should use %player's uuid%

#

because if the player changes their name they lose their progress

fickle matrix
#

ok

heady delta
#

but for cooldowns unless the cooldown is a really long time then you shouldnt use vars

fickle matrix
#

i dont know how to make cooldowns at all

#

i looked on skript hub

#

but they don't work for me

#

the item goes on cooldown, but u can still rightclick it

heady delta
#
  if metadata value "eating" of player > now:
    #cooldown is active
  else:
    #cooldown is not active
    set metadata value "eating" of player to x seconds later
    #cooldown has been set
    # put code here```
fickle matrix
#

thanks

fickle matrix
heady delta
#

bruh

#

i have given you that

#

you just need to add send "You're on cooldown"

fickle matrix
#

oh yeah nvm, I put it in the wrong place before

#

thanks

unkempt dagger
broken hedge
#

your else is nested 1 tab too deep

fickle matrix
fickle matrix
#

@heady delta

on right click with player head:
  if event-item is named "&aPlayer Head"
  if metadata value "eating" of player > now:
    send "&cWait a few seconds..." to event-player
    #cooldown is active
  else:
    #cooldown is not active
    if event-item is named "&aPlayer Head"

this is only a partial part of the code.

I'm trying to only make it so it works if the player head is named "x"