Minecraft wiki entry for Lava, associated text: During world generation, lava replaces air blocks generated in caves and ravines between Y=-55 and Y=-63. Lava does not replace air blocks inside mineshafts, dungeons, or strongholds.