Cant find problem in my code
-
Cant find problems
but it wont work/// api_version=2 var script = registerScript({ name: "Bowbomb", version: "0.1", authors: ["v4peu5er"] }); var C04PacketPlayerPosition = Java.type("net.minecraft.network.play.client.C03PacketPlayer.C04PacketPlayerPosition"); var C0BPacketEntityAction = Java.type("net.minecraft.network.play.client.C0BPacketEntityAction"); script.registerModule({ name: "Bowbomb", description: "Makes arrows superfast", category: "combat" }, function (module) { module.on("enable", function() { netHandler.addToSendQueue(new C0BPacketEntityAction(mc.player, C0BPacketEntityAction.Action.START_SPRINTING)); for (i = 0; i < 128; i++) { netHandler.addToSendQueue(new C04PacketPlayerPosition(player.posX, player.posY - 0.0000000001, player.posZ, true)); netHandler.addToSendQueue(new C04PacketPlayerPosition(player.posX, player.posY + 0.0000000001, player.posZ, false)); } }); });Hopefully im not going to be low iq this time
-
Cant find problems
but it wont work/// api_version=2 var script = registerScript({ name: "Bowbomb", version: "0.1", authors: ["v4peu5er"] }); var C04PacketPlayerPosition = Java.type("net.minecraft.network.play.client.C03PacketPlayer.C04PacketPlayerPosition"); var C0BPacketEntityAction = Java.type("net.minecraft.network.play.client.C0BPacketEntityAction"); script.registerModule({ name: "Bowbomb", description: "Makes arrows superfast", category: "combat" }, function (module) { module.on("enable", function() { netHandler.addToSendQueue(new C0BPacketEntityAction(mc.player, C0BPacketEntityAction.Action.START_SPRINTING)); for (i = 0; i < 128; i++) { netHandler.addToSendQueue(new C04PacketPlayerPosition(player.posX, player.posY - 0.0000000001, player.posZ, true)); netHandler.addToSendQueue(new C04PacketPlayerPosition(player.posX, player.posY + 0.0000000001, player.posZ, false)); } }); });Hopefully im not going to be low iq this time
-
maybe define netHandler
var netHandler = mc.thePlayer.sendQueueedit: you may also define player
var player = mc.thePlayeri also highly encourage you to get familiar with the basics of javascript and the LiquidBounce scripting environment
-
V v4peu5er has marked this topic as solved on
-
@somedudeyouveneverheardof
thx
i just started learning javascrpt and lb api a few days ago. Im pretty unfamiliar with java before cuz i mainly use python.
anyway thx for ur answer
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