#Cooldown not working

1 messages · Page 1 of 1 (latest)

odd forge
#

Send it as a message

fallen roost
#
```pretty sure you need to use the actual item, like `diamond` or `iron trapdoor`
deft lily
#

but the utility doesnt stop in the cooldown

#

on load:
set {customitems::bloodlightsword} to unbreakable netherite sword named "Bloodlight Sword"
set {customitems::regenbooster} to unbreakable stick named "Regen Booster"

command /customitems:
permission: op
trigger:
loop {customitems::*}:
give player {customitems::bloodlightsword}
give player {customitems::regenbooster}

on damage:
if attacker's tool is {customitems::bloodlightsword}:
if victim is player:
apply strength 3 to attacker for 3 seconds

on right click:
if player is holding {customitems::regenbooster} in main hand:
apply regeneration 3 to player for 10 seconds
set item cooldown of {customitems::regenbooster} to 45 seconds

#

the cooldown works

#

i still get regen when pressing right click

#

even when

deft lily
#

i changed it a bit

#

still not working

#

on load:
set {customitems::bloodlightsword} to unbreakable netherite sword named "Bloodlight Sword"
set {customitems::regenbooster} to unbreakable stick named "Regen Booster"

command /customitems:
permission: op
trigger:
loop {customitems::*}:
give player {customitems::bloodlightsword}
give player {customitems::regenbooster}

on damage:
if attacker's tool is {customitems::bloodlightsword}:
if victim is player:
apply strength 3 to attacker for 3 seconds

on right click:
if player is holding {customitems::regenbooster} in main hand:
if {cooldown::%player's uuid%} is "false":
apply regeneration 3 to player for 10 seconds
set item cooldown of {customitems::regenbooster} to 45 seconds

odd forge
fallen roost
# deft lily the cooldown is there

.... i mean replace the var with the actual item```on load:
set {master_sword} to 1 of diamond sword

WRONG:

set item cooldown of {master_sword} to 100 seconds

RIGHT:

set item cooldown of (diamond sword) to 100 seconds```

deft lily
#

i fixed this earlier

#

im going to close thread

#

oh i cant