Cant find problem in my code
Solved
ScriptAPI
-
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.sendQueue
edit: you may also define player
var player = mc.thePlayer
i also highly encourage you to get familiar with the basics of javascript and the LiquidBounce scripting environment
-