Mana Bar Regen

Started by TheMobMaster2006 on

Topic category: Help with Minecraft modding (Java Edition)

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?

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?

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

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 '- '