xTimPugz Posted July 10, 2016 Posted July 10, 2016 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! 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 Quote
Egietje Posted July 10, 2016 Posted July 10, 2016 The best tutorial I can find is from HyCraftHD (german but you can copy the code ) but you can also take a look at DiscultGA (not as advanced is Hy but still OK) just look them up at youtube Quote http://i.imgur.com/J4rrGt6.png[/img]
xTimPugz Posted July 10, 2016 Author Posted July 10, 2016 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. Quote
Egietje Posted July 10, 2016 Posted July 10, 2016 My German is horrible 2, but you can take a look at Discult 'cause he explains it pretty good, and you can (as an extra) take a look at the vanilla code and just read it through and 'learn' how it's done in vanilla Quote http://i.imgur.com/J4rrGt6.png[/img]
jeffryfisher Posted July 11, 2016 Posted July 11, 2016 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. Quote 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.
xTimPugz Posted July 12, 2016 Author Posted July 12, 2016 Thank you for the great reply. I'll mark this as solved now. (I can do this, right?) Quote
pirulo259 Posted July 12, 2016 Posted July 12, 2016 another 1.9.4 tutorial: Shadowfacts Quote Making mods is fun!!! (sorry bad english, i'm from venezuela)
Recommended Posts
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.