Minecraft wiki entry for Dirt, associated text: When a dirt block is adjacent to a grass block and is exposed to a light level of at least 4, it is eventually converted into a grass block at random intervals.