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.