Stat sorters
Stat sorters are used to define how module variants are sorted in the holosphere. They can be defined in JSON files within resources/tetra/stat_sorters/
in a resourcepack (not a datapack!).
Stat Sorter
Defines a start sorter, which stat it should be based on, how the preview is formatted and how the sorter is labeled.
Format:typeoptionalstring
There's only one type registered in vanilla tetra, but this can be set if some other mod has registered other stat sorter types.
keystring
The localization key for the sorter, the localized value will be displayed in the sorter list. Probably something along the lines of 'mymod.stats.my_sorter'.
invertedoptionalboolean
If set to true, the sorter will be inverted and lower values will come out on top.
Example:
{
"type": "tetra:default",
"key": "tetra.stats.speed_normalized",
"stat": {
"type": "tetra:attribute",
"attribute": "generic.attack_speed",
"ignoreBase": true,
"ignoreBonuses": true
},
"format": {
"type": "tetra:basic",
"format": "single_decimal"
}
}