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

Ok i want to hit like the "u" key and a small little window with grey background and some text to pop up, ive followed any tutorials but none really helped for 1.8, i was wondering if someone can maybe point me in the right direction?

Ok i want to hit like the "u" key and a small little window with grey background and some text to pop up, ive followed any tutorials but none really helped for 1.8, i was wondering if someone can maybe point me in the right direction?

This is really easy. Do a GuyOverlay that only displays a grey/textured rectangle when the 'u' key is pressed. I did it like this and it works great.

To get a GuyOverlay working, youll have to creat a new class that has the following few things in it:

 

public class YourOverlay extends Gui{

 

        public YOurOverlay(Minecraft mc){

        this.mc = mc; 

        }

 

@SubscribeEvent(priority = EventPriority.NORMAL)

        public void renderOverlay(RenderGameOverlayEvent event){

                    ScaledResolution scaledresolution = new ScaledResolution(this.mc, this.mc.displayWidth, this.mc.displayHeight);

        int k = scaledresolution.getScaledWidth();

        int l = scaledresolution.getScaledHeight();

if (event.type != ElementType.ALL) {

return;

}

if (Keyboard.isKeyDown(Keyboard.KEY_U)){

GL11.glPushMatrix();

                        //Your code here (Youll have to use k as width and l as height!!)

                        GL11.glPopMatrix();

              }

      }

 

}

 

Then youll have to define a new field in your ClientProxy and register the YourOverlay-class like this in your ClientProxy :

        private final Minecraft mc = Minecraft.getMinecraft();

 

MinecraftForge.EVENT_BUS.register(new YourOverlay(mc));

 

  • Author

Ok i want to hit like the "u" key and a small little window with grey background and some text to pop up, ive followed any tutorials but none really helped for 1.8, i was wondering if someone can maybe point me in the right direction?

This is really easy. Do a GuyOverlay that only displays a grey/textured rectangle when the 'u' key is pressed. I did it like this and it works great.

To get a GuyOverlay working, youll have to creat a new class that has the following few things in it:

 

public class YourOverlay extends Gui{

 

        public YOurOverlay(Minecraft mc){

        this.mc = mc; 

        }

 

@SubscribeEvent(priority = EventPriority.NORMAL)

        public void renderOverlay(RenderGameOverlayEvent event){

                    ScaledResolution scaledresolution = new ScaledResolution(this.mc, this.mc.displayWidth, this.mc.displayHeight);

        int k = scaledresolution.getScaledWidth();

        int l = scaledresolution.getScaledHeight();

if (event.type != ElementType.ALL) {

return;

}

if (Keyboard.isKeyDown(Keyboard.KEY_U)){

GL11.glPushMatrix();

                        //Your code here (Youll have to use k as width and l as height!!)

                        GL11.glPopMatrix();

              }

      }

 

}

 

Then youll have to define a new field in your ClientProxy and register the YourOverlay-class like this in your ClientProxy :

        private final Minecraft mc = Minecraft.getMinecraft();

 

MinecraftForge.EVENT_BUS.register(new YourOverlay(mc));

 

How do i setup a client proxie?

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.