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

Hello!

I am a pretty new modder so I am not too familiar with how this works at all so I am learning as I go. 

 

Right now I am trying to create an item that opens a custom GUI/menu when I right click it. Right now I have the item and the sprite, I know how to do the use command to detect if I am right clicking in game. All I need to do is create the GUI/Menu, I have been looking for help for a couple of days now and I just am not understanding what I should be doing. Any help would be appreciated.

Edited by ThatGuyWasMe
Typo

8 hours ago, ThatGuyWasMe said:

Hello!

I am a pretty new modder so I am not too familiar with how this works at all so I am learning as I go. 

 

Right now I am trying to create an item that opens a custom GUI/menu when I right click it. Right now I have the item and the sprite, I know how to do the use command to detect if I am right clicking in game. All I need to do is create the GUI/Menu, I have been looking for help for a couple of days now and I just am not understanding what I should be doing. Any help would be appreciated.

You need to extend the Screen class (see PauseScreen for example). Override the rendering method to add your extra things. You can also call the addRenderableWidget method to add controls (buttons, for example). Then see how e.g books do it to open the screen. You can also use the Minecraft#setScreen method if you want to display the screen using something else. 

  • Author

Other type of interaction, the player inventory shouldn't show up. If you have ever played D&D, the end goal is basically a character sheet, so the player can input their stats and such. 

  • Author
18 hours ago, matthew123 said:

You need to extend the Screen class (see PauseScreen for example). Override the rendering method to add your extra things. You can also call the addRenderableWidget method to add controls (buttons, for example). Then see how e.g books do it to open the screen. You can also use the Minecraft#setScreen method if you want to display the screen using something else. 

When you are referring to looking at things for examples (PauseScreen and books), how would I go about doing that? I am using Eclipse for the modding.

6 hours ago, ThatGuyWasMe said:

When you are referring to looking at things for examples (PauseScreen and books), how would I go about doing that? I am using Eclipse for the modding.

Navigate to the definition of the screen class. Also, Eclipse is not a good IDE, use IDEA Community Edition. With IDEA, you can CTRL+Click on a class and see the definition.

43 minutes ago, matthew123 said:

Also, Eclipse is not a good IDE

why?

43 minutes ago, matthew123 said:

With IDEA, you can CTRL+Click on a class and see the definition.

This also work in eclipse 

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.