[SOVLED] Set mob held item

Discussion in 'Spigot Plugin Development' started by JoeTheHuman, May 15, 2015.

  1. HEY! This is those rare occasions where I can't find out how to do something.

    I'm writing a plugin that requires a mob to hold an item, however, I can't seem to find how to do this. If anyone knows any way to do this, please reply to this thread.
  2. First find the entity then set the item in their hand:

    Code (Text):
    can y0u send me a copy of your code so far so I can see what you are trying to do.
    • Like Like x 1
  3. The code is split into long 100 line files. Entity.setItemInHand(Itemstack) cannot be resolved.