Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(zPressed) {
- System.out.println(zPressed);
- float originalYaw = mc.thePlayer.rotationYaw;
- if(rotationTicks < (2 * Math.PI)) {
- rotationTicks += rotationTime * (2 * Math.PI) / 20;
- mc.thePlayer.rotationYaw = originalYaw + rotationTicks;
- } else if(rotationTicks >= (2 * Math.PI)) {
- zPressed = false;
- rotationTicks = 0;
- System.out.println(zPressed);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement