Jump to content

[FORGE][1.8] Adding an additional slot to the player's inventory?


Recommended Posts

Posted

My question is rather simple, I would like to add an additional slot the the vanilla player inventory. I looked through a tutorial on creating your own inventory, and am thinking about using a Tick handler to replace the vanilla inventory with my own when opened. Is there a more efficient way of doing this? Or, is what I have planned the best one?

I am not a cat. I know my profile picture is sexy and amazing beyond anything you could imagine but my cat like features only persist in my fierce eyes. I might be a cat.

Posted

There is the Gui Open event or some such thing that would be much more effective than a tick handler, just keep in mind that there are plenty of mods that are doing that exact same thing...

 

Personally, I would suggest having an 'alternate' inventory menu the player can open to access their additional slots, but if you don't anticipate your mod being played alongside any others that try to replace the player inventory, then go for it.

 

Another alternative is to look into adding a button / tab to the player inventory screen to access your special slots; mods like Battlegear2 and several others take this route, though I haven't looked into how it's done.

Posted

I was actually thinking that over, and am going to add a simple button that will display the extra slot when needed. I would add an entirely separate menu, but I am only adding one slot, so I feel it's a waste of time. Thank you though Alias, you are a great help to this community, and I believe you aren't appreciated enough. :P

I am not a cat. I know my profile picture is sexy and amazing beyond anything you could imagine but my cat like features only persist in my fierce eyes. I might be a cat.

Posted

No problem! Merry Christmas to you, and have a Happy New Year!

I am not a cat. I know my profile picture is sexy and amazing beyond anything you could imagine but my cat like features only persist in my fierce eyes. I might be a cat.

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.