Minecraft wiki entry for Spawner_traps, associated text: The three most common types of spawner are for zombies, skeletons, and spiders. In each case, it's fairly trivial to set them up so that you can attack the monsters without retaliation, forming a simple farm for XP and their drops. Sometimes cave spider spawners can be treated similarly, but this is more hazardous. Proceed as follows: