GUI progress bar is only able to run properly once

Started by Ejnar on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
GUI progress bar is only able to run properly once

hi! I've created a functional progress bar as a visual timer of a entity's hunger and it runs well, but only once. If the timer resets and the progress bar needs to update, nothing happens and if I relog, the progress bar work one time again. if anyone could help me with it I would be very thankful. 

Coding:

https://drive.google.com/file/d/1kxho3KPvxLWveJjirPq-AOciXVSX0dIn/view?usp=sharing

there is an additional 4 similar procedures that activate different images in the GUI to create the progress bar.

GUI:

https://drive.google.com/file/d/17gPg86q0IT0Rv0QLkPJhvmdWZotNei0e/view?usp=sharing

I have 6 images that works like an animation sequence to create the progress bar.