Skip to content

Scoreboards Lines

fren_gor edited this page Dec 4, 2020 · 7 revisions

Index:


Lines

In scoreboard configs, lines can be declared directly under scoreboard-lines or under lines.

scoreboard-lines:
  - "&cDirectly declared line"
  - textline

lines:
  textline:
    type: TEXT
    text: "&eThis &6is &5a &cline"
    placeholders: false

Directly declared lines support only color codes, no placeholders or animations. To add them, lines must be declared under the lines section of the config as in the example above. Every line has a type, which can be set to TEXT, SLIDING, or STEP. Also, every type require its own fields. See down below for the explanation of every type.

Text line

Text lines contain just a line of text. They support colors and placeholders.

Specific-Line Fields:

Field Default Value Explanation
text "" (Empty line) The text to be displayed.
update-frequency 1 How many scoreboard updates should the line update.
placeholders false If text contains placeholders.

Example:

lines:
  textline1:
    type: TEXT
    text: "&eThis is a line"
  textline2:
    type: TEXT
    text: "&eThis is a %player_name%"
    placeholders: true
  textline3:
    type: TEXT
    text: "&aThis is a %player_ping%"
    update-frequency: 10 # Player ping updates every 10 scoreboard updates
    placeholders: true

Sliding line

Sliding lines are the best for animations. They make letters appearing from the left, until the text is fully shown.

Specific-Line Fields:

Field Default Value Explanation
text "" (Empty line) The text to be displayed.
skip-blanks true true if blanks (spaces) should appear together with the next letter to show (like they are "skipped"), false otherwise.
reverse false true if the letters should appear from the right, false otherwise.
update-frequency 1 How many scoreboard updates should the line update.
placeholders false If text contains placeholders.

Example:

lines:
  slidingline1:
    type: SLIDING
    text: "&eJust sliding!"
    update-frequency: 1
    skip-blanks: true
    reverse: false
    placeholders: false

Step line

Clone this wiki locally