Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

LiquidBounce Forum

  1. Home
  2. ScriptAPI
  3. how to quene a packet when the packet quene is empty

how to quene a packet when the packet quene is empty

Scheduled Pinned Locked Moved Unsolved ScriptAPI
17 Posts 5 Posters 6.3k Views
  • 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
    A
    Aftery
    wrote on last edited by
    #2

    im sure if you have to ask then youre not improving anything but anyways are you sure you need a queue

    kumri owoK 2 Replies Last reply
    1
    • A Aftery

      im sure if you have to ask then youre not improving anything but anyways are you sure you need a queue

      kumri owoK
      kumri owoK
      kumri owo
      wrote on last edited by
      #3

      @Aftery I want to know when the quene is empty, so I can send another packet, (its a packet fly)

      1 Reply Last reply
      0
      • A
        A
        Aftery
        wrote on last edited by
        #4

        please read my question above

        kumri owoK 1 Reply Last reply
        1
        • A Aftery

          please read my question above

          kumri owoK
          kumri owoK
          kumri owo
          wrote on last edited by
          #5

          @Aftery can u see then if the script is improveable

          kumri owoK 1 Reply Last reply
          0
          • kumri owoK kumri owo

            @Aftery can u see then if the script is improveable

            kumri owoK
            kumri owoK
            kumri owo
            wrote on last edited by
            #6

            @Systemless or can u just tell me what the code is

            kumri owoK 1 Reply Last reply
            0
            • kumri owoK kumri owo

              @Systemless or can u just tell me what the code is

              kumri owoK
              kumri owoK
              kumri owo
              wrote on last edited by
              #7

              @Systemless pls

              1 Reply Last reply
              0
              • A Aftery

                im sure if you have to ask then youre not improving anything but anyways are you sure you need a queue

                kumri owoK
                kumri owoK
                kumri owo
                wrote on last edited by
                #8

                @Aftery just look at my code

                kumri owoK 1 Reply Last reply
                0
                • kumri owoK kumri owo

                  @Aftery just look at my code

                  kumri owoK
                  kumri owoK
                  kumri owo
                  wrote on last edited by [[global:former-user]]
                  #9

                  @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);
                          }
                      });
                  });
                  
                  CzechHekC 1 Reply Last reply
                  0
                  • kumri owoK kumri owo

                    @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);
                            }
                        });
                    });
                    
                    CzechHekC
                    CzechHekC
                    CzechHek
                    wrote on last edited by
                    #10

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

                    kumri owoK 1 Reply Last reply
                    1
                    • CzechHekC CzechHek

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

                      kumri owoK
                      kumri owoK
                      kumri owo
                      wrote on last edited by
                      #11

                      @CzechHek is there a faster one???

                      FaaatPotatoF 1 Reply Last reply
                      0
                      • kumri owoK
                        kumri owoK
                        kumri owo
                        wrote on last edited by
                        #12

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

                        FaaatPotatoF 1 Reply Last reply
                        0
                        • kumri owoK kumri owo

                          @CzechHek is there a faster one???

                          FaaatPotatoF
                          FaaatPotatoF
                          FaaatPotato
                          wrote on last edited by FaaatPotato
                          #13

                          @Systemless increase timer

                          kumri owoK 1 Reply Last reply
                          0
                          • kumri owoK kumri owo

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

                            FaaatPotatoF
                            FaaatPotatoF
                            FaaatPotato
                            wrote on last edited by FaaatPotato
                            #14

                            @Systemless

                            Il just make somebody else convert it

                            enslavement

                            get others to help me âś”

                            1 Reply Last reply
                            1
                            • FaaatPotatoF FaaatPotato

                              @Systemless increase timer

                              kumri owoK
                              kumri owoK
                              kumri owo
                              wrote on last edited by
                              #15

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

                              1 Reply Last reply
                              0
                              • A
                                A
                                Aftery
                                wrote on last edited by
                                #16

                                hey i was right you really dont know what youre doing

                                kumri owoK 1 Reply Last reply
                                1
                                • A Aftery

                                  hey i was right you really dont know what youre doing

                                  kumri owoK
                                  kumri owoK
                                  kumri owo
                                  wrote on last edited by kumri owo
                                  #17

                                  @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
                                  0

                                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                  With your input, this post could be even better đź’—

                                  Register Login
                                  Reply
                                  • Reply as topic
                                  Log in to reply
                                  • Oldest to Newest
                                  • Newest to Oldest
                                  • Most Votes


                                  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
                                  • Login

                                  • Login or register to search.
                                  • First post
                                    Last post
                                  0
                                  • Categories
                                  • Recent
                                  • Tags
                                  • Popular
                                  • Groups