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

Hey everyone,

I want to do create a custom gui and when a player pressed a button that GUI will show up. How can I do that ? Is there a document or guide ?
I created key bindings.

7 hours ago, gbln00 said:

Hey everyone,

I want to do create a custom gui and when a player pressed a button that GUI will show up. How can I do that ? Is there a document or guide ?
I created key bindings.

Hi gbln00, welcome to the forums! Some of the best resources for modding are the forge documentation and vanilla classes. From the documentation, I would start at menus and then look at screens below that:

https://docs.minecraftforge.net/en/1.19.x/gui/menus/

Also:

https://docs.minecraftforge.net/en/1.19.x/misc/keymappings/

Since you're using keymappings, it sounds like the custom GUI you want is related to some type of settings menu. In that case, I would start by looking at a vanilla class such as OptionsScreen.class, found (in 1.20.1):

net.minecraft.client.gui.screens

The easiest way to navigate here is to type OptionsScreen somewhere in your mod, import it, and then middle click it.

Hope that helps.

Edited by urbanxx001

  • Author
10 hours ago, urbanxx001 said:

Hi gbln00, welcome to the forums! Some of the best resources for modding are the forge documentation and vanilla classes. From the documentation, I would start at menus and then look at screens below that:

https://docs.minecraftforge.net/en/1.19.x/gui/menus/

Also:

https://docs.minecraftforge.net/en/1.19.x/misc/keymappings/

Since you're using keymappings, it sounds like the custom GUI you want is related to some type of settings menu. In that case, I would start by looking at a vanilla class such as OptionsScreen.class, found (in 1.20.1):

net.minecraft.client.gui.screens

The easiest way to navigate here is to type OptionsScreen somewhere in your mod, import it, and then middle click it.

Hope that helps.

Thank you for your help! I will look at 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.