Help With Custom Thirst Bar

Started by LDGamingMC on

Topic category: Help with modding (Java Edition)

Last seen on 05:08, 24. May 2022
Joined Feb 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help With Custom Thirst Bar

Hello everyone I am currently working on a Zombie Apocalypse mod and I need help with a custom thirst bar.

I've tried a couple to things to accomplish this but nothing has worked.

If any of you guys have any ideas, comment and that would be greatly appreciated.

Last seen on 14:52, 1. Oct 2020
Joined Jun 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Use several overlays and a…
Wed, 05/15/2019 - 16:44

Use several overlays and a global player-specific variable to accomplish this. Basically, make it so the global variable changes (going down to show the level of thirst), and have a procedure running every tick to change the overlay (which will be several images of different layers of the thirst bar) to one corresponding to the level of the thirst variable.