[Script] AAC5 BoatFly Bypass
-
There is an AAC5 boat fly script (test in redesky, it work stable)
/// api_version=2 var script = registerScript({ name: "AAC5BoatFly", version: "1.00", authors: ["ys_"] }); var blink = moduleManager.getModule("Blink"); var delay = 0; var state = 0; script.registerModule({ name: "AAC5BoatFly", description: "Fly in aac5 with boat", category: "Movement", settings: { EditSpeed: Setting.float({ name: "EditSpeed", default: 1.0, min: 0.0, max: 1.5 }), YMotion: Setting.float({ name: "YMotion", default: 0.0, min: -0.5, max: 0.8 }), Delay: Setting.integer({ name: "KeepTime", default: 10, min: 0, max: 30 }) } }, function (module) { module.on("enable", function () { delay = 0; state = 0; }); module.on("update", function () { delay++; if (module.settings.Mode.get() == "Riding") { if (mc.thePlayer.isRiding()) { state = 1; delay = 0; } else if (state >= 1) { // was riding blink.getValue("Pulse").set(false); blink.setState(true); delay = 0; if (mc.thePlayer.onGround) { mc.thePlayer.capabilities.isFlying = true; state++; mc.thePlayer.motionY = module.settings.YMotion.get() + 0.42; setSpeed(0); } if (module.settings.Delay.get() > delay) { mc.thePlayer.capabilities.isFlying = true; addSpeed(Math.min(module.settings.EditSpeed.get() / 10, 0.5) + 0.3); mc.thePlayer.motionY = Math.max(mc.thePlayer.motionY, 0); } } } }); module.on("disable", function () { mc.thePlayer.capabilities.isFlying = false; blink.setState(false); }); }); function setSpeed(_speed) { var playerYaw = radians(mc.thePlayer.rotationYaw); mc.thePlayer.motionX = _speed * -Math.sin(playerYaw); mc.thePlayer.motionZ = _speed * Math.cos(playerYaw); } function addSpeed(_speed) { var playerYaw = radians(mc.thePlayer.rotationYaw); mc.thePlayer.motionX += _speed * -Math.sin(playerYaw); mc.thePlayer.motionZ += _speed * Math.cos(playerYaw); }
If it cannot work, please contact me (because I make this fly in my another script first)
have fun
(I am week in English ) -