Mana Bar Regen

Started by TheMobMaster2006 on

Topic category: Help with modding (Java Edition)

Last seen on 03:40, 29. Jan 2023
Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Mana Bar Regen

I am trying to create a mana bar that regenerates one mana every three seconds, and I used the code shown below:

Image

Currently, it waits three seconds, but then goes from zero to full in less than a second. How do I fix this?

Last seen on 07:21, 7. Feb 2023
Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Couldn't you just use 0.33…
Mon, 01/24/2022 - 07:47

Couldn't you just use 0.33 instead of +1?

Last seen on 21:00, 13. Jun 2022
Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Its constantly waiting 60…
Mon, 06/06/2022 - 18:14

Its constantly waiting 60 ticks

Last seen on 10:22, 10. Jul 2022
Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I took a look at the code…
Tue, 06/07/2022 - 00:49

I took a look at the code and think found an solution. Try using this instead:Or do you wanna make it even smoother? Cuz yeah it's possible and i'm not sure if yet simplier Btw sorry for bad quality i made it up in paint '- '