Hello, so I want to make it so every 1 second it gives 3 mana to player's mana.
And it works perfectly right now but I want to make some changes that makes it better.
So instead of saying "if {...} is less than 100: do stuff" I want to make so it checks how much mana is the players max and then if the player's current mana is below the player's max then do stuff.
Code:
every 23 ticks:
loop all players:
if {mana.%loop-player's uuid%} is less than 100:
add 3 to {mana.%loop-player's uuid%}
And it works perfectly right now but I want to make some changes that makes it better.
So instead of saying "if {...} is less than 100: do stuff" I want to make so it checks how much mana is the players max and then if the player's current mana is below the player's max then do stuff.
Code:
every 23 ticks:
loop all players:
if {mana.%loop-player's uuid%} is less than 100:
add 3 to {mana.%loop-player's uuid%}