Mana Bar goes to negative numbers (i dont need help anymore)

Started by murilo123 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Mana Bar goes to negative numbers (i dont need help anymore)
Fri, 10/22/2021 - 22:42 (edited)
I'm working on a mana bar
so I created 2 sticks that one decreases and the other increases the mana
but I can't make it stop decreasing when it gets to 0, or stop increasing when it gets to the maximum, it ends up making the bar disappear

https://prnt.sc/1x135u6 (decreasing)

https://prnt.sc/1x13b2d (increasing)

 

 

Edited by murilo123 on Fri, 10/22/2021 - 22:42