bedrock-kit
    Preparing search index...

    Interface SoundFile

    A single audio file entry within a sound definition. Entries in sound_definitions.json can be plain path strings or full objects.

    interface SoundFile {
        is3D?: boolean;
        loadOnLowMemory?: boolean;
        name: string;
        pitch?: number;
        stream?: boolean;
        volume?: number;
        weight?: number;
    }
    Index

    Properties

    is3D?: boolean

    Whether this sound is positional (3D).

    loadOnLowMemory?: boolean

    Whether this sound loads on low-memory devices.

    name: string

    Path to the audio file relative to the resource pack root, no extension.

    pitch?: number

    Pitch multiplier. Absent means use the definition-level default.

    stream?: boolean

    Whether this sound streams from disk rather than loading into memory.

    volume?: number

    Relative playback volume. Absent means use the definition-level default.

    weight?: number

    Relative selection weight. Higher = more likely to be chosen.