how to quene a packet when the packet quene is empty
-
im sure if you have to ask then youre not improving anything but anyways are you sure you need a queue
-
@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); } }); }); -
@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); } }); }); -
@Systemless increase timer

-
@lol_-I_know_that_you_see_this i think I will be able too, if not Il just make somebody else convert it
@Systemless
Il just make somebody else convert it
enslavementget others to help me

-
@Systemless increase timer

@FaaatPotato no ali actually suggested it to me, then I send to much packets
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