MCBE
OverviewPacketsPlaySound
ID 0x56 · 86Server → ClientAudio

PlaySound

play-sound.bin
struct PlaySound {
  string                                       Name;
  BlockPos                                     Pos;
  float32 (LE)                                 Volume;
  float32 (LE)                                 Pitch;
  varint32                                     LoopCount;
  bool                                         BypassListenerRangeCheck;
  optional byte + ServerSoundHandle            ServerSoundHandle;
  optional byte + float32                      PlaybackPositionSeconds;
}

Structure

FieldTypeDescription
Namestring
PosBlockPos
Volumefloat32 (LE)
Pitchfloat32 (LE)
Loop Countvarint32
Bypass Listener Range Checkbool
Server Sound Handleoptional byte + ServerSoundHandlePresence flag on the wire; value omitted when absent.
Playback Position Secondsoptional byte + float32Presence flag on the wire; value omitted when absent.

Structure of BlockPos

FieldTypeDescription
Xvarint32
Yvarint32
Zvarint32

Structure of ServerSoundHandle

FieldTypeDescription
Valueuint64 (LE)

Notes

  • No special notes.