> For the complete documentation index, see [llms.txt](https://scripting.breeze.rip/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://scripting.breeze.rip/newgen/api/net/minecraft/network/protocol/game/clientboundsoundpacket.md).

# ClientboundSoundPacket

Plays a sound at a position.

### Extends

* [`Packet`](/newgen/api/net/minecraft/network/protocol/packet.md)

### Properties

#### id

> `readonly` **id**: `string`

The protocol id, e.g. "minecraft:swing". Stable across versions, unlike class names.

**Inherited from**

[`Packet`](/newgen/api/net/minecraft/network/protocol/packet.md).[`id`](/newgen/api/net/minecraft/network/protocol/packet.md#id)

***

#### name

> `readonly` **name**: `string`

The class name, e.g. "ServerboundSwingPacket".

**Inherited from**

[`Packet`](/newgen/api/net/minecraft/network/protocol/packet.md).[`name`](/newgen/api/net/minecraft/network/protocol/packet.md#name)

***

#### pitch

> **pitch**: `number`

The pitch.

***

#### serverbound

> `readonly` **serverbound**: `boolean`

True for packets the client sends, false for ones it receives.

**Inherited from**

[`Packet`](/newgen/api/net/minecraft/network/protocol/packet.md).[`serverbound`](/newgen/api/net/minecraft/network/protocol/packet.md#serverbound)

***

#### sound

> `readonly` **sound**: `string`

The sound id, e.g. "minecraft:entity.player.hurt".

**See**

[Sound ids](https://minecraft.wiki/w/Sounds.json/Java_Edition_values)

***

#### source

> `readonly` **source**: [`SoundSource`](/newgen/api/enum_types/soundsource.md)

The sound category.

***

#### volume

> **volume**: `number`

The volume.

***

#### x

> `readonly` **x**: `number`

The x position, accurate to 1/8 of a block.

***

#### y

> `readonly` **y**: `number`

The y position, accurate to 1/8 of a block.

***

#### z

> `readonly` **z**: `number`

The z position, accurate to 1/8 of a block.
