mc-status-probe
English | 中文
A zero-dependency, protocol-level Minecraft Java server status probe. Built from scratch following the wiki.vg Server List Ping protocol specification.
Features
- Pure protocol implementation — no Minecraft protocol library dependencies
- Async — built on
tokiofor non-blocking I/O - Type-safe — structured
PingResultwith version, players, MOTD, latency - Configurable — adjustable protocol version, timeout
- Lightweight — only
tokio,serde_json,thiserroras dependencies
Usage
use ping;
use Duration;
async
How It Works
- Opens a TCP connection to the Minecraft server
- Sends a Handshake packet (protocol version + server address + "status" next state)
- Sends a Status Request packet (empty packet)
- Reads and parses the Status Response JSON
- Calculates round-trip latency
Protocol Version Reference
| Minecraft Version | Protocol Version |
|---|---|
| 1.21.11 | 774 |
| 1.21.5 | 767 |
| 1.21 / 1.21.1 | 767 |
| 1.20.5 / 1.20.6 | 766 |
| 1.20.2 / 1.20.4 | 765 |
| 1.19.4 | 762 |
| 1.19.3 | 761 |
| 1.19.1 / 1.19.2 | 760 |
| 1.19 | 759 |
| 1.18.2 | 758 |
Full list: https://wiki.vg/Protocol_version_numbers
License
MIT