Posted August 27, 201411 yr Does anyone know which slots of armorInventory[] on the EntityPlayer correspond to which armor items? I have googled it extensively and no one really lists it. I am the self-nominated Lord of the Mastodons and don't you dare deny it. Also, check out my YouTube channel: https://www.youtube.com/user/DerpDerp44/
August 27, 201411 yr Also, if you look in ItemArmor, you will see that those are the opposite indexes of what you would use when creating armor: /** * Stores the armor type: 0 is helmet, 1 is plate, 2 is legs and 3 is boots */ public final int armorType; Confusing that they don't match, eh? But the indexes you want for your question are the ones diesieben07 pointed out. http://i.imgur.com/NdrFdld.png[/img]
August 28, 201411 yr Author Thank you. I heard that the Chestplate was 3, but that didn't make sense so I decided to ask. I am the self-nominated Lord of the Mastodons and don't you dare deny it. Also, check out my YouTube channel: https://www.youtube.com/user/DerpDerp44/
August 28, 201411 yr Thank you. I heard that the Chestplate was 3, but that didn't make sense so I decided to ask. It is 3 if you use player.getEquipmentInSlot(i), as slot 0 is the held item and 1-4 are the armor slots, with the same indexes as diesieben07 mentioned but all incremented by 1. You don't have to shift the index if you use player.getCurrentArmor(i). http://i.imgur.com/NdrFdld.png[/img]
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.