#A simple rechargeable energy/mana meter which runs a function upon right-clicking a specific item

1 messages · Page 1 of 1 (latest)

polar peak
#

So I had this idea of making a magic spell combat system which relies on a mana meter that replenishes every so often.

Now, the spells can be crafted (which I know how to do), and has right-click functionality.

However you can only use the spell if you have enough mana.

I hope someone replies.

jaunty barnBOT
#

-# (helpers summoned) <@&1166082198152159386> <@&1202694677766348840>

supple yarrow
#

if you track mana with score then you can use "execute if score ... return fail" at the start of the function to prevent players that have low score from running the rest of the commands.. you can even use it to run separate function or just 1 command to give player some feedback that they cant cast spells

#

command "/return" stops the function from running and if you put condition in front of it you can use it to separate when the function will run or not

polar peak
#

Holy. This is pretty groundbreaking for me. I would have never thought of using scoreboards, (yet I use them all the time). I hope this might benefit my little project.

supple yarrow
#

how do you track mana if you dont use scoreboards?

polar peak
polar peak