Cooldown
Play 0x16, server → client.
play · 0x16 · clientbound (server → client)
Applies a use cooldown to all items in the cooldown group cooldownGroup for cooldownTicks ticks (for example after using an ender pearl or chorus fruit). A value of 0 removes the cooldown. The client greys out the item overlay and blocks use until the cooldown ends.
Sent by the server, read by the client. Listen for it with client.on("Cooldown", (data) => …) on the receiving side.
Fields
| Field | Type | Notes |
|---|---|---|
cooldownGroup |
String | also group |
cooldownTicks |
VarInt | also ticks |
Send it
await client.sendPacket("Cooldown", {
cooldownGroup: /* String */,
cooldownTicks: /* VarInt */,
});
Field aliases listed under Notes are accepted as alternative keys when writing.
Source: src/Core/Versions/776/Packets/play/clientbound/Cooldown.ts