Vswe's Summer Courses | You're not logged in. Sign up or log in | Server time: | Donate
One can now see other persons' badge hunts. Simply head over to their profiles to access them.

Go back to sub forum page

General forum

Non-course related subjects

3. Programming help

Grabbing the NBT Data of another Tileentity

  • 2013-12-11 18:33:02

    So I've ran into an issue where I want to grab the nbt data of a tileentity, via another tileentity. Is that even possible?

  • 2013-12-11 18:36:47
    NVM, though of a way
  • 2013-12-12 00:11:49
    Damn typos. Also, It didn't work. Hmmmm?
  • 2013-12-12 10:43:58
    Can't you just call WriteToNBT method of a target tileentity?
  • 2013-12-12 15:40:15
    I was thinking about that, but it does not return the NBTTag.
  • 2013-12-12 18:06:31
    No, you give it NBTTagCompound and it saves all data into it.
  • 2013-12-14 09:00:40
    That should indeed work. A Tile Entity knows how to save its data to an NBT tag but it has no clue (and doesn't care) about where that tag comes from.
  • 2013-12-15 19:35:51
    Yep. Works, just finished coding my modjam entry =D
  • Log in or sign up to reply to this thread