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

 

First of all I want to thank the developers for giving us such a good modding tool, allowing us to add great content, always loved and now is the time to express it! :P

Well so here comes my actual question;

I don't really know how some parts of Minecraft Modding work. Like the GUI's for instance, they're kind of difficult to keep up with and very overwhelming.

Is there anyone who could clearly explain to me how the User interfaces work?

I want to add another inventory, which is just like the regular player inventory displayable by pressing the key E or whatever key you selected in your keybinds.

First I wanted to edit the base inventory by making a Key Handler which would get when the players pressed p for instance, and then displaying another inventory exactly looking like the regular inventory just with some more slots.

I could use some guidance, as in a general idea with perhaps a link to a tutorial. No need for Java tutorials, I have some experience with it as in one year of making simple programs and simple games (far not advanced as Minecraft, though).

 

Thank you!!!

If my question isn't clear just ask me I will edit this.

EDIT: I forgot to tell you guys the version, 1.7.10

  • Author

The issue is, I don't really need that particular code. I need to understand it so I can properly reproduce the code. And my German is really horrible. :/

Two suggestions:

 

1) In the decompiled workspace, find a vanilla example of what you want to mod. Open it in Eclipse. Use Eclipse's "find references" and other tools to walk through the code surrounding your topic of interest. Even better, set a few break points while you're there and then run the program in the debugger so you can then step through processes you want to learn. You can then envision subclassing a vanilla thing and changing its behavior. Along the way, you may also notice calls to Forge event handlers. Make note of them; each is an opportunity to change select behavior in the vanilla classes.

 

2) Find Jabelar's tutorials. See if he has written about what you want to mod. But never trust any tutorial. Minecraft is a moving target, so tutorials become obsolete within months (sometime weeks) of being written. Do my 1st suggestion anyway, even if you read some tuts first.

The debugger is a powerful and necessary tool in any IDE, so learn how to use it. You'll be able to tell us more and get better help here if you investigate your runtime problems in the debugger before posting.

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.