Solved get UUID drops on death

Discussion in 'Plugin Development' started by FurmigaHumana, Dec 23, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    FurmigaHumana

    Hi,

    I'm trying to find a way to take the uuid of the items dropped on player death, I already look on PlayerDeathEvent and EntityDeathEvent and they only give me the ItemStack list, so I'll need to do in another way but I can't think in one, someone have any ideia?
     
  2. Offline

    fireblast709

    FurmigaHumana Yes, I have one. Get the dropped items, clear the drop list, and drop them yourself. The world.dropItemNaturally(location, itemstack) returns the Items (which is the dropped item entity). You can use this to get the UUID
     
  3. Offline

    FurmigaHumana

    ah, so easy, I forgot that dropItem return the entity :p

    Thanks.
     
Thread Status:
Not open for further replies.

Share This Page