This project behaves simularly to a game called Terraria, and is an idea that I have been thinking about making for a long time. The basic idea is that you can mine and gather resources that can be placed to build structures.
Here is a download link for the .JAR file.
Here is a download link for the project file, including the source code