I want a fireball wand skript but with mana numbers
e.g:
on right click:
if player's tool is tnt of sharpness 5 named "&c&lGame Breaker" with lore "|| &cA wand with the power to Break the game!":
if {cooldown.%player's uuid%} is false:
set {loc.%player%} to block above block above player's location
loop 3 times: # change how many fireballs are shot here!
spawn fireball at {loc.%player%}
push last spawned entity in direction of player with force 0.5
set {cooldown.%player's uuid%} to true
wait 5 seconds # change the cooldown here
set {cooldown.%player's uuid%} to false
else:
send "&cWait for the cooldown!"
I want it to have a mana varieable and every second it generates mana for the player and when you use the wand it removes mana from the mana number when he doesn't have enough mana it shows this "&cPlease wait for the mana to regnerate"
Please help @_BokBok_