On Kill remove Drops or so

Discussion in 'Plugin Development' started by deleted_91027365, Mar 16, 2015.

Thread Status:
Not open for further replies.
  1. Hey,

    How can I make it, when something Srops (like I kill a sheep and it drops wool) to make something?
    It didnt work with the PlayerDropEvent because its only when a Player press "Q".

    Hope you can Help!

    dunklesToast
     
  2. Offline

    Flaps

    e.getDrops().clear();
     
  3. Offline

    TheEntropy

    @dunklesToast In the PlayerDeathEvent, I think you can just edit whatever getDrops() outputs. So if you want a player to not drop anything, you would just do event.getDrops().clear();

    If you want to edit the drops of more than just players on death (such as listening for the death of sheep, cows etc), use the EntityDeathListener.
     
Thread Status:
Not open for further replies.

Share This Page