Resource Pack
Configuration 0x06, client → server.
config · 0x06 · serverbound (client → server)
Reports the status of a pushed resource pack identified by uuid. result is one of successfully loaded, declined, failed download, accepted, downloaded, invalid URL, failed reload, or discarded. The server can kick the client if a required 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
// Client side, after accepting ResourcePackPush.
await client.sendPacket("ResourcePack", {
uuid: "12345678123456781234567812345678",
result: 3, // accepted
});
Use the UUID from ResourcePackPush. Results are 0 successfully loaded, 1 declined, 2 failed download, 3 accepted, 4 downloaded, 5 invalid URL, 6 failed reload, and 7 discarded; send another update as progress changes.
Field aliases listed under Notes are accepted as alternative keys when writing.
Source: src/Core/Versions/776/Packets/config/serverbound/ResourcePack.ts