Minecraft – Why are Pigmen spawning on Slabs

minecraft-java-edition

I am working on a Wither Skeleton grinder by wattles, and I have this long tunnel which is 33 blocks wide. It has nether brick slabs as its roof (for decor) but there are Zombie Pigmen always spawning on top!

How can I prevent them from spawning?

Best Answer

Slabs do not prevent mob spawning just by their existence. It depends on their positioning.

See this fine piece of art:

enter image description here

If you use top slabs (yellow) or double slabs it will count as normal block and allows spawning. Using slabs at the bottom half (grey) will prevent mob spawning as it is now considered a transparent block.