1.3.1 is a major update to Java Edition released on August 1, 2012, which added trading, Adventure mode, new generated structures (jungle and desert pyramids), and new blocks/items including emeralds, book and quills, written books, and tripwire. It also adds ender chests, improved enchanting and splits the Creative inventory into separate sections. This is the first version to use an internal multiplayer server in singleplayer worlds. Initially Mojang were going to add rubies, but replaced those with emeralds. While it was not the only 1.3 release, it was the only one before the snapshots of 1.4.2 started.
A pre-release for 1.3.1 was released on July 30, 2012, though the full release of 1.3.1 is identical to this pre-release.