← Packet index

Packet 86

PlaySoundPacket

This packet is only used via command or script event. This is for 3rd party content.

Packet datagramWire order
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
  1. 0Namestring
  2. 1PositionBlockPos
    1. 0XCompressionvarint32
    2. 1YCompressionvarint32
    3. 2ZCompressionvarint32
  3. 2Volumefloat
  4. 3Pitchfloat
  5. 4Loop CountCompressionvarint32
  6. 5Bypass Listener Range Checkboolean
  7. 6Server Sound HandleoptionalServerSoundHandle
    1. 0Server Sound Handleuint64
  8. 7Playback Position Secondsoptionalfloat
  9. 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 entry

Changed 1

PlaySoundPacket3 changes · ID 86
  • Added field Bypass Listener Range Check (type boolean).
  • Moved Server Sound Handle from field 5 to 6.
  • Added field Playback Position Seconds (type float).