Skip to content

@minecraft/server


@minecraft/server / PlayerSoundOptions

Interface: PlayerSoundOptions ​

Defined in: @minecraft/server/index.d.ts:24338

Additional options for how a sound plays for a player.

Properties ​

location? ​

optional location?: Vector3

Defined in: @minecraft/server/index.d.ts:24345

Remarks ​

Location of the sound; if not specified, the sound is played near a player.


pitch? ​

optional pitch?: number

Defined in: @minecraft/server/index.d.ts:24351

Remarks ​

Optional pitch of the sound.


volume? ​

optional volume?: number

Defined in: @minecraft/server/index.d.ts:24357

Remarks ​

Optional volume of the sound.