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
| Field | Type | Description |
|---|---|---|
| Name | string | |
| Pos | BlockPos | |
| Volume | float32 (LE) | |
| Pitch | float32 (LE) | |
| Loop Count | varint32 | |
| Bypass Listener Range Check | bool | |
| Server Sound Handle | optional byte + ServerSoundHandle | Presence flag on the wire; value omitted when absent. |
| Playback Position Seconds | optional byte + float32 | Presence flag on the wire; value omitted when absent. |
Structure of BlockPos
| Field | Type | Description |
|---|---|---|
| X | varint32 | |
| Y | varint32 | |
| Z | varint32 |
Structure of ServerSoundHandle
| Field | Type | Description |
|---|---|---|
| Value | uint64 (LE) |
Notes
- No special notes.
