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

    BossBar

    Basalt's own (PowerNukkitX's DummyBossBar): a bar across the top of one player's screen.

    Class in @minecraft/server

    Basalt’s own (PowerNukkitX’s DummyBossBar): a bar across the top of one player’s screen.

    import { BossBar } from '@minecraft/server';

    read-only

    readonly player: Player;
    Types

    read-only

    readonly title: string;

    read-only

    readonly progress: number;

    read-only

    readonly color: BossBarColor;

    read-only

    readonly isValid: boolean;

    False once removed or the player has left.

    setTitle(title: string | RawMessage): void;
    Parameters
    title
    string | RawMessage
    setProgress(progress: number): void;

    From 0 to 1.

    Parameters
    progress
    number
    setColor(color: BossBarColor): void;
    Parameters
    color
    BossBarColor
    remove(): void;

    Player.addBossBar