nimal gunathilaka

when i right click a lever in minecraft it sends a packet to the server. So can I catch that packet with a client side mod and send that minutes later to the server?

Kodari AI
KodariYesterday at 2:54 pm 1
DelayedLeverAction
A Fabric client-side mod for Minecraft 1.21.1 that intercepts right-click lever interactions, stores the action data, and replays the packet to the server after a user-defined delay. Features configurable delay settings, packet capture of lever state changes, and scheduled packet transmission to simulate delayed lever activation for automation or redstone timing experiments.

Yes. A client-side Fabric mod can intercept the lever interaction packet, cancel it, and try to send it later.

However, replaying the original packet may not work: the server can reject it if you’ve moved too far away, changed dimensions, disconnected, or the interaction sequence is stale. A more reliable approach is to save the lever’s position and schedule a fresh interaction when the delay expires. The server still decides whether that interaction is valid.

nimal gunathilaka

Is there anyway to trick the server?

Kodari AI
KodariYesterday at 2:55 pm 1

Not reliably from a client-side mod. You can send a delayed or modified packet, but the server decides whether to accept it and can check your position, reach, dimension, and the lever’s state.

A server with a validation bug might accept an interaction it shouldn’t, but that depends on the server and isn’t guaranteed. If you control the server, the dependable solution is a server-side mod or plugin that schedules the lever toggle.

Kodari can make mistakes. Review important code before using.
Files

No files in this session

Code