According to the Minecraft wiki: no, animals cannot spawn underground. newly generated chunks will contain mobs... They will always spawn on the highest available block in a column i.e. the one that can see the sky. For an animal to spawn on it, this block must be opaque and the two blocks above it must be transparent.
Answers & Comments
Explanation:
According to the Minecraft wiki: no, animals cannot spawn underground. newly generated chunks will contain mobs... They will always spawn on the highest available block in a column i.e. the one that can see the sky. For an animal to spawn on it, this block must be opaque and the two blocks above it must be transparent.
Answer:
cave spider in mineshafts
they will not spawn on surface
they will spawn in mineshafts with help of spawners