Does anyone know why it doesnt work?
-
help
var script = registerScript({ name: "xddd", version: "0.0.0", authors: ["lol"] }); script.registerModule({ name: "xddd", category: "Fun", description: "" }, function (module) { module.on("packet", function(e) { var packet = e.getPacket() if (packet instanceof C0BPacketEntityAction && packet.getAction() == C0BPacketEntityAction.Action.OPEN_INVENTORY) { Chat.print("[DEBUG] C0BPacketEntityAction.Action.OPEN_INVENTORY"); e.cancelEvent(); } }); }); var C0BPacketEntityAction = Java.type('net.minecraft.network.play.client.C0BPacketEntityAction'); -
help
var script = registerScript({ name: "xddd", version: "0.0.0", authors: ["lol"] }); script.registerModule({ name: "xddd", category: "Fun", description: "" }, function (module) { module.on("packet", function(e) { var packet = e.getPacket() if (packet instanceof C0BPacketEntityAction && packet.getAction() == C0BPacketEntityAction.Action.OPEN_INVENTORY) { Chat.print("[DEBUG] C0BPacketEntityAction.Action.OPEN_INVENTORY"); e.cancelEvent(); } }); }); var C0BPacketEntityAction = Java.type('net.minecraft.network.play.client.C0BPacketEntityAction');@skidma Action cannot be like Action.OPEN_INVENTORY.
use packet.getAction() == "OPEN_INVENTORY" instead -
@skidma Action cannot be like Action.OPEN_INVENTORY.
use packet.getAction() == "OPEN_INVENTORY" instead@idk-my-name This doesnt work and why C0BPacketEntityAction.Action.START_SPRINTING works
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