Guest User

Untitled

a guest
Jun 11th, 2012
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. public boolean onTickInGame(Minecraft minecraft)
  2. {
  3. ItemStack boots = minecraft.thePlayer.inventory.armorInventory[0];
  4. ItemStack legs = minecraft.thePlayer.inventory.armorInventory[1];
  5. ItemStack chest = minecraft.thePlayer.inventory.armorInventory[2];
  6. ItemStack helm = minecraft.thePlayer.inventory.armorInventory[3];
  7.  
  8. if(boots == null || legs == null || chest == null || helm == null)
  9. {
  10. return false;
  11. }
  12. else if(boots.itemID == mod_Dummy.bootsTitanium.shiftedIndex && legs.itemID == mod_Dummy.legsTitanium.shiftedIndex && chest.itemID == mod_Dummy.plateTitanium.shiftedIndex && helm.itemID == mod_Dummy.helmetTitanium.shiftedIndex)
  13. {
  14. minecraft.thePlayer.isImmuneToFire = true;
  15. }
  16. return true;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment