Minecraft wiki entry for Swamp, associated text: Slimes may spawn in swamps at low light levels exclusively between elevations of Y=50 and Y=70. Their spawn rate is affected by the moon phase, spawning most often during full moon and not spawning at all during new moon.