Jump to content

Im trying to figure out how to add a thirst bar to my mod


Recommended Posts

I am making a large complete overhaul mod in minecraft 1.15 that is survival based.

I want to work on thirst, I want the end state of it to be like the hunger bar but just directly above it. I am looking into gui for that but I really don't know where to start. I believe player capabilities is the way to go but if I am wrong I want to 

pointed in the right direction. I also don't know if I can just put the code into my com.username.modid (I wrote all of that correctly I just don't want people reading the modid or my username for reasons.) I am writing my code in Eclipse and I would love to get some direction in the way of thirst. Basically my goal just like hunger is so you can have items that will restore the thirst and by standing on a water block that restores it as well. Overtime and through running thirst goes down and if it goes down all the way the player takes damage.


As I said before I think it is through capabilities but I really cannot tell.  

Link to comment
Share on other sites

5 hours ago, Cosmic_Israel said:

I believe player capabilities is the way to go

Player capabilities is what you would use to store and interact with the data. For rendering you should use the RenderGameOverlayEvent.


I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

By using this site, you agree to our Terms of Use.