Advertisement
ZornTaov

ShrinkRodSnippit

Oct 9th, 2011
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.73 KB | None | 0 0
  1. //Placed at the end of OnUpdate() in either EntityPlayer or EntityPlayerSP
  2.         if(Mouse.isButtonDown(1) && checksum <= 0 && inventory.getCurrentItem() != null && onGround && !isSneaking() && inventory.getCurrentItem().itemID == 4097)
  3.         {
  4.             if(yOffset == 0.62F)
  5.             {
  6.                 yOffset = 1.62F;
  7.                 setSize(0.6F, 1.8F);
  8.                 setPosition(posX, posY + 1.0D, posZ);
  9.                 checksum = 10;
  10.             } else
  11.             {
  12.                 yOffset = 0.62F;
  13.                 setSize(0.6F, 0.8F);
  14.                 setPosition(posX, posY, posZ);
  15.                 checksum = 10;
  16.             }
  17.         }
  18.         if(checksum > 0)
  19.         {
  20.             checksum--;
  21.         }
  22.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement