Prevent Mob Item Drop

Discussion in 'Plugin Development' started by WiseHollow, Dec 27, 2014.

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

    WiseHollow

    So let's say we have an item that is thrown on the ground. I cannot prevent a mob from picking up an item, however I believe there is a way to set the item count to 0. That way nothing drops when they die. Does anyone have an idea on how to do this?
     
  2. Offline

    macboinc

    Do you mean when a mob dies, nothing is dropped?
     
  3. Offline

    WiseHollow

    No sir. I am making a chest shop plugin that puts a display item on top of the chest shop. The display item wont be able to be picked up from a player. However, zombies could pickup the item and then, when a player kills the zombie, the zombie would drop it and players could pick it up again.
     
  4. Offline

    TwerkinCraft

    You can prevent the item from being picked up using NMS, but i forgot how :(
     
  5. Easiest way is give the item a custom lore and prevent anything from happening to an item with that lore
     
  6. Offline

    nateracecar5

    If I'm correct, you might be able to set the count to zero. I think it works in vanilla as well as bukkit. Although, it would despawn if I'm correct. Try it though :)
     
Thread Status:
Not open for further replies.

Share This Page