CCBlueX Forum

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

    Unsolved how to quene a packet when the packet quene is empty

    ScriptAPI
    5
    17
    201
    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.
    • kumri owo
      kumri owo @Aftery last edited by

      @Aftery just look at my code

      kumri owo 1 Reply Last reply Reply Quote 0
      • kumri owo
        kumri owo @kumri owo last edited by mems

        @Systemless

        var script = registerScript({
            name: "PacketFly",
            version: "0.1",
            authors: ["Lucky)#8356"]
        });
        var BlockPos = Java.type('net.minecraft.util.BlockPos');
        var Block = Java.type('net.minecraft.block.Block');
        var Blocks = Java.type('net.minecraft.init.Blocks');
        var C04 = Java.type("net.minecraft.network.play.client.C03PacketPlayer.C04PacketPlayerPosition");
        var blocks = [];
        var jump = 0;
        script.registerModule({
            name: "Packetfly",
            description: "for shit ncp",
            category: "Movement",
            settings: {}
        }, function(module) {
            Math.rad = function(deg) {
                return deg * Math.PI / 180;
            }
            module.on("update", function() {
                var test = 0.2873;
                var playerYaw = Math.rad(mc.thePlayer.rotationYaw);
                var x = -Math.sin(playerYaw) * test;
                var z = Math.cos(playerYaw) * test;
                mc.getNetHandler().addToSendQueue(new C04(mc.thePlayer.posX, mc.thePlayer.posY, mc.thePlayer.posZ, false));
                mc.getNetHandler().addToSendQueue(new C04(mc.thePlayer.posX, mc.thePlayer.posY + 490, mc.thePlayer.posZ, true));
                if (mc.theWorld.isAirBlock(new BlockPos(mc.thePlayer.posX, mc.thePlayer.posY - 1, mc.thePlayer.posZ)) || mc.thePlayer.inWater) {
                    mc.theWorld.setBlockState(new BlockPos(mc.thePlayer.posX, mc.thePlayer.posY - 1, mc.thePlayer.posZ), Blocks.barrier.getDefaultState());
                    blocks.push(new BlockPos(mc.thePlayer.posX, mc.thePlayer.posY - 1, mc.thePlayer.posZ));
                }
            });
            module.on("enable", function() {});
            module.on("disable", function() {
                for (i = 0; i < blocks.length; i++) {
                    mc.theWorld.destroyBlock(blocks[i], false);
                }
            });
        });
        
        CzechHek 1 Reply Last reply Reply Quote 0
        • CzechHek
          CzechHek @kumri owo last edited by

          @Systemless oh shit that's the block fly which doesn't use onBlockBB but ghost blocks

          kumri owo 1 Reply Last reply Reply Quote 1
          • kumri owo
            kumri owo @CzechHek last edited by

            @CzechHek is there a faster one???

            FaaatPotato 1 Reply Last reply Reply Quote 0
            • kumri owo
              kumri owo last edited by

              @lol_-I_know_that_you_see_this i think I will be able too, if not Il just make somebody else convert it

              FaaatPotato 1 Reply Last reply Reply Quote 0
              • FaaatPotato
                FaaatPotato @kumri owo last edited by FaaatPotato

                @Systemless increase timer :axocooler:

                kumri owo 1 Reply Last reply Reply Quote 0
                • FaaatPotato
                  FaaatPotato @kumri owo last edited by FaaatPotato

                  @Systemless

                  Il just make somebody else convert it

                  enslavement

                  get others to help me ✔

                  1 Reply Last reply Reply Quote 1
                  • kumri owo
                    kumri owo @FaaatPotato last edited by

                    @FaaatPotato no ali actually suggested it to me, then I send to much packets

                    1 Reply Last reply Reply Quote 0
                    • A
                      Aftery last edited by

                      hey i was right you really dont know what youre doing

                      kumri owo 1 Reply Last reply Reply Quote 1
                      • kumri owo
                        kumri owo @Aftery last edited by kumri owo

                        @Aftery i never said i knew what I was doing, I know a bit of js, but don’t know any scripting api thingy

                        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