Resource Pack
Play 0x31, client → server.
play · 0x31 · serverbound (client → server)
Reports the status of a pushed resource pack identified by uuid while in play. result is successfully loaded, declined, failed download, accepted, downloaded, invalid URL, failed reload, or discarded. The server can disconnect the player if a forced pack is declined or fails.
Sent by the client, read by the server. Listen for it with client.on("ResourcePack", (data) => …) on the receiving side.
Fields
| Field | Type | Notes |
|---|---|---|
uuid |
UUID | |
result |
VarInt |
Send it
await client.sendPacket("ResourcePack", {
uuid: /* UUID */,
result: /* VarInt */,
});
Field aliases listed under Notes are accepted as alternative keys when writing.
Source: src/Core/Versions/776/Packets/play/serverbound/ResourcePack.ts