Minecraft Wiki
Advertisement

Statistics are a system that were added to Minecraft in the 1.5 update. Notch talked about statistics (along with Achievements) on his March 18th Blog Post.

Notchface

Achievements will NOT be chores like “cut down 10000 trees”, but rather challenges like “ride a pig off a cliff”. Stats, however, will be used to keep track of how many trees you have cut down. The long term plan is to show achievements and stats from the profile page on minecraft.net as well, in case you want to brag.

Notch on his blog[1]


Saving of stats online was considered for the 1.6 update, but was considered too error prone at that point [2]

The statistics window is divided into three sections: General, Blocks and Items. The General screen shows a multitude of generic statistics which are listed in the table below. The Blocks screen shows the number of times different blocks have been crafted, used(placed) and mined. The Items screen shows the number of times different items have been depleted, crafted and used to destroy blocks. The buttons at the top of the Blocks and Items screens can be used to sort the list.

Statistic name Description Stat ID
Times played The number of times Minecraft has been loaded. 1002
Worlds played The number of worlds that have been created.
Saves loaded The number of times a world has been loaded. 1000
Multiplayer joins The number of times a multiplayer server was successfully joined.
Games quit The number of times "Save and quit to title" has been clicked.
Minutes Played The total amount of time played. This is not necessarily displayed in minutes - it displays in seconds, minutes, hours or days whichever makes the most sense. If the game is paused this number ceases to increase. If "5.50 h" is displayed this means that you have played for 5 hours and 30 minutes (not 50 minutes). 1100
Distance Walked The total distance walked. 2000
Distance Swam The total distance swam. Wading through water also increases this number. It does not include vertical distance from bouncing in water.
Distance Fallen The total distance fallen, excluding jumping. If the player falls more than one block, the entire jump is counted.
Distance Climbed The total distance traveled up ladders.
Distance Flown Distance traveled upwards and forwards at the same time, while more than one block above the ground. 2004
Distance Dove The total distance you have walked underwater.
Distance by Minecart The total distance traveled by minecarts.
Distance by Boat The total distance traveled by boats.
Distance by Pig The total distance traveled by pigs via saddles.
Jumps The total number of jumps performed. 2010
Items Dropped The number of items dropped by the player. This includes items dropped upon death. 2011
Damage Dealt The amount of damage the player has dealt in half-hearts. This does not include self-inflicted damage via arrows.
Damage Taken The amount of damage the player has taken in half-hearts.
Number of Deaths The number of times the player has died.
Mob Kills The number of mobs the player has killed.
Player Kills The number of players the player has killed (on PvP servers). Indirect kills do not count.
Fish Caught The number of fish caught.

Storage

Statistics are stored in .minecraft/stats/stats_username_unsent.dat. They keep track of these stats, as well as achievements earned. The file structure is like so:

    {
      "user":{
    	"name":"xxxxxxxx",
    	"sessionid":"local"
      },
      "stats-change":[
    	{"id":value},
    	{"id":value},
      ],
      "checksum":"xxxxxxxxxxxxxxxx"
    }

Statistics are stored in the stats-change section. The checksum appears to be a standard md5 checksum, but the data used to generate it is unknown. If any information is changed and the checksum is incorrect, all stats will be deleted by Minecraft. All of these fields are empty unless they need updating. For example, until you jump, the number of times you've jumped will not be recorded. Distance is stored in centimeters, and time is stored in ticks (where one tick equals 0.052 seconds). An example entry for Times Played:

    {"1002",4}

This section also stores achievements and block information. Achievements have an ID based on their location in Achievements plus 5242880. For example, 5242880 is "Taking inventory", and 5242882 is "Benchmarking". The value indicates how many times that achievement has been earned (the "Achievement Get" message is not displayed every time). Blocks are saved in a similar fashion, but the ID is 16777216 plus the block ID. The value is the number of times that block has been mined.

Dark Oak Sapling
This article is a stub. 
You can help by expanding it.

Statistics Screenshots

Trivia

  • The statistics ignore metadata. As such, all types of wood, wool, saplings, and dye will be counted as the same item. Coal and charcoal are also treated as the same.
  • Firing an arrow from a bow does not count as using it.
  • "Times Crafted" includes smelting, such as smelting wood for charcoal.
  • On the items tab, there is no tooltip on Ink sac. This is because the Ink sac is the damage value 0 of the dye ID (read the first trivia).
  • The "Times Crafted" symbol is a hammer and anvil. In the actual game, crafting is done with a Crafting Table.
  • If you look at the icons for the compass and the clock in Statistics, the icons will show you the direction to where you spawned and the current time it was when you paused the game.

Bugs

  • Statistics do not record (since their introduction) item creation when you shift + click from the crafting or furnace GUI.
  • In Beta 1.8.1, Long Grass looks like a dark green Dead Shrub when viewed in the statistics list.
  • When in multiplayer a player kills a other player it will not be added to the players "Player Kills" Statistics

References

Advertisement