AAC5 Fly (Test)
-
This script 50% may make aac5 think you are "unconfirmed teleport"
and this fly is sooo slowvideo https://www.youtube.com/watch?v=AW8mSGSN_1g
/// api_version=2 var script = registerScript({ name: "ScriptModule", version: "1.0", authors: ["liulihaocai"] }); var Double=Java.type('java.lang.Double') // var PacketUtils=Java.type('net.ccbluex.liquidbounce.utils.PacketUtils') var C03PacketPlayer=Java.type('net.minecraft.network.play.client.C03PacketPlayer') var S08PacketPlayerPosLook=Java.type('net.minecraft.network.play.server.S08PacketPlayerPosLook') var S40PacketDisconnect=Java.type('net.minecraft.network.play.server.S40PacketDisconnect') Math.toRadians = function (degrees) { return degrees * Math.PI / 180; }; script.registerModule({ name: "AACv5Fly", description: "Konsolas不要理会谣言与中伤", category: "Movement" }, function (module) { var status=0 var pk=null var packets=[] function sendPacketNoEvent(packet){ packets.push(packet) mc.getNetHandler().addToSendQueue(packet) } module.on("update", function () { try { if(mc.thePlayer.onGround){ Chat.print("JUMP INTO AIR AND TOGGLE THIS MODULE") module.setState(false) return } mc.gameSettings.keyBindForward.pressed=status!=1 mc.thePlayer.motionX = 0; mc.thePlayer.motionZ = 0; mc.thePlayer.motionY = 0; mc.thePlayer.rotationYaw=launchYaw mc.thePlayer.rotationPitch=launchPitch if(status==1){ if(pk!=null){ sendPacketNoEvent(pk); var dist=0.13 var yaw=Math.toRadians(mc.thePlayer.rotationYaw) var x = -Math.sin(yaw) * dist var z = Math.cos(yaw) * dist mc.thePlayer.setPosition(mc.thePlayer.posX + x, mc.thePlayer.posY, mc.thePlayer.posZ + z) sendPacketNoEvent(new C03PacketPlayer.C04PacketPlayerPosition( mc.thePlayer.posX, mc.thePlayer.posY, mc.thePlayer.posZ, false)); Chat.print("CLIP "+mc.thePlayer.posX+" "+mc.thePlayer.posY+" "+mc.thePlayer.posZ) } sendPacketNoEvent(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX,1.7976931348623157E+308,mc.thePlayer.posZ,true)); pk=new C03PacketPlayer.C06PacketPlayerPosLook(mc.thePlayer.posX,mc.thePlayer.posY,mc.thePlayer.posZ, mc.thePlayer.rotationYaw, mc.thePlayer.rotationPitch, false) Chat.print("MAKEFLAG "+mc.thePlayer.posX+" "+mc.thePlayer.posY+" "+mc.thePlayer.posZ) }else if(status==2){ tick++ if(tick>=2){ status=1 } } }catch(err){Chat.print(err);} }); module.on("packet", function (event) { try{ var packet = event.getPacket(); if(packet instanceof S08PacketPlayerPosLook){ event.cancelEvent() if(status==0){ mc.thePlayer.setPosition(packet.getX(), packet.getY(), packet.getZ()); sendPacketNoEvent(new C03PacketPlayer.C06PacketPlayerPosLook(mc.thePlayer.posX,mc.thePlayer.posY,mc.thePlayer.posZ, packet.getYaw(), packet.getPitch(), false)); Chat.print("FLAG "+mc.thePlayer.posX+" "+mc.thePlayer.posY+" "+mc.thePlayer.posZ); if(mc.thePlayer.posX==lastPosX&&mc.thePlayer.posZ==lastPosZ){ sameCount++ Chat.print("SAME "+sameCount) if(sameCount>=5){ status=1 mc.timer.timerSpeed=0.1 sameCount=0 return } } var dist=0.13 var yaw=Math.toRadians(mc.thePlayer.rotationYaw) var x = -Math.sin(yaw) * dist var z = Math.cos(yaw) * dist mc.thePlayer.setPosition(mc.thePlayer.posX + x, mc.thePlayer.posY, mc.thePlayer.posZ + z) sendPacketNoEvent(new C03PacketPlayer.C04PacketPlayerPosition( mc.thePlayer.posX, mc.thePlayer.posY, mc.thePlayer.posZ, false)); Chat.print("CLIP "+mc.thePlayer.posX+" "+mc.thePlayer.posY+" "+mc.thePlayer.posZ) lastPosX=mc.thePlayer.posX lastPosZ=mc.thePlayer.posZ sendPacketNoEvent(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX,1.7976931348623157E+308,mc.thePlayer.posZ,true)); }else{ if(mc.timer.timerSpeed<=1.2){ sameCount++ Chat.print("SAME "+sameCount) if(sameCount>=sameCountReach){ sameCount=0 sameCountReach+=13 mc.timer.timerSpeed+=0.4 } } Chat.print("PKFLAG "+packet.getX()+" "+packet.getY()+" "+packet.getZ()); // if(packet.getX()!=mc.thePlayer.posX||packet.getZ()!=mc.thePlayer.posZ){ // mc.thePlayer.setPosition(packet.getX(), packet.getY(), packet.getZ()); // sendPacketNoEvent(new C03PacketPlayer.C06PacketPlayerPosLook(mc.thePlayer.posX,mc.thePlayer.posY,mc.thePlayer.posZ, packet.getYaw(), packet.getPitch(), false)); // } // if(packets.indexOf(packet.getX()+":"+packet.getZ())<(packets.length-2)){ // packets=[] // mc.thePlayer.setPosition(packet.getX(), packet.getY(), packet.getZ()); // Chat.print("DIFFFLAG "+mc.thePlayer.posX+" "+mc.thePlayer.posY+" "+mc.thePlayer.posZ); // status=2 // tick=0 // }else{ // } // if(mc.thePlayer.getDistance(packet.getX(), packet.getY(), packet.getZ())>1){ // mc.thePlayer.setPosition(packet.getX(), packet.getY(), packet.getZ()); // Chat.print("LONGFLAG "+packet.getX()+" "+packet.getY()+" "+packet.getZ()); // } } // mc.getNetHandler().addToSendQueue(new C06(packet.getX(), packet.getY(), packet.getZ(), packet.getYaw(), packet.getPitch(), false)); } if(packet instanceof C03PacketPlayer&&(packets.indexOf(packet)==-1)){ // Chat.print("C03 "+packet.x+" "+packet.y+" "+packet.z) event.cancelEvent() } if(packet instanceof S40PacketDisconnect){ module.setState(false) } // if(packet instanceof C03PacketPlayer.C06PacketPlayerPosLook){ // Chat.print("C06 "+packet.x+" "+packet.y+" "+packet.z) // } }catch(err){ Chat.print(err); }; }); module.on("enable", function () { mc.thePlayer.motionX = 0; mc.thePlayer.motionZ = 0; mc.thePlayer.motionY = 0; status=0 lastPosX=0 lastPosZ=0 sameCount=0 tick=0 launchYaw=mc.thePlayer.rotationYaw launchPitch=mc.thePlayer.rotationPitch sameCountReach=5 pk=null sendPacketNoEvent(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX,1.7976931348623157E+308,mc.thePlayer.posZ,true)); }); module.on("disable", function () { mc.thePlayer.motionY = 0; mc.timer.timerSpeed = 1.0; mc.gameSettings.keyBindForward.pressed=false if(pk!=null) sendPacketNoEvent(pk); packets.clear() }); })
-
wow, That Script is So Cool
-
@qwq-liulihaocai that's not how you send packets without triggering onPacket tho
-
@qwq-liulihaocai happy to see you back, i love ur client fdpclient and this thing is freaking awesome
-
@ender1355 ty
-
@qwq-liulihaocai epic
-
@qwq-liulihaocai should have just ported standard one to script api
https://github.com/CzechHek/Core/blob/82457082bb5bd82b3abbad668d9667fae123407b/Core.lib#L172
-
This post is deleted!
-