O3Bubbles09

Untitled

Feb 12th, 2013
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. public void onTickInGame(EntityPlayer player, Minecraft minecraft) {
  2. ItemStack boots = ((EntityPlayer)Minecraft.thePlayer).inventory.armorInventory[0];
  3. ItemStack pants = ((EntityPlayer)Minecraft.thePlayer).inventory.armorInventory[1];
  4. ItemStack chest = ((EntityPlayer)Minecraft.thePlayer).inventory.armorInventory[2];
  5. ItemStack head = ((EntityPlayer)Minecraft.thePlayer).inventory.armorInventory[3];
  6. if(boots != null && boots.itemID == copperBoots.itemID) {
  7. player.addChatMessage("You got your armor on!");
  8. }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment