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

How do you add a picture to the player item bar on the bottom of the screen (without editing the vanilla code if it can)?

I never post on the forums, but when I do, I have no clue how to do a certain thing.

  • Author

How do you use it?

 

@ForgeSubscribe
public void RenderGameOverlayEvent(RenderGameOverlayEvent event) {
}

I never post on the forums, but when I do, I have no clue how to do a certain thing.

  • Author

Good start, but you need to use the Pre event and then only act on one EventType do not draw multiple times.

I have no idea how to do that, can you give me an example

I never post on the forums, but when I do, I have no clue how to do a certain thing.

  • Author

The

RenderGameOverlayEvent

fires a lot. First off, there is multiple

EventType

s (look at the class to see which exactly), like the Healthbar, the foodbar, etc. For each of these there is the Pre and Post event, which should be self-explanatory. You need to draw your stuff when one of these happens, the most sensible thing to do would be to react on EventType ALL and Post.

I still don't get how to use it...

I never post on the forums, but when I do, I have no clue how to do a certain thing.

  • Author

I just dont get anything, isnt there a step by step tutorial or something?

I never post on the forums, but when I do, I have no clue how to do a certain thing.

  • Author

I never rendered a sprite before...

I never post on the forums, but when I do, I have no clue how to do a certain thing.

  • Author

Could you just show me some code?

I never post on the forums, but when I do, I have no clue how to do a certain thing.

  • Author

No.

Then I just have to say that you can not help me, because I have no idea what you mean with:

Bind the texture and then use drawTexturedModalRect from the Gui class.

You know how to render an image, do you? Then do that when the appropriate event fires.

I never post on the forums, but when I do, I have no clue how to do a certain thing.

How do you add a picture to the player item bar on the bottom of the screen (without editing the vanilla code if it can)?

resource pack :P

Only code when your having fun doing it.

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.