kriNon

Untitled

Nov 5th, 2012
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.35 KB | None | 0 0
  1. public boolean onTickInGame(float f, Minecraft minecraft)
  2. {
  3.     if (minecraft.thePlayer.inventory.armorItemInSlot(1) != null)
  4.     {
  5.         ItemStack itemstack = minecraft.thePlayer.inventory.armorItemInSlot(1);
  6.         if (itemstack.itemID == 1005)
  7.         {
  8.         EntityPlayer.setPotionEffect(Potion.invisibility, 30);
  9.         }
  10.     }    
  11.     return true;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment