Help With Custom Thirst Bar

Started by LDGamingMC on

Topic category: Help with Minecraft modding (Java Edition)

Active 2 years ago
Joined Feb 2019
Points:
656

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
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.

Active 4 years ago
Joined Jun 2016
Points:
1722

User statistics:

  • Modifications: 6
  • Forum topics: 17
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1753
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.