Minecraft wiki entry for Pig, associated text: Pigs spawn in groups of 4 above grass blocks at a light level of 9 or more in any grassy Overworld biome except in snowy plains, meadows and wooded badlands. Individuals rarely may spawn on grass after the world generation.