#how do i fix this:

1 messages · Page 1 of 1 (latest)

gleaming wasp
#

im having this problem with item cooldowns, im trying to make the ender pearl cooldown last longer the higher your cooldown percentage is.
the cooldowns are working, but for some reason, it ignores the already existing cooldown, and you can just spam it. please help?
code:

#

(i reached the max character limit on discord so i had to send the code as an image)

split palm
#

you can have only 1 thing set in a var
maxcooldown has more

#

like cooling down 300.00% 250.00% and more

odd streamBOT
split palm
#

@outer stratus correct me if i am wrong

outer stratus
#

you can use on right-click with ender pearl: too, and a guard clause for if the cooldown is set.

#

and honestly why not just set the variable to a timespan, then set the item cooldown duration to that variable

outer stratus
gleaming wasp
gleaming wasp
#

it is only 1 thing

#

its the percentage and thats it

split palm
outer stratus
#
  cancel event
  stop
#code here```
#

notice the #code here isnt indented

gleaming wasp
#

like this @outer stratus ?

#

YIPPEEE!

#

ty guys

outer stratus
#

you can remove the else:

#

thats the whole point of guard clauses, less indents