Solved EntityPickUpItemEvent or similar?

Discussion in 'Plugin Development' started by rfsantos1996, Jun 28, 2014.

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

    rfsantos1996

    Does it exists? Can it be added? How to cancel it without an event?

    I have Items that are basicly used for display and removed after some seconds, but meanwhile some zombies keep getting them and so Players have a chance of getting items. How can I fix this?

    Thank you (;
     
  2. Offline

    AoH_Ruthless

  3. Offline

    rfsantos1996

    I was looking for Entity, like zombie, I belive this one is only for Player
     
  4. Offline

    Traks

    Perhaps invoke LivingEntity#setCanPickupItems(boolean) with false as argument on all living entities in the world? Don't forget to invoke it as well when a new mob spawns
     
    rfsantos1996 and CorrieKay like this.
  5. Offline

    rfsantos1996

    I HAVEN'T THOUGHT ABOUT THAT, :confused: thank you xD
    Nice creative solution u.u
     
Thread Status:
Not open for further replies.

Share This Page