I am building a slime farm and I am thinking of ways to stop slimes from spawning at certain areas.
Basically above each spawning level I have a 2-block high are where I do my lighting. It looks like this:
To be clear I am not standing on the roof of the spawning area.
There are a lot of spots where slimes can easily spawn, and I do not want them spawning there.
Slimes can spawn in any light level, so having your area well-lit will not stop them.
Additionally, the three sizes of slimes require different amounts of room (i.e. non-opaque blocks like air, signs, torches, etc.) for them to spawn:
- Big Slimes: 3x3x3 block area.
- Small Slime: 3x3x2 block area.
- Tiny Slime: 1x1x2 block area (or 1x1x1 if the upper block is not opaque).
So, another solution is to simply fill in the area as much as possible.