i have a skript for a lightning wand but de cooldown doosn't work can someone fix it for me
thanks
thanks
Code:
on right click with wooden hoe:
if name of player's held item is "&9lightning wand":
difference between now and {cooldown::%player's uuid%} is less than 5 seconds:
message "On cooldown!" to player
else:
set {cooldown::%player's uuid%} to now
make console execute command "/execute at %player% run summon minecraft:lightning_bolt ~1 ~ ~"
make console execute command "/execute at %player% run summon minecraft:lightning_bolt ~-1 ~ ~"
make console execute command "/execute at %player% run summon minecraft:lightning_bolt ~ ~ ~1"
make console execute command "/execute at %player% run summon minecraft:lightning_bolt ~ ~ ~-1"
wait 0.8 second
make console execute command "/execute at %player% run summon minecraft:lightning_bolt ~2 ~ ~"
make console execute command "/execute at %player% run summon minecraft:lightning_bolt ~-2 ~ ~"
make console execute command "/execute at %player% run summon minecraft:lightning_bolt ~ ~ ~2"
make console execute command "/execute at %player% run summon minecraft:lightning_bolt ~ ~ ~-2"
make console execute command "/execute at %player% run summon minecraft:lightning_bolt ~2 ~ ~1"
make console execute command "/execute at %player% run summon minecraft:lightning_bolt ~-2 ~ ~1"
make console execute command "/execute at %player% run summon minecraft:lightning_bolt ~1 ~ ~2"
make console execute command "/execute at %player% run summon minecraft:lightning_bolt ~1 ~ ~-2"
make console execute command "/execute at %player% run summon minecraft:lightning_bolt ~2 ~ ~-1"
make console execute command "/execute at %player% run summon minecraft:lightning_bolt ~-2 ~ ~-1"
make console execute command "/execute at %player% run summon minecraft:lightning_bolt ~-1 ~ ~2"
make console execute command "/execute at %player% run summon minecraft:lightning_bolt ~-1 ~ ~-2"
wait 0.8 second
make console execute command "/execute at %player% run summon minecraft:lightning_bolt ~3 ~ ~"
make console execute command "/execute at %player% run summon minecraft:lightning_bolt ~-3 ~ ~"
make console execute command "/execute at %player% run summon minecraft:lightning_bolt ~ ~ ~3"
make console execute command "/execute at %player% run summon minecraft:lightning_bolt ~ ~ ~-3"
make console execute command "/execute at %player% run summon minecraft:lightning_bolt ~3 ~ ~1"
make console execute command "/execute at %player% run summon minecraft:lightning_bolt ~-3 ~ ~1"
make console execute command "/execute at %player% run summon minecraft:lightning_bolt ~1 ~ ~3"
make console execute command "/execute at %player% run summon minecraft:lightning_bolt ~1 ~ ~-3"
make console execute command "/execute at %player% run summon minecraft:lightning_bolt ~3 ~ ~-1"
make console execute command "/execute at %player% run summon minecraft:lightning_bolt ~-3 ~ ~-1"
make console execute command "/execute at %player% run summon minecraft:lightning_bolt ~-1 ~ ~3"
make console execute command "/execute at %player% run summon minecraft:lightning_bolt ~-1 ~ ~-3"
make console execute command "/execute at %player% run summon minecraft:lightning_bolt ~3 ~ ~2"
make console execute command "/execute at %player% run summon minecraft:lightning_bolt ~3 ~ ~-2"
make console execute command "/execute at %player% run summon minecraft:lightning_bolt ~-3 ~ ~-2"
make console execute command "/execute at %player% run summon minecraft:lightning_bolt ~-3 ~ ~2"
make console execute command "/execute at %player% run summon minecraft:lightning_bolt ~-2 ~ ~-3"
make console execute command "/execute at %player% run summon minecraft:lightning_bolt ~-2 ~ ~3"
make console execute command "/execute at %player% run summon minecraft:lightning_bolt ~2 ~ ~3"
make console execute command "/execute at %player% run summon minecraft:lightning_bolt ~2 ~ ~-3"