Statistics

Statistics is a game feature that allows players to track certain tasks in the form of numerical data.

Statistics are present only in. has no equivalent of statistics in-game, but a part of statistics can be viewed on the Xbox Console Companion app.

Statistics screen
In statistics screen, statistics are divided into three sections:
 * General – The General screen displays a multitude of generic statistics that are listed in the table below.
 * Items – The Items screen displays the number of times different items and blocks have been depleted, crafted, used to destroy blocks, picked up and dropped.
 * Mobs – The Mob screen shows for each different type of mobs how many the player has killed, or the number of deaths caused by those mobs.

The buttons at the top of the Blocks and Items screens can be used to sort the list. The General screen is sorted alphabetically.

Resource location
The resource locations of statistics are unique. They are the only combination resource locations in the game.

The resource locations of statistics are in form of  as well, however, in which   is the resource location of a statistic type in form of ,   is the resource location of a statistic name in form of.

That means, the resource locations of statistics are in form of, in which:
 * is the namespace of statistic type.
 * is the path of statistic type.
 * is the namespace of statistic name.
 * is the path of statistic name.

For both two namespaces, it can be omitted if it is. For example, the following four locations work the same:

Statistic types and names
Statistics are divided into some types. For general statistics, their type is called. For item statistics, their types are,  ,  ,  ,  , and. For mob statistics, their types are  and.

Storage
Statistics are stored in .minecraft/saves//stats/.json ( /stats/.json on servers). They keep track of these stats. The file structure is JSON based and takes the following format:
 * : The root tag.
 * : The data version of the game version the file was last saved in.
 * : The tag that stores the actual statistics.
 * : A compound that saves all statistics of this type.
 * : The value of the statistic specified in this tag's name.

For example, if a player walked only one block (statistic ) and broke an oak log (statistic  ), the player's stats would be:

{  "stats": { "minecraft:mined": { "minecraft:oak_log": 1 },     "minecraft:custom": { "minecraft:walked_one_cm": 100 }  },   "DataVersion": }

Statistics are stored in the stats-change section. All of these fields are empty unless they need updating. For example, until the player jumps, the number of times jumped is not recorded. Distance is stored in centimeters (where one block equals 100 centimeters), and time is stored in ticks (where one tick equals 0.05 seconds).