Stat sorters
Stat sorters are used to define how module variants are sorted in the holosphere. They can be defined in JSON files within assets/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:There's only one type registered in vanilla tetra, but this can be set if some other mod has registered other stat sorter types.
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'.
If set to true, the sorter will be inverted and lower values will come out on top.
Optional suffix appended to the formatted stat value in the sorting preview label.
{
"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"
}
}