Skip to content

Scoreboard files ​

Every file in plugins/FeatherBoard/scoreboards/ is one scoreboard. The file name, without .yml, is the board name. A board called myboard.yml is therefore selected with /fb show myboard and assigned through featherboard.group.myboard.

text
plugins/FeatherBoard/scoreboards/
├── default.yml           -> board "default"
├── myboard.yml           -> board "myboard"
└── images/
    └── logo.png          -> file: "images/logo.png"

Minimal board ​

yaml
title:
  frames:
    - '&e&lMy Server'
  interval: 20

lines:
  header:
    frames:
      - '&8&m--------------------'
    interval: 100
  player:
    frames:
      - '&7Player: &f%player_name%'
    interval: 20
  online:
    frames:
      - '&7Online: &a%server_online%'
    interval: 20

Reload an existing board with /fb reload myboard, or add a new file with /fb reload -all.

Board structure ​

A scoreboard file can contain these sections:

SectionRequiredPurpose
titleNoThe title line. If omitted, the first line under lines becomes the title.
linesYesThe scoreboard lines, as a named map or a list.
settingsNoReusable values and behaviour switches for this board.
imagesNoPNG/JPG images rendered through a resource pack.
fontsNoTrueType fonts rendered through a resource pack.
script-preNoJavaScript executed before the lines are loaded.
script-postNoJavaScript executed after the lines are loaded.
compile-script-preNoJavaScript executed before the lines are parsed.
compile-script-postNoJavaScript executed after the lines are parsed.

The order of the sections in the file does not matter, but the order of the lines does: the first line is the top line of the scoreboard. A board supports up to 15 lines plus a separate title.

Lines ​

Named lines are easy to find and reorder. The order of the YAML keys is the order on the scoreboard.

yaml
lines:
  header:
    frames:
      - '&8&m--------------------'
    interval: 100
  balance:
    frames:
      - '&7Balance: &a$%vault_eco_balance_formatted%'
    interval: 20
  footer:
    frames:
      - '&8&m--------------------'
    interval: 100

List lines ​

You can also define lines as a YAML list. This is useful when you generate boards with a script, but names make maintenance easier.

yaml
lines:
  - frames:
      - '&8&m--------------------'
    interval: 100
  - frames:
      - '&7Balance: &a$%vault_eco_balance_formatted%'
    interval: 20
  - frames:
      - '&8&m--------------------'
    interval: 100

Do not mix formats

Use either a named map or a list for one board. Mixing the two causes the board to fail to load.

Empty spacer lines ​

Give a line an empty frame list to create a spacer:

yaml
lines:
  spacer:
    frames: []
    interval: 100

Frames and intervals ​

Each line is an animation made of one or more frames. FeatherBoard advances to the next frame every interval ticks. There are 20 ticks in a second.

yaml
lines:
  news:
    frames:
      - '&7Welcome to the server!'
      - '&7Read the rules with &f/rules'
      - '&7Join our community on Discord'
    interval: 40
    random: false
KeyDefaultDescription
framesrequiredThe animation frames. text is accepted as a legacy alias.
interval20Ticks between frames. 1 is very fast (20 FPS); 100 is five seconds.
randomfalsePick a random frame instead of following the list.

A line with a single frame does not animate. Use a high interval for static content, or leave interval at its default.

Keep text steady

A scoreboard's width is determined by its longest line. If a scrolling line is longer than the header and footer, the whole board width can change while it scrolls. Give the header or footer a line at least as long as the scroll width.

Frame metadata ​

Metadata is placed at the start of a frame between pipes. It controls the score, visibility and font of that specific frame. You can chain several options:

yaml
frames:
  - '|hide|This frame is invisible'
  - '|show|This frame is visible'
  - '|visible:false|Also invisible'
  - '|static|A longer line that should not animate'
  - '|font:featherboard:roboto|Custom font'
  - '|score:42|A custom red score'
  - '|42|The same custom score'
