Minecraft wiki entry for Combat, associated text: One solution is to mine a hole only one block wide so that only the harmless tiny slimes can fit in it, but in natural caves and larger mines, larger slimes can become a nuisance as they will spawn in any light level.