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



  • 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



  • Spoilerules cube fly better lol



  • @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 IS THE GOD OF SEX HE ALWAYS SEND ME NUDES OR ASK ME DO I WANT SOME FREE NEKOS



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



  • @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)



  • This post is deleted!


  • xd .



  • Capture.PNG

    These names are so complicated lmao



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



  • @CzechHek why delete, not very poggers :axosad:


Log in to reply