Packet 86
PlaySoundPacket
This packet is only used via command or script event. This is for 3rd party content.
HeaderID 86varuint
0Namestring · variable
1PositionBlockPos · variable
2Volumefloat · 4 bytes
3Pitchfloat · 4 bytes
4Loop Countvarint32 · variable (up to 5 bytes)
5Bypass Listener Range Checkboolean · 1 byte
6Server Sound HandleServerSoundHandle · variable
7Playback Position Secondsfloat · 4 bytes
8Start Delay Secondsfloat · 4 bytes
Serialized fields
9 top-level fields- 0Name
string - 2Volume
float - 3Pitch
float - 4Loop CountCompression
varint32 - 5Bypass Listener Range Check
boolean 6Server Sound HandleoptionalServerSoundHandle
- 0Server Sound Handle
uint64
- 8Start Delay SecondsoptionalOptional delay before the playback timeline starts, in seconds. If this is empty, playback starts when ready. If specified, playback will be delayed by the given amount and if the sound isn't loaded yet, time will progress and the audio will seek to the correct position once it is ready.
float
Changelog
Stable releases
Changes between stable protocol releases.
- Released
- Protocol
- 2193
Packet
1 entryChanged 1
- Added field
Bypass Listener Range Check(typeboolean). - Moved
Server Sound Handlefrom field 5 to 6. - Added field
Playback Position Seconds(typefloat).
All builds
Changes between consecutive stable releases and preview builds.
- Released
- Protocol
- 2250
- Previous build
- 1.26.70-preview.22
Packet
1 entryChanged 1
- Added field
Start Delay Seconds(typefloat).
- Released
- Protocol
- 2187
- Previous build
- 1.26.50-preview.24
Packet
1 entryChanged 1
- Added field
Bypass Listener Range Check(typeboolean). - Moved
Server Sound Handlefrom field 5 to 6. - Added field
Playback Position Seconds(typefloat).