API reference Obsidian.API.Progress
IStatistics interface
Persistent vanilla statistics, addressed by registry identifiers rather than protocol ids.
public interface IStatistics
In Obsidian.API.
Methods
Get(string, string)
int Get(string identifier, string type = "minecraft:custom");Returns zero for a statistic without a saved value. The default type is minecraft:custom.
Increment(string, int, string)
void Increment(string identifier, int amount = 1, string type = "minecraft:custom");Increments a registered statistic, saturating at int.MaxValue. Amount must be nonnegative.