Adding armor to a horse?

Discussion in 'Plugin Development' started by Codex Arcanum, Aug 6, 2013.

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

    Codex Arcanum

    Simply put: Does anyone know how do you set the type of armor a horse is wearing? Is it somewhere in EntityEquipment? If so, which slot?
     
  2. Offline

    foodyling

    Cast it to a horse (assuming you know its a horse)
    Horse horse = (Horse) entity;
    HorseInventory inventory = horse.getInventory();
    inventory.setArmor(itemstack);
     
  3. Offline

    bfgbfggf

    Nope. Horse have own Inventory. Just use horse.getInventory() And you will see.

    EDIT:
    foodyling ninja :p
     
Thread Status:
Not open for further replies.

Share This Page