Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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.  

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.

  • 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 

 

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.

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

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.