CCBlueX Forum

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

    [Legacy][Patched]Customizable Fly (Originally for Cubecraft)

    Scripts
    8
    12
    650
    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.
    • ?
      A Former User last edited by A Former User

      This is a customizable Fly.
      It was originally made to be a glide for Cubecraft, and since Cubecraft is known to patch values rather than exploits, this script was effective.

      The default values are, as of now, patched.

      Please note that this script is based off a very old codebase and has terrible code quality. It is also using the v1 ScriptAPI. I will port my scripts to the new API sometime, but for now, I will continue to use v1 since I am more familiar with it.

      Code:

      //░█▀▀░█▀█░█▀█░█▀▀░█▀▀░█▀▄░
      //░█░░░█▀█░█░█░█░░░█▀▀░█▀▄░
      //░▀▀▀░▀░▀░▀░▀░▀▀▀░▀▀▀░▀░▀░
      //░█▀█░█▀█░█▄█░█▀▀
      //░█░█░█▀█░█░█░█▀▀
      //░▀░▀░▀░▀░▀░▀░▀▀▀
      var scriptName = "CubeFly";
      var scriptVersion = 1.1;
      var scriptAuthor = "cancername";
      
      var Module = new Module();
      var client;
      
      Math.radians = function(degrees) {
          return degrees * Math.PI / 180;
      };
      Math.degrees = function(radians) {
          return radians * 180 / Math.PI;
      };
      
      var PlayerPosition = Java.type('net.minecraft.network.play.client.C03PacketPlayer.C04PacketPlayerPosition')
      
      
      function vClip(offset) {
          mc.thePlayer.setPosition(mc.thePlayer.posX, mc.thePlayer.posY + offset, mc.thePlayer.posZ);
      }
      
      function hClip(offset) {
          mc.thePlayer.setPosition(mc.thePlayer.posX - (Math.sin(Math.radians(mc.thePlayer.rotationYaw)) * offset), mc.thePlayer.posY, mc.thePlayer.posZ + (Math.cos(Math.radians(mc.thePlayer.rotationYaw)) * offset));
      }
      
      
      function hMotion(offset) {
          mc.thePlayer.motionX = parseFloat(Math.cos(Math.radians(mc.thePlayer.rotationYaw + 90.0)) * offset)
          mc.thePlayer.motionZ = parseFloat(Math.sin(Math.radians(mc.thePlayer.rotationYaw + 90.0)) * offset)
      }
      
      function Module() {
          this.getName = function() {
              return "CustomCCFly";
          };
      
          this.getDescription = function() {
              return "An attempt at a customizable Cubecraft fly.\nExtremely simple, since it is Cubecraft.";
          };
      
          this.getCategory = function() {
             return "Movement";
          };
      
          var xa = value.createBoolean("DoFakeGround", false),
              xd = value.createBoolean("DoHMotion", false),
              xf = value.createBoolean("DoHClip", false),
              xg = value.createBoolean("DoVClip", false),
              xj = value.createBoolean("DoBounceTimer", false),
              xl = value.createBoolean("DoFallTimer", false),
      
              xb = value.createFloat("BlocksToFall", 1.7, .05, 5),
              xc = value.createFloat("YMotion", .15, -1, 1),
              xe = value.createFloat("HMotion", .2, 0, 1),
              xh = value.createFloat("HClipLength", 1, 0, 9),
              xi = value.createFloat("VClipLength", 1, 0, 9),
              xk = value.createFloat("FallTimerSpeed", 1, 0.1, 5),
              xm = value.createFloat("JumpTimerSpeed", 1, 0.1, 5),
              xn = value.createInteger("Limit", 2, 1, 40);
      
      
      
          this.addValues = function(v) {
              v.add(xa);
              v.add(xb);
              v.add(xc);
              v.add(xd);
              v.add(xe);
              v.add(xf);
              v.add(xg);
              v.add(xh);
              v.add(xi);
              v.add(xj);
              v.add(xk);
              v.add(xl);
              v.add(xm);
              v.add(xn);
          }
      
          
          this.onUpdate = function() {
              if (mc.thePlayer.onGround) limit = xn.get();
              if (xl.get() && !mc.thePlayer.onGround) mc.timer.timerSpeed = xk.get();
      
      
              if (mc.thePlayer.fallDistance >= xb.get() && limit > 0) {
                  if (xj.get()) mc.timer.timerSpeed = xm.get();
      
                  mc.thePlayer.motionY = xc.get();
      
                  if (xa.get()) mc.thePlayer.sendQueue.addToSendQueue(new PlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY, mc.thePlayer.posZ, true));
                  if (xd.get()) hMotion(xe.get());
                  if (xf.get()) hClip(xh.get());
                  if (xg.get()) vClip(xi.get());
                  mc.thePlayer.fallDistance = 0;
                  limit--;
              } else if (xj.get() && !xl.get() || mc.thePlayer.onGround) mc.timer.timerSpeed = 1;
              if (xl.get() && !xj.get() && !mc.thePlayer.onGround) mc.timer.timerSpeed = xk.get();
          }
          this.onDisable = function() {
              mc.timer.timerSpeed = 1;
      
          }
      
      
      
      }
      
      function onLoad() {
          var limit = xn.get();
      }
      
      function onEnable() {
          client = moduleManager.registerModule(Module);
      }
      
      function onDisable() {
          moduleManager.unregisterModule(client);
      }
      
      

      FIle:
      cubefly-release.js

      ? 1 Reply Last reply Reply Quote 0
      • LolMC
        LolMC last edited by

        Spoilerules cube fly better lol

        ? 1 Reply Last reply Reply Quote 0
        • ?
          A Former User @LolMC last edited by A Former User

          @LolMC Yes, but

          1. It isn't customizable
          2. Mine is patched in the first place
          3. Whether it is better or not depends on the settings
          4. It wasn't meant to be better, I don't want to invest my time in finding Exploits for a Minecraft Server.
          5. Spoiler is the god of cubecraft flies
          Spoiler CzechHek 2 Replies Last reply Reply Quote 0
          • ChocoPie_isme
            ChocoPie_isme Banned last edited by

            SPOILER IS THE GOD OF SEX HE ALWAYS SEND ME NUDES OR ASK ME DO I WANT SOME FREE NEKOS

            1 Reply Last reply Reply Quote 0
            • icewormy3
              icewormy3 last edited by

              my fly is better than all of urs i can fly 120+km/h while going up and down (also patched 😞 )

              1 Reply Last reply Reply Quote 0
              • Spoiler
                Spoiler @Guest last edited by Spoiler

                @cancernameu said in [Legacy][Patched]Customizable Fly (Originally for Cubecraft):

                @LolMC Yes, but

                1. It isn't customizable
                2. Mine is patched in the first place
                3. Whether it is better or not depends on the settings
                4. It wasn't meant to be better, I don't want to invest my time in finding Exploits for a Minecraft Server.
                5. Spoiler is the god of cubecraft flies

                no, mine (stable fly) is fully customizable & u can set custom timer up, i don't make other fly modes custom cuz not able to be customizable (uses different values like 0.39582958) (and these all cubeflies patched lol)

                1 Reply Last reply Reply Quote 0
                • CzechHek
                  CzechHek @Guest last edited by

                  This post is deleted!
                  1 Reply Last reply Reply Quote 0
                  • LolMC
                    LolMC last edited by

                    xd .

                    1 Reply Last reply Reply Quote 0
                    • notautismatall
                      notautismatall last edited by notautismatall

                      Capture.PNG

                      These names are so complicated lmao

                      ? 1 Reply Last reply Reply Quote 0
                      • ?
                        A Former User @notautismatall last edited by

                        @notautismatall I wanted them to be uniform, so I did that.

                        1 Reply Last reply Reply Quote 0
                        • ?
                          A Former User last edited by

                          @CzechHek why delete, not very poggers :axosad:

                          1 Reply Last reply Reply Quote 0
                          • ?
                            A Former User @Guest last edited by

                            @cancernameu not working help

                            1 Reply Last reply Reply Quote 0
                            • 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