Loot

Discussion in 'Plugin Development' started by Darris, Oct 27, 2019.

  1. Offline

    Darris

    Hello! I do not know how to do the following: I need to loot that fell from the monster (ItemStack), could only pick up the one who killed him (Player). Can someone help?
     
  2. Offline

    KarimAKL

  3. Offline

    Darris

    @KarimAKL I understand, but how to make sure to pick up a could the one who killed the mob?

    BTW, this should not work for all items.
    That is, it must work solely for the loot that dropped from the mob.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
  4. Offline

    KarimAKL

    @Darris Entities have UUID, check if it's that exact entity before you do anything. (That counts for items on the ground as well)
     

Share This Page