SuperZombies

Discussion in 'Plugin Development' started by CarPet, Dec 28, 2012.

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

    CarPet

    Is there anyway to make a zombie always NATURALLY spawn with armor on?
     
  2. Offline

    gomeow

    onSpawn, add armor. Why does it need to be naturally?
     
  3. Offline

    chasechocolate

    Yeah, CreatureSpawnEvent, check if the entity is an instanceof Zombie, find the spawn reason, get the zombie's handle, and add armor
     
  4. Offline

    gomeow

    You are using old methods... Afaik, you can use the API for that now.
     
  5. Offline

    fireblast709

    Which means, use EntityEquipment
    Code:java
    1. EntityEquipment ee = <living entity>.getEntityEquipment();
    2. ee.setHelmet(new ItemStack(Material.LEATHER_HELMET, 1));
    3. // Etc. Check the javadocs for more methods
     
Thread Status:
Not open for further replies.

Share This Page