Notes![what is notes.io? What is notes.io?](/theme/images/whatisnotesio.png)
![]() ![]() Notes - notes.io |
import me.aristhena.crest.module.*;
import me.aristhena.event.events.*;
import me.aristhena.utils.*;
import net.minecraft.util.*;
import net.minecraft.entity.*;
import net.minecraft.network.play.client.*;
import net.minecraft.network.*;
import me.aristhena.event.*;
@Module.Mod
public class Step2 extends Module
{
private boolean didSend;
private int sendTicks;
@EventTarget
public void onTick(final UpdateEvent event) {
final MovementInput movementInput = ClientUtils.mc().thePlayer.movementInput;
final double n = MovementInput.moveForward * 0.3 * Math.cos(Math.toRadians(ClientUtils.mc().thePlayer.rotationYaw + 90.0f));
final MovementInput movementInput2 = ClientUtils.mc().thePlayer.movementInput;
final double xOffset = n + MovementInput.moveStrafe * 0.3 * Math.sin(Math.toRadians(ClientUtils.mc().thePlayer.rotationYaw + 90.0f));
final MovementInput movementInput3 = ClientUtils.mc().thePlayer.movementInput;
final double n2 = MovementInput.moveForward * 0.3 * Math.sin(Math.toRadians(ClientUtils.mc().thePlayer.rotationYaw + 90.0f));
final MovementInput movementInput4 = ClientUtils.mc().thePlayer.movementInput;
final double zOffset = n2 - MovementInput.moveStrafe * 0.3 * Math.cos(Math.toRadians(ClientUtils.mc().thePlayer.rotationYaw + 90.0f));
final boolean clearAbove = ClientUtils.mc().theWorld.getCollidingBoundingBoxes((Entity)ClientUtils.mc().thePlayer, ClientUtils.mc().thePlayer.boundingBox.offset(xOffset, 2.1, zOffset)).isEmpty();
final boolean carpetCheck = ClientUtils.mc().theWorld.getCollidingBoundingBoxes((Entity)ClientUtils.mc().thePlayer, ClientUtils.mc().thePlayer.boundingBox.offset(xOffset, 2.01, zOffset)).isEmpty();
final boolean two = !ClientUtils.mc().theWorld.getCollidingBoundingBoxes((Entity)ClientUtils.mc().thePlayer, ClientUtils.mc().thePlayer.boundingBox.offset(xOffset, 1.6, zOffset)).isEmpty();
final boolean onedotfive = !ClientUtils.mc().theWorld.getCollidingBoundingBoxes((Entity)ClientUtils.mc().thePlayer, ClientUtils.mc().thePlayer.boundingBox.offset(xOffset, 1.4, zOffset)).isEmpty() && !two;
if (clearAbove && ClientUtils.mc().thePlayer.onGround && !ClientUtils.mc().thePlayer.isOnLadder()) {
if (ClientUtils.mc().thePlayer.isCollidedHorizontally) {
++this.sendTicks;
}
double[] array2;
if (two) {
final double[] array3;
array2 = (array3 = new double[10]);
array3[0] = 0.4;
array3[1] = 0.75;
array3[2] = 0.5;
array3[3] = 0.41;
array3[4] = 0.83;
array3[5] = 1.16;
array3[6] = 1.41;
array3[7] = 1.57;
array3[8] = 1.58;
array3[9] = 1.42;
}
else if (onedotfive) {
final double[] array4;
array2 = (array4 = new double[7]);
array4[0] = 0.4;
array4[1] = 0.75;
array4[2] = 0.5;
array4[3] = 0.41;
array4[4] = 0.83;
array4[5] = 1.16;
array4[6] = 1.41;
}
else {
final double[] array5;
array2 = (array5 = new double[2]);
array5[0] = 0.42;
array5[1] = 0.75;
}
final double[] pos = array2;
if (this.sendTicks > (two ? 7 : (onedotfive ? 5 : 1))) {
double[] array6;
for (int length = (array6 = pos).length, i = 0; i < length; ++i) {
final double position = array6[i];
ClientUtils.mc().thePlayer.sendQueue.addToSendQueue((Packet)new C03PacketPlayer.C04PacketPlayerPosition(ClientUtils.mc().thePlayer.posX, ClientUtils.mc().thePlayer.posY + position, ClientUtils.mc().thePlayer.posZ, true));
}
ClientUtils.mc().thePlayer.setPosition(ClientUtils.mc().thePlayer.posX, ClientUtils.mc().thePlayer.posY + pos[pos.length - 1], ClientUtils.mc().thePlayer.posZ);
if (!carpetCheck) {
ClientUtils.mc().thePlayer.motionY = 0.3;
}
this.sendTicks = 0;
}
}
}
public void s(final double off) {
ClientUtils.mc().thePlayer.sendQueue.addToSendQueue((Packet)new C03PacketPlayer.C04PacketPlayerPosition(ClientUtils.mc().thePlayer.posX, ClientUtils.mc().thePlayer.posY + off, ClientUtils.mc().thePlayer.posZ, true));
}
}
![]() |
Notes is a web-based application for online taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000+ notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 14 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team