I need help with JavaScript in liquidbounce b100
Unsolved
Scripts
-
Why can't liquidbounce b100 call packet event? It doesn't work and outputs many errors, such as TypeError: null has no such function "get packet". I'm sure there are many other errors, but I don't understand. How can I call packet event now?
/// api_version=2
var script = registerScript({
name: "TestScript",
version: "1.0",
authors: ["test"]
})var C03PacketPlayer = Java.type("net.minecraft.network.play.client.C03PacketPlayer")
script.registerModule({
name: "TestScript",
description: "test",
category: "Combat"
}, function(module) {
module.on("packet", function(e) {
try {
if (e.getPacket() instanceof C03PacketPlayer) {
e.cancelEvent()
}
} catch (err) {
Chat.print(err);
}
})
})
1/1