NPC armor will not appear
KokeCacao opened this issue · 1 comments
KokeCacao commented
Equipment equip = npc.getTrait(Equipment.class);
ItemStack hand = new ItemStack(mt1, 1, s1);
equip.set(EquipmentSlot.HAND, hand);
ItemStack helmet = new ItemStack(mt2, 1, s2);
equip.set(EquipmentSlot.HELMET, helmet);
ItemStack chestplate = new ItemStack(mt3, 1, s3);
equip.set(EquipmentSlot.CHESTPLATE, chestplate);
ItemStack leggings = new ItemStack(mt4, 1, s4);
equip.set(EquipmentSlot.LEGGINGS, leggings);
ItemStack boots = new ItemStack(mt5, 1, s5);
equip.set(EquipmentSlot.BOOTS, boots);
When I was using CitizensAPI
It will not output any error and it spawns NPC but no armor appear.
(ItemStack must be true)
How can I add armor?
Thank-you
Edit: It is skeleton
KokeCacao commented
Solved: spawn before do this...
Hope it helps you.