Posted November 24, 201311 yr Hi, ima making a mod there i need some new things to the singleplayer inventory called "Singleplayer tabs". It's not creative tabs.. It's the singleplayer inventory when you open up you see a little tab up there. It's like the "Galacticraft" where you must have it so you can have air in the space. Hope someone can help.
November 24, 201311 yr You have to do it yourself from the ground up. Nothing in vanilla does it. Start by adding buttons to the list of buttons in the main inventory gui after it is opened. You can use custom buttons that render like tabs, and open another gui on click.
November 24, 201311 yr there are some good button gui tutorials on youtube and google! i used them for my core mod Only code when your having fun doing it.
November 25, 201311 yr Author cool! i know that but yea i didn't think i was needing a fully new GUI because it is in the singleplayer inventory... Lol
November 25, 201311 yr Okay, What you'll wan't to do is take all of the textures used in the singleplayer inventory. You can find them by opening up the default texture pack. This is the building block for your new GUI, Everyone else is correct, you will have to build one from scratch, but you can use this as a starting point. Now you'll wan't to create a new Class that extends: InventoryEffectRenderer Open up that class and study it. We aren't going to give you answers to such a broad problem because theres 1000 different ways to solve it, and each one would take three or four pages to explain in depth what is going on. So your job is to now Study, Study the GuiInventory, & GuiContainerCreative classes to understand how Inventory GUI's are created and maintained by the game. Notice they all extend the above class: InventoryEffectRenderer, which means when you create your own you'll want to also extend that. These are good hints and great starting points. Now, go and do your homework
December 1, 201311 yr Author Well yea i think i should that.... I gonna make a SurvivalTabsAPI mod for minecraft that can have new tabs.
December 2, 201311 yr 1. VSWE's interface course teaches a lot of things, including tabs. 2. I'd suggest looking into who tabs are, as in what they really are in the logical sense. Look into how tabs are made for other things outside minecraft, in other java games/applications. Hell even tabs in scripts could give you a clue to the general idea As stated above, there is many ways to do this. Like any other logic problem, it has hundreds of solutions. You just have to find out which ones work for your needs and/or develop your own version(s) If you guys dont get it.. then well ya.. try harder...
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.