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';Properties
Section titled “Properties”player
Section titled “player”read-only
readonly player: Player;Types
read-only
readonly title: string;progress
Section titled “progress”read-only
readonly progress: number;read-only
readonly color: BossBarColor;Types
isValid
Section titled “isValid”read-only
readonly isValid: boolean;False once removed or the player has left.
Methods
Section titled “Methods”setTitle
Section titled “setTitle”setTitle(title: string | RawMessage): void;Parameters
titlestring | RawMessage
Types
setProgress
Section titled “setProgress”setProgress(progress: number): void;From 0 to 1.
Parameters
progressnumber
setColor
Section titled “setColor”setColor(color: BossBarColor): void;Parameters
colorBossBarColor
Types
remove
Section titled “remove”remove(): void;