Posted June 25, 201510 yr I want to add some slots to the inventory of the player for specific items. How can i add them to his inventory?
June 25, 201510 yr Do you want to create new tab like TiC or just add new slots to main inventory? Both are possible. 2nd can be done via gui init event, check if it is player's inventory and then add new slots using reflection... EDIT: If with 2nd you want to also draw additional "rectangle" somewhere - there's gui draw event (or something similar), which is fired when gui is drawn... Check out my mods: BTAM Armor sets Avoid Exploding Creepers Tools compressor Anti Id Conflict Key bindings overhaul Colourfull blocks Invisi Zones
June 26, 201510 yr I would recommend creating a new inventory for the extra slots you want and storing it in extendeproperties for the player. With a little work, you can make it pretty graceful. Long time Bukkit & Forge Programmer Happy to try and help
June 26, 201510 yr I happen to have a tutorial that covers this exact topic. http://i.imgur.com/NdrFdld.png[/img]
June 26, 201510 yr And it turns out, I used your tutorial the first time I did something like this. It was well put together. Long time Bukkit & Forge Programmer Happy to try and help
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.