Solved Color Leather Armor

Discussion in 'Plugin Development' started by tylerthecreeper1, Apr 27, 2014.

Thread Status:
Not open for further replies.
  1. Hi. I am making a plugin that spawns zombies with colored leather armor.

    I am having trouble coloring it, here's a small part of the code I have.

    Code:java
    1. e.getEquipment().setHelmet(new ItemStack(Material.LEATHER_HELMET));
    2. e.getEquipment().setChestplate(new ItemStack(Material.LEATHER_CHESTPLATE));
    3. e.getEquipment().setLeggings(new ItemStack(Material.LEATHER_LEGGINGS));
    4. e.getEquipment().setBoots(new ItemStack(Material.LEATHER_BOOTS));


    The 'e' is LivingEntity. I spawn the zombie with a command and it will have colored armor. Can someone please tell me the code I can use to set the helm, chest, legs, and boots to blue when I spawn it?

    Thanks in advance :)
     
  2. Offline

    BillyBobJoe168

    You would use LeatherArmorMeta to set the color.
     
  3. Offline

    BillyBobJoe168

Thread Status:
Not open for further replies.

Share This Page