I really need help for this one, so I've made a custom items that do stuff with a cooldown, but when I run it on minehut it didn't want to do any of the effects and just skip to the 'else' part anyone know why?
any help will be appreciate
Code:
options:
prefix: &8[&a&lKrypBox&8]
variables:
{Cooldown.%player%} = 0
#Fire Wand
on rightclick holding a blaze rod:
if uncolored name of player's tool is "Fire Wand":
if {Cooldown.%player%} = 0:
set {Cooldown.%player%} to 1
play sound "entity.blaze.shoot" with volume 1 to the player
make the player shoot a fireball at speed 4
wait 1.5 seconds
set {Cooldown.%player%} to 0
else if {Cooldown.%player%} = 1:
message "{@prefix} &cYou Can Only Shoot Fireball Every 1.5 Seconds!" to player
#Launcher
on rightclick holding a fishing rod:
if uncolored name of player's tool is "Launcher":
if {Cooldown.%player%} = 0:
set {Cooldown.%player%} to 1
play sound "entity.slime.jump" with volume 1 to the player
push the player upwards at speed 1
push the player forwards at speed 1.5
wait 3 seconds
set {Cooldown.%player%} to 0
else if {Cooldown.%player%} = 1:
message "{@prefix} &cYou Can Only Launch Every 3 Seconds!" to player
any help will be appreciate