dec: 345 hex: 159 bin: 101011001
Compasses were added in the Seecret Friday Update 9 on September 10, 2010. The compass needle points towards the player's original spawn point, whether in your inventory screen, in chests, lying on the floor, or while holding it in your hand.
You do not actually have to build a compass to use it for navigation. Just place the necessary components into their places on a crafting table and it will point towards your spawn. This can save you some iron and redstone. One can also view the compass under the item statistics page, as long as one has made a compass at some point in the past. This method is useful since it requires no redstone, iron, or a crafting table. It also appears as the icon for the search section in the creative inventory, where it still functions.
Sleeping in a bed will change your respawn point, but will not change the original spawn point and the location the compass points towards.
 As a Crafting Ingredient
When you first create a map, it is blank. On the first right-click, an empty map becomes a map item and gradually begins filling with information.
|1.3.1||12w21a||The Compass can now be purchased from villagers.|
|1.4.2||12w34a||Since mapping system is changed, a compass is used to craft an empty map.|
|Pocket Edition Alpha|
|0.8.0||build 2||Added compasses.|
- The Compass, along with the Clock, is one of the few tools you can stack.
- A Compass can be used no matter where it is placed: in a chest, on the ground, or even held by another person. All compasses are drawn using the same graphic, so they will all point identically.
- A Compass points to the northwest corner of a block, not the middle. This is because the spawn area is centered around this point, not a block (the spawn area has even-numbered dimensions: 20x20). Though that block can still be considered the "spawn point", as in multiplayer the protection area is centered around the block.
- If the spawn location is hacked to a place in the Nether or End, the compass still won't point to the spawn when inside the Nether or End, but in the Overworld the compass will point to the coordinates of the Nether or End spawn.
- Using the command "/setworldspawn" (or the variant where you specify x y z values) to change the worldspawn will change where the compass points to. However you need to quit and return to make the compass notice the change (on single player at least). Note that changing the worldspawn this way seems to make it an exact spot rather than the usual behavior of the x and z values being in a 20x20 range and the y being right above the highest solid point. The very fact that the variant makes you specify x y z instead of just x and z indicates something unusual is happening there.