Cancel C03PacketPlayer's js
-
Can't move after canceling, but can make u velocity 0kb & high range killaura
var scriptName = "CancelC03"; var scriptAuthor = "ASKLL"; var scriptVersion = 1.0; var C03PacketPlayer = Java.type("net.minecraft.network.play.client.C03PacketPlayer"); function NoC03() { this.getName = function() { return "CancelC03"; } this.getCategory = function() { return "Misc"; } this.getDescription = function() { return "CancelC03"; } this.onUpdate = function () { } this.onPacket = function (event) { var packet = event.getPacket(); if (packet instanceof C03PacketPlayer){ event.cancelEvent() } } } var NoC03 = new NoC03(); var NoC03Client; function onEnable() { NoC03Client = moduleManager.registerModule(NoC03); } function onDisable() { moduleManager.unregisterModule(NoC03Client); }
-
@ASKLL Here's a version of your plugin written with Core.lib and ScriptAPI v2. Hope you like it!
(script = registerScript({ name: "CancelC03", authors: ["ASKLL"], version: "2.0" })).import("Core.lib"); module = { category: "Misc", description: "Cancels the C03 packet", onPacket: function (e) { p = e.getPacket if (p instanceof C03PacketPlayer) { event.cancelEvent() } } }