Stat

Data Type

An Object specifying a statistic via a statistic type and an Identifier.

Note

See Minecraft Wiki: Statistic (Resource location) for a list of vanilla statistic types and names.

Fields

Field Type Default Description
type Identifier The type of the statistic.
id Identifier The name of the statistic; may depend on the specified type of the statistic.

Examples

"stat": {
    "type": "minecraft:custom",
    "id": "minecraft:time_since_rest"
}

This example specifies the statistic for tracking the time since the last time a player has rested.

"stat": {
    "type": "minecraft:mined",
    "id": "minecraft:dirt"
}

This example specifies the statistic for tracking how much Dirt blocks a player has mined.