For each version of Minecraft, you can find detailed ore distributions online. These govern the spawn locations and frequency of each ore based on height or y value. For example, in version 1.20 coal can spawn from y=0 to y=320 and is most common in layers 44, 95, and 136. Looking these up can help expedite your search for precious ores and materials.