Minecraft (Cube) Terrain

first sorry for my english, im from Germany.
I have a Question. I want a terrain like in Minecraft which is generated.
It should be a simple terrain with grass, earth and stones.
However, I somehow failing and wanted to ask for help.
Thanks in advance.

try Google or unity wiki