The display name for the button associated with this statistic.
Optional
buttonThe optional icon for the button associated with this statistic.
Options for displaying the statistic.
Optional
addCommaSeparators?: booleanWhether to add comma separators to the value when displayed.
Optional
currencyPrefix?: stringA currency symbol to prefix the displayed value with.
Optional
toFixed?: numberThe number of decimal places to display.
Optional
valueDisplayColor?: stringThe color to use for displaying the value.
Optional
valueDisplayTransformer_button?: (value: string) => stringA function to transform the value for display on the button.
Optional
valueDisplayTransformer_statsList?: (value: string) => stringA function to transform the value for display in the stats list.
Optional
getterThe function to get the score for a savedPlayer instance.
The unique identifier for the statistic.
The title of the menu where this statistic is displayed.
Optional
scoreboardThe scoreboard objective for custom statistics.
The function to sort the statistics.
Optional
sortThe type of sorting for customAdvanced statistics.
The display name for the statistic in the stats list.
The type of the statistic, which can be "built-in", "custom", or "customAdvanced".
The type of value for the statistic, which varies based on the type of statistic.
Represents a leaderboard statistic in the player menu.