MetadataEffect
|score:NUMBER| or |NUMBER|Forces the red score number for that frame.
|hide|Hides the line while this frame is shown.
|show|Shows the line again. Useful together with hide.
|visible:true| / |visible:false|Shows or hides the line directly.
|static|Forces a static line. Advanced and only useful in specific designs.
|font:featherboard:<id>|Uses a font defined in this board.
|font:minecraft:default|Uses the vanilla font.
|disabled|Skips this frame entirely when loading.

Combine options by separating them with a single pipe:

yaml
- '|score:12|visible:true|&7Coins: &e120'

Dynamic scores

The score metadata only accepts a number. Placeholders and arbitrary strings are not valid after score:. Use hide-score: true in the plugin config if you do not want numbers at all.

Settings ​

Settings are reusable values for a single board. They are replaced wherever the line contains {{ setting:key }}. Keys may contain letters, numbers and hyphens (color-light works; color_light does not).

yaml
settings:
  label-color: '&e'
  value-color: '&f'
  priority: 10
  assigning: 'PERMISSION'

lines:
  player:
    frames:
      - '{{ setting:label-color }}&lPlayer: {{ setting:value-color }}%player_name%'

Behaviour settings ​

Some keys are read by the plugin itself:

SettingDefaultDescription
priority0Higher priority wins when multiple boards are assigned to a player.
assigningglobalOverrides the global assignment method for this board.
fallbacknoneBoard to show if the player rejects the resource pack (for image boards).
enabledtrueSet to false to disable this board.
include-in-debugtrueInclude the board in /fb debug output.
reset-on-overridetrueReset player animation state when the board is shown again.
prevent-overridefalsePrevent other plugins from replacing this board.

Settings with a list or object value work in scripts but are not usable as {{ setting:key }} placeholders. Only scalar values render as text.

Scripts ​

FeatherBoard runs board scripts with the Nashorn JavaScript engine. This is useful for calculated settings, conditional lines and advanced animations.

ScriptRuns
script-preBefore the lines are loaded. Great for creating settings.
script-postAfter the lines are loaded. Great for changing or adding lines.
compile-script-preBefore frames are parsed, at board load.
compile-script-postAfter frames are parsed, at board load.

Scripts receive:

VariableTypeDescription
boardorg.featherboard.api.scoreboard.ScoreboardThe board being built.
settingsMap<String, Object>The board's settings, writable through the board metadata.
scoreboardConfigFileStringAbsolute path to the board file.
scoreboardsDirectoryStringAbsolute path to the scoreboards folder.

Example: create a setting based on another setting.

yaml
settings:
  show-health: true
script-pre: |
  if (settings['show-health'] == true) {
      board.getMeta().setSetting("health-line", "");
  } else {
      board.getMeta().setSetting("health-line", "|disabled|");
  }

lines:
  health:
    frames:
      - '{{ setting:health-line }}&7Health: &c%player_health%'
    interval: 20

Scripts can be disabled

For security, set tweaks.trust-scoreboard-scripts: false in config.yml to stop all board scripts and custom effects. Only install boards from authors you trust.

Inline scripts ​

A frame can also execute a short script with <% ... %>. The result replaces the tag. Inline scripts share the board script context (board, settings, paths), not the player context — use placeholders for per-player data.

yaml
frames:
  - '&7Board: &f<% board.getName() %>'
  - '&7Label: &f<% settings["label-color"] %>'

Images ​

Images require a resource pack. FeatherBoard generates and uploads one automatically when resource-pack.enabled is true. Only PNG and JPG are supported; GIF and SVG are not.

yaml
images:
  - identifier: "heart-icon"
    url: "https://featherboard.org/images/default/heart-icon.png"
    height: 16
    width: 16
    x-offset: 0
    y-offset: 0

  - identifier: "logo"
    file: "images/logo.png"   # relative to plugins/FeatherBoard/scoreboards/
    height: 40
