Posted March 30, 20205 yr 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.
March 30, 20205 yr 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. VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING 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.
March 31, 20205 yr Author 2 hours ago, Animefan8888 said: Player capabilities is what you would use to store and interact with the data. For rendering you should use the RenderGameOverlayEvent. thanks
April 1, 20205 yr Make sure you only render once per tick. The RenderGameOverlayEvent fires for each HUD element, pick one to use.
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.