1. Hello, there. I'm working on a plugin to spawn and manage locks/keys. I figured out how to spawn a key lock into a slot of an entity that has a lot slot, but how do I track the unique ID of that lock for later reference? or the item it is attached to? I may want to despawn that lock programmatically.

    Do I just need to maintain a list of references to the BaseEntity of the parent item? How should I approach this?
     
  2. Wulf

    Wulf Community Admin

    entity.net.ID should be what you want.
     
  3. Either that or item.uid

    Then again, once it's on the door you can't really use item.uid