Jump to content

Lindenk

Members
  • Posts

    4
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    Maybe

Lindenk's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Ah! So that's what NBTTagCompound is used for. Thanks.
  2. Does the entity still exist when the item is in an inventory? I'm trying to give an item an inventory that you can open from your inventory (kind of like a bag). Edit: When I initially said item entity, I meant like a tile entity but for an Item/ItemStack, instead of a block.
  3. Hello all I'm trying to initialize an item when an ItemStack of it has entered the world without much luck. The Item.onCreated() method seems to only be called when the item is crafted or smelted but not when pulled out of a creative tab and I don't see any form of onDestroy() method. For a little more info, I'm trying to implement item entities but I need to bind them to their respective item by saving a unique identifier to the item's metadata. And this needs to be done only once, when the item enters the world, and the entity needs to be destroyed when the item leaves the world. Is there any way forge can help me with this problem? Or have I just missed something in vanilla?
  4. It would provide more versatility to how things are initialized. I rather like the idea that I can add something without needing to register it in a million places (well maybe not a million but still).
×
×
  • Create New...

Important Information

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