promotional bannermobile promotional banner

Thwack

Client-side PvP hit detection with server-side lag compensation. Your hits land where you saw them.
Back to Files

thwack-1.0.0.jar

File namethwack-1.0.0.jar
Uploaded
Sep 13, 2026
Downloads
6
Size
48.4 KB
Mod Loaders
Fabric
File ID
8873791
Type
R
Release
Supported game versions
  • 1.21.1

Curse Maven Snippet

Fabric

modImplementation "curse.maven:thwack-1694708:8873791"

Learn more about Curse Maven

What's new

First release.

- Client-side hit detection: the aim ray is re-cast at click time against the
  rendered (interpolated) hitbox instead of the tick position.
- Instant impact prediction: sound, hurt flash, crit particles and knockback
  play locally, with the server's duplicate sound swallowed on arrival.
- Server-side lag compensation: one hitbox snapshot per player per tick for
  one second; hits are validated against the position the attacker saw,
  within min(maxRewindMs, ping + 100) ms.
- Vanilla first: a hit a vanilla server would accept is always accepted.
  Damage stays server-authoritative.
- F6 diagnostic panel, F7 live toggle, /thwack command, JSON config both sides.

Beta: the rewind path has not yet been observed under real latency.

This mod has no additional files