CCBlueX Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    [Script] AAC5 BoatFly Bypass

    Scripts
    1
    1
    256
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      siuank last edited by siuank

      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 😞 )

      1 Reply Last reply Reply Quote 0
      • Referenced by  S siuank 
      • First post
        Last post
      About
      • Terms of Service
      • Privacy Policy
      • Status
      • Contact Us
      Downloads
      • Releases
      • Source code
      • License
      Docs
      • Tutorials
      • CustomHUD
      • AutoSettings
      • ScriptAPI
      Community
      • Forum
      • Guilded
      • YouTube
      • Twitter
      • D.Tube