@minecraft/server
    Preparing search index...

    Interface PlayerSoundOptionsBeta

    Additional options for how a sound plays for a player.

    interface PlayerSoundOptions {
        location?: Vector3;
        pitch?: number;
        volume?: number;
    }
    Index

    Properties

    location?: Vector3

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

    pitch?: number

    Optional pitch of the sound.

    volume?: number

    Optional volume of the sound.