The display name for the button associated with this statistic.
OptionalbuttonThe optional icon for the button associated with this statistic.
Options for displaying the statistic.
OptionaladdCommaSeparators?: booleanWhether to add comma separators to the value when displayed.
OptionalcurrencyPrefix?: stringA currency symbol to prefix the displayed value with.
OptionaltoFixed?: numberThe number of decimal places to display.
OptionalvalueDisplayColor?: stringThe color to use for displaying the value.
OptionalvalueDisplayTransformer_button?: (value: string) => stringA function to transform the value for display on the button.
OptionalvalueDisplayTransformer_statsList?: (value: string) => stringA function to transform the value for display in the stats list.
OptionalgetterThe 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.
OptionalscoreboardThe scoreboard objective for custom statistics.
The function to sort the statistics.
OptionalsortThe 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.