Code:
on left click:
player is holding a blaze rod named "<gray>Necromancer Staff":
{wand.effect.%player%} is 1:
if {cooldown.%player%} is true:
message "&6you have to wait"
stop
cancel event
if {cooldown.%player%} isn't set:
set {cooldown.%player%} to false
if {cooldown.%player%} is false:
set {cooldown.%player%} to true
loop 4 times:
spawn zombie at player
set the weapon of last spawned entity to iron sword
set the name of last spawned entity to "<black>Undead Captain"
set last spawned entity's max health to 30
wait 1 minute
set {cooldown.%player%} to false
stop
I am making a necromancer staff but I have issues with the cooldown