Skip to content
BasaltSoftware
Bedrock 1.26.60

Site colour

Discord
Esc

    ↑↓ moveEnter openEsc close

    Keyboard shortcuts
    Ctrl K
    Search the whole site, from any page
    /
    Jump to the sidebar search, or search the whole site where there isn't one
    Enter
    Open the top search result
    Esc
    Clear the search, or close this panel
    ?
    Show these shortcuts
    Players

    MusicOptions

    Options for Player.playMusic and Player.queueMusic.

    3 properties
    On this page

    Interface in @minecraft/server

    Options for Player.playMusic and Player.queueMusic.

    import type { MusicOptions } from '@minecraft/server';

    optional

    fade?: number;

    Seconds the track fades over, from 0 to 10.

    optional

    loop?: boolean;

    Whether it plays again and again.

    optional

    volume?: number;

    From 0 to 1; default 1.

    Player.playMusic, Player.queueMusic, World.playMusic, World.queueMusic