ItsAMysteriousYT Posted June 25, 2015 Posted June 25, 2015 I want to add some slots to the inventory of the player for specific items. How can i add them to his inventory? Quote
Elix_x Posted June 25, 2015 Posted June 25, 2015 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... Quote Check out my mods: BTAM Armor sets Avoid Exploding Creepers Tools compressor Anti Id Conflict Key bindings overhaul Colourfull blocks Invisi Zones
delpi Posted June 26, 2015 Posted June 26, 2015 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. Quote Long time Bukkit & Forge Programmer Happy to try and help
coolAlias Posted June 26, 2015 Posted June 26, 2015 I happen to have a tutorial that covers this exact topic. Quote http://i.imgur.com/NdrFdld.png[/img]
delpi Posted June 26, 2015 Posted June 26, 2015 And it turns out, I used your tutorial the first time I did something like this. It was well put together. Quote Long time Bukkit & Forge Programmer Happy to try and help
ItsAMysteriousYT Posted June 27, 2015 Author Posted June 27, 2015 Lol, thak you great guys I would be lost without this Forum!! Quote
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.