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.

Pulsior

Members
  • Joined

  • Last visited

Everything posted by Pulsior

  1. I searched for some tutorials on the subject, and they all tell me to do something like this: TextureManager e = Minecraft.getMinecraft().renderEngine; e.bindTexture(new ResourceLocation(TheOnePower.MODID, "textures/gui/spirit.png") ); Tessellator t = Tessellator.instance; t.startDrawingQuads(); t.addVertexWithUV(0, 0, 0, 0, 0);//bottom left texture t.addVertexWithUV(0, 64, 0, 0, 0);//top left t.addVertexWithUV(64, 64, 0, 1, 1);//top right t.addVertexWithUV(64, 0, 0, 64, 0);//bottom right t.draw(); But there's nothing happening. What's wrong in here?
  2. I can see that RenderGameOverlayEvent is posted when the GUI is updated. But how can I actually render my precious little icons? (by listening to RenderGameOverlayEvent, or in another way) Would you please, please give me a code example?
  3. I know how to listen in on the event, but I want the buttons to appear on screen when a key is pressed, and remove them with the another key. How should I make the buttons appear by listening in on an event which basically just allows me to get the x and y position of the rendered element?
  4. I am, but how should a use such a RenderGameOverlayEvent?
  5. So I recently started with modding, and I wondered how to show these buttons on screen, like this: I guess it has something to do with net.minecraft.client.gui, but I couldn't really find out how. Thanks in advance!

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.