Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Placed at the end of OnUpdate() in either EntityPlayer or EntityPlayerSP
- if(Mouse.isButtonDown(1) && checksum <= 0 && inventory.getCurrentItem() != null && onGround && !isSneaking() && inventory.getCurrentItem().itemID == 4097)
- {
- if(yOffset == 0.62F)
- {
- yOffset = 1.62F;
- setSize(0.6F, 1.8F);
- setPosition(posX, posY + 1.0D, posZ);
- checksum = 10;
- } else
- {
- yOffset = 0.62F;
- setSize(0.6F, 0.8F);
- setPosition(posX, posY, posZ);
- checksum = 10;
- }
- }
- if(checksum > 0)
- {
- checksum--;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement