Minecraft wiki entry for Mob_farm, associated text: The whole room is closed by a roof to create a minimal light level. A roof height of 3 allows Endermen to spawn, while a roof height of 1 would restrict the farm to spiders.