Scoreboard - Objective Number Format (Expression) — SkBee

Addon: SkBee · Category: Expression · Since: 3.4.0

Syntax

number format of %objective% [for %-entities/strings%]

Description

Represents the way an objective score can be formatted. There are three format types: Blank (nothing there), Fixed (a string of your choosing) and Styled (colored numbers). NOTES: `set` = You can set the format to any string you'd like (fixed) or a json component (styled number). `delete` = Will leave it blank (nothing will be there, just nothing). `reset` = Will reset back to its original format. See [**Json Formatting**](https://minecraft.wiki/w/Raw_JSON_text_format) on McWiki for more details. Requires Paper 1.20.4+

Examples

# Format to a string/text component
set number format of {-obj} to "Look Im Fancy!!"
set number format of {-obj} for player to "Im a lil less fancy!"
set number format of {-obj} for player to mini message from "<rainbow>Im a lil more fancy!"

# Format the number with color/style
set number format of {-obj} for player to "{color:red,bold:true}"
set number format of {-obj} to "{color:""##0DEAE3"",bold:true}"

# Format to blank (will apply the 'blank' format)
delete number format of {-obj}
delete number format of {-obj} for player

# Reset formatting (will remove all formatting)
reset number format of {-obj}
reset number format of {-obj} for player

View source