Skip to content
mc-protocol
Esc
↑↓navigate↵open⌘Jpreview
On this page

Stop Sound

Play 0x77, server → client.

play · 0x77 · clientbound (server → client)

Stops sounds playing on the client. flags select whether a source category and/or a specific sound ID are given; with neither, all sounds stop. The server sends it for /stopsound.

Sent by the server, read by the client. Listen for it with client.on("StopSound", (data) => …) on the receiving side.

Fields

Field Type Notes
flags Byte
source Struct
sound Struct

Send it

await client.sendPacket("StopSound", {
  flags: /* Byte */,
  source: /* Struct */,
  sound: /* Struct */,
});

Field aliases listed under Notes are accepted as alternative keys when writing.

Source: src/Core/Versions/776/Packets/play/clientbound/StopSound.ts

Was this page helpful?