Jump to content

Recommended Posts

Posted (edited)

At the moment I'm still using integers to save them (the nbt tags only contains the blocks I made), similar to the metadata in previous versions, I store their blockstate as int and then turn them back into blockstate when need them. I would like to know is there a way to save blockstates on itemstacks other than this way or capabilities?

Edited by poopoodice
Posted

You cannot save things in an Item. You have to put the things in an ItemStack.

 I will make fun of you if you are not able to look into the (vanilla-) code.

Posted (edited)
11 minutes ago, Niprow said:

You cannot save things in an Item. You have to put the things in an ItemStack.

Sorry, you're right, I mean ItemStack (edited)

Edited by poopoodice

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.

Announcements



×
×
  • Create New...

Important Information

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