https://www.youtube.com/watch?v=HQk3l6YD6VU
A long time ago I showcased a packetfly bypass, since now it is patched and somebody may be interested in it, there you go my good bois!
///api_version=2
(script = registerScript({
name: "Flight",
authors: ["xWhitey"],
version: "1.337"
})).import("Core.lib");
list = [
resetXYZ = value.createBoolean("Reset-Motion", false),
packetVanillaSpeed = value.createFloat("VanillaSpeed", 2.0, 0.0, 5.0),
packetSpeed = value.createFloat("Speed", 0.125, 0.125, 5),
packetYSpeed = value.createFloat("YSpeed", 0.125, 0.125, 5),
packetInstant = value.createBoolean("Instant", true),
packetSendAdditionalMoves = value.createBoolean("SendAdditionalMoves", true)
]
Math.toRadians = function(degrees) {
return degrees * Math.PI / 180;
};
module = {
values: list,
category: "Movement",
onDisable: function() {
resetXYZ.get() && (mc.thePlayer.motionX = mc.thePlayer.motionY = mc.thePlayer.motionZ = 0)
},
onUpdate: function() {
mc.thePlayer.motionY = mc.thePlayer.motionX = mc.thePlayer.motionZ = 0;
MovementUtils.strafe(packetVanillaSpeed.get())
if (packetInstant.get()) {
if (MovementUtils.isMoving()) {
sendPacket(new CPacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY + 10, mc.thePlayer.posZ, mc.thePlayer.onGround));
}
}
if (packetSendAdditionalMoves.get()) {
sendPacket(new CPacketPlayerPosition(mc.thePlayer.posX + -Math.sin(MovementUtils.getDirection()) * packetSpeed.get(), mc.thePlayer.posY, mc.thePlayer.posZ + Math.cos(MovementUtils.getDirection()) * packetSpeed.get(), mc.thePlayer.onGround));
}
},
onJump: function(e) {
e.cancelEvent()
},
onPacket: function(e) {
if (mc.thePlayer && e.getPacket() instanceof CPacketPlayer) {
if (MovementUtils.isMoving()) {
e.getPacket().x += -Math.sin(MovementUtils.getDirection()) * packetSpeed.get();
e.getPacket().z += Math.cos(MovementUtils.getDirection()) * packetSpeed.get();
}
e.getPacket().y += 0.125;
if (mc.gameSettings.keyBindJump.pressed) {
e.getPacket().y += packetYSpeed.get();
}
if (mc.gameSettings.keyBindSneak.pressed) {
e.getPacket().y -= packetYSpeed.get();
}
}
}
}
CPacketPlayerPosition = Java.type("net.minecraft.network.play.client.CPacketPlayer.Position");