Jump to content

Lord_Lorden

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by Lord_Lorden

  1. Is there any limit to the amount of data I can store in the NBT of an Item/TileEntity? I could not find a conclusive answer other than nested tags may not extend past a depth of 512. While nesting should not be a problem, there is the potential for these patterns to hold quite a bit of data. If there is some kind of limit that is easily exceeded, would it be possible to store the data within a subfolder of the current world?
  2. Thank you! I have never used the structure block, so I didn't even think to look at it for an example. This had exactly what I needed.
  3. I guess I misworded the question. I am just looking for a way to save and then restore the state of TileEntities and Entities. Is it sufficient to just save the Entity/TileEntity to a NBTTagCompound using writeToNBT(), and restore the Entity/TileEntity by creating a new one of the same class and calling readFromNBT() using the NBTTagCompound extracted from the original? To be more clear, the mod will be saving the Blocks, Entities, and TileEntities in an area to a 'Pattern' object, and then use the saved data to restore the Blocks/Entities/TileEntities in a different location.
  4. I am working on a mod which requires objects (Blocks, Entities, TileEntities) to be stored in a persistable location. The stored data would then be used to restore the objects in another location. Is there any recommended (low overhead, non-hacky) way to store Entities and TileEntities and then restore them at a later time? This would ideally work for Entities and TileEntities from other mods.
×
×
  • Create New...

Important Information

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