Custom Player Heads On Mobs

Discussion in 'WIP and Development Status' started by sniper-mine, Jan 5, 2014.

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

    sniper-mine

    Hello!
    I am trying to put a certain player head on a zombie and I found nothing on google. Any help?
     
  2. Offline

    ArthurMaker

    Code:java
    1. public static void setWeapon(LivingEntity mob, ItemStack item) {
    2. EntityEquipment ee = mob.getEquipment();
    3. ee.setItemInHand(item);
    4. }
    5.  
    6. public static void setHelmet(LivingEntity mob, ItemStack item) {
    7. EntityEquipment ee = mob.getEquipment();
    8. ee.setHelmet(item);
    9. }
    10.  
    11. public static void setChestplate(LivingEntity mob, ItemStack item) {
    12. EntityEquipment ee = mob.getEquipment();
    13. ee.setChestplate(item);
    14. }
    15.  
    16. public static void setPants(LivingEntity mob, ItemStack item) {
    17. EntityEquipment ee = mob.getEquipment();
    18. ee.setLeggings(item);
    19. }
    20.  
    21. public static void setBoots(LivingEntity mob, ItemStack item) {
    22. EntityEquipment ee = mob.getEquipment();
    23. ee.setBoots(item);
    24. }


    Put the zombie entity as the LivingEntity in "mob".
     
Thread Status:
Not open for further replies.

Share This Page