Voxel grid system

Hello everyone, I was wondering how I would create a grid system like in minecraft where you would be able to place blocks?

The Great Minecraft Thread has all of the information you could ever want to know about this.