How does slime spawning work?

How does slime spawning work? Spawning. Slimes spawn in the Overworld in specific “slime chunks” below layer 40, regardless of light levels. They can also spawn in swamp biomes between layers 51 and 69 (inclusive) in light levels of 7 or less, with these layers tending to be near the surface.

Spawning. Slimes spawn in the Overworld in specific “slime chunks” below layer 40, regardless of light levels. They can also spawn in swamp biomes between layers 51 and 69 (inclusive) in light levels of 7 or less, with these layers tending to be near the surface.