KeyDefaultDescription
identifierrequiredName used by {{ image:<identifier> }}. Case-insensitive; use letters, numbers and hyphens.
urlone ofDownload the image from a URL.
fileone ofLoad a file relative to the scoreboards folder.
heightoriginalScale to this height in pixels. One scoreboard line is 16 px.
widthoriginalScale to this width. Set both to stretch; set one to keep the aspect ratio.
x-offset0Horizontal offset in pixels.
y-offset0Vertical offset in pixels.

Use an image in a frame:

yaml
lines:
  header:
    frames:
      - '{{ image:scroll-left }}{{ offset:-1 }}<multiply times="20">{{ image:scroll-middle }}{{ offset:-1 }}</multiply>{{ image:scroll-right }}'
    interval: 100
  player:
    frames:
      - '{{ image:heart-icon }} &f%player_name%'
    interval: 20

Offsets ​

{{ offset:<pixels> }} inserts a blank glyph and moves the rest of the line left or right. The value can be between -256 and 256.

yaml
- '{{ offset:-200 }}{{ image:heart-icon }}'

Text before an image is loaded ​

Images are extracted from the resource pack and assigned a private-use character. If a player has not loaded the pack, they see the fallback board (if configured) or an empty gap. The default images board demonstrates this:

yaml
settings:
  fallback: "default"

The default icons are available in the plugin:

Heart iconStar iconScroll left iconScroll middle iconScroll right icon

Fonts ​

Custom fonts also require the resource pack. Place a .ttf file in the scoreboards folder or download it from a URL.

yaml
fonts:
  - identifier: "roboto"
    # file: "Roboto-Regular.ttf"
    url: "https://fonts.gstatic.com/s/roboto/v15/7MygqTe2zs9YkP0adA9QQQ.ttf"
    size: 16
    shift-x: 0
    shift-y: 0
    oversample: 2.0
KeyDefaultDescription
identifierrequiredName used in the font metadata.
url / fileone ofFont source.
size16Font size in pixels.
shift-x, shift-y0Nudge the rendered glyphs.
oversample1.0Rasterisation quality. Higher is sharper but heavier.

Apply a font to a frame:

yaml
lines:
  player:
    frames:
      - '|font:featherboard:roboto|%player_name%'
      - '|font:minecraft:default|%player_name%'
    interval: 20

Use minecraft:default for the vanilla font. featherboard:default uses FeatherBoard's built-in font.

Resource pack required

Custom fonts and images do not work without the resource pack. Test with a clean client before publishing a board that depends on them.

Complete example ​

This board combines a title, settings, a header, placeholders, a scroll and a footer:

yaml
settings:
  label-color: '&e'
  value-color: '&f'
  priority: 10
  assigning: 'PERMISSION'

title:
  frames:
    - '&c&lFeather&e&lBoard'
    - '&e&lFeather&c&lBoard'
  interval: 30

lines:
  header:
    frames:
      - '&8&m--------------------------'
    interval: 100
  player:
    frames:
      - '{{ setting:label-color }}&lPlayer: {{ setting:value-color }}%player_name%'
    interval: 20
  balance:
    frames:
      - '{{ setting:label-color }}&lBalance: &a$%vault_eco_balance_formatted%'
    interval: 20
  spacer:
    frames: []
    interval: 100
  news:
    frames:
      - '<scroll width="28">&7Welcome! Read &f/rules &7before you start.</scroll>'
    interval: 2
  online:
    frames:
      - '{{ setting:label-color }}&lOnline: &a%server_online%'
    interval: 20
  footer:
    frames:
      - '&8&m--------------------------'
    interval: 100

Common mistakes ​

The board has no lines

lines: must contain a map or a list. Check the indentation; a single missing space can make Bukkit read the lines as an empty section.

The first line is missing

If you use a separate title: section, the title is not taken from lines. If you do not use title:, the first line under lines is the title.

The board is wider than expected

The width is defined by the longest line. Images and scrolls can be wider than they look in the config. Add a long header/footer or reduce the scroll width.

Images are invisible

Confirm the resource pack was accepted, the identifier matches exactly, and {{ image:... }} uses double braces. A missing image also logs an error on reload.

Released under a proprietary license. FeatherBoard is not affiliated with Mojang or Microsoft.