Experimental

An early preview: docs, the API and the dashboard may change or break.

Report a problem

ui.HudElement

One element of a HUD in a region of its layout: text in a HUD font, coloured by its MiniMessage and otherwise unstyled, or one cell of a HUD image; x and y are pixels inside the region.

type HudElement = { region: string, text: ui.Live<types.MiniMessage>, font: types.ImageType | string, x: number?, y: number?, align: ("start" | "center" | "end")?, slot: number? } | { region: string, sprite: ui.Live<types.ImageType | string>, cell: number?, x: number?, y: number?, align: ("start" | "center" | "end")?, slot: number? }