Jump to content

Items and Containers ?


godbaba

Recommended Posts

Each ItemStack has a NBTTagCompound attached to it, normally used for enchantments and stuff. You can store your inventory there.

 

Can you direct me to where I could start looking for how to access this NBT? Because I know I have seen a tutorial before, but I can't find it again...

I am Mew. The Legendary Psychic. I behave oddly and am always playing practical jokes.

 

I have also found that I really love making extremely long and extremely but sometimes not so descriptive variables. Sort of like what I just did there xD

Link to comment
Share on other sites

-_- no shit bro...

 

Sorry about that. I do miss little tid bits like that. Thanks for answering though!

I am Mew. The Legendary Psychic. I behave oddly and am always playing practical jokes.

 

I have also found that I really love making extremely long and extremely but sometimes not so descriptive variables. Sort of like what I just did there xD

Link to comment
Share on other sites

If you want to have, say a bag item, you would make it open a GUI in the onItemRightClick() method. Then its just a normal GUI with slots and such from there. The actual item saving would be done via the container I believe, not the actual item.

 

So I would suggest learning about containers and such, or you could read through vanilla containers to see what they do. I would suggest looking into the inventory files

I am Mew. The Legendary Psychic. I behave oddly and am always playing practical jokes.

 

I have also found that I really love making extremely long and extremely but sometimes not so descriptive variables. Sort of like what I just did there xD

Link to comment
Share on other sites

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.