Widget settings
Settings every widget has, then the settings of each type.
| Key | Used by | What it does |
|---|---|---|
id | all | Unique name (a-z, 0-9, - and _). |
type | all | image, bar, icons, text, lines, compass, feed or toast. |
anchor, x, y | all | Position, see above. |
layer | all | Drawing order. Higher is drawn on top. |
label | all | Name shown in the player's /hud settings menu. |
toggleable | all | false keeps the widget out of the player menu. Default true. |
temporary | all | true hides the widget until the API shows it (showTemporaryWidget). |
visible | all | Show only when: permission (prefix ! to invert), world (list), gamemode (list), when (a condition). |
src, frames, fps | image | One image, or a list of frames cycled at fps frames per second. |
scale, width, height | image, bar, icons | Scale factor, or an exact size in GUI units. |
smooth | image, bar, icons | Smooth scaling. Off keeps hard pixels (default). |
color | image, bar, icons, text | Tint (#rrggbb or a name). White images keep their own colors. |
background, fill | bar | Images of the frame and of the fill. |
fill-x, fill-y | bar | Where the fill sits inside the background. |
value, max | bar, icons (value) | Expressions with tokens, for example {health} and {max_health}. |
steps | bar | How many fill positions (2 to 100). More steps = smoother, larger pack. |
direction | bar | right, left, up or down: the side the fill grows from. |
full, half, empty | icons | Icon images. Without half the full icon is used; without empty nothing is drawn. |
count, per-icon, spacing | icons | Number of icons, points each one is worth, distance between icons. |
reverse, show-empty | icons | Fill from the right; draw empty icons (default true). |
text | text | MiniMessage text with tokens and placeholders. |
lines, line-height | lines | A list of texts, one per line, and the distance between lines. |
size | text types | Text size 1 to 4. |
align, width | text types | left, center or right inside a fixed width. |
shadow | text types | Text shadow (default true). |
span | compass | Degrees shown across the width. |
max-lines, grow | feed | Lines shown, and up or down. |
panel | text, lines, compass, feed, toast | A background panel behind the widget, drawn by the plugin and sized to the widget width and its lines. It hides with the widget. Keys: style (solid, gradient, pixel, glow, ornate), color, opacity (0-255), border, border-width, radius, accent, pad-x, pad-y. pad-left adds extra room on the left (for a head or icon). |
follow | all | The id of another widget. This widget is hidden when the player hides that one in /hud settings. A widget whose id ends in -bg follows the one before the suffix automatically. |
head (type) | head | The player's face (or player: Name), drawn from their skin as 64 colored squares so it can be any size. scale is the size of one skin pixel in GUI units (4 = a 32x32 head, 1-8), hat shows the second skin layer. Works on every supported version. Skins are downloaded once per player from textures.minecraft.net. |
anim | all | An animation: type (blink on/off, sway left/right by amount units, rainbow tint, pulse tint towards color) and speed (cycles per second). Tints affect uncolored text, images and bars. Image frames animate separately. |
look | bar | A bar drawn by the plugin instead of PNGs: width, height, color, style (glass, neon, wood, ice, spooky, flat) and segments. Add vertical: true for an upright bar. |