Solved Setting An Entities Item In Hand Help

Discussion in 'Plugin Development' started by mkezar, Mar 19, 2015.

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

    mkezar

    Hi. I am spawning a zombie when i die. it has my name. What im trying to do is give it the item i have in my hand when i die. im trying to do stuff like entity.setItemInHand(player.getItemInHand()) even though entity doesn't have a getItemInHand() method. what method would i use to set the entities item? Thank u :D
     
  2. Offline

    Konato_K

    @mkezar Zombies have a getEntityEquiment (or something along those lines) that returns their Inventory, there are methods to modify the armor and the item in hand there.
     
  3. Offline

    mkezar

    Thank You!
     
  4. Offline

    mine-care

Thread Status:
Not open for further replies.

Share This Page