Posted September 6, 201411 yr Hey I want to ask how can I store contents of custom container per player. I'm currently going through coolAlias's IExtendedEntityProperties tutorial, but as far as I know, NBT allows only storage of int, string, ect... Should I rather use WorldData and a Map? I'm already using it to store coordiantes.
September 6, 201411 yr Not sure about your problem, but you can use NBTTagList and add nbt tags to it (and then save the list as a tag in the main nbt). Go look for some docs on NBTTagList Check out my blog! http://www.whov.altervista.org
September 6, 201411 yr You can use IExtendedEntityProperties. ItemStack#writeToNBT() and ItemStack.loadItemStackFromNBT() are what you're looking for. BEFORE ASKING FOR HELP READ THE EAQ! I'll help if I can. Apologies if I do something obviously stupid. If you don't know basic Java yet, go and follow these tutorials.
September 6, 201411 yr Author You can use IExtendedEntityProperties. ItemStack#writeToNBT() and ItemStack.loadItemStackFromNBT() are what you're looking for. Oh! That's great! Thanks a lot
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.