Statistics

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

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 types 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.

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

Storage
Statistics are stored in .minecraft/saves/world name/stats/uuid.json (world name/stats/uuid.json on servers). They keep track of these stats. The file structure is JSON based; it looks like this:

{"stat.xxxxxx":value,"stat.xxxxxx":value,"stat.xxxxxx":value,...}

Statistics are stored in the stats-change section. All of these fields are empty unless they need updating. For example, until you jump, the number of times jumped is not recorded. Distance is stored in centimeters, and time is stored in ticks (where one tick equals 0.05 seconds). An example entry for Games Quit:

{"stat.leaveGame":4}

Trivia

 * "Times Crafted" includes smelting, such as smelting log for charcoal.

Server Statistic
To consult the evolution of connected player on a minecraft server, you can refer to Minecraft-Stats.