Minecraft wiki entry for Spawner_traps, associated text: Magma blocks can be placed around the spawner as a floor, allowing mobs to spawn and then killing them. Items can be collected via minecart with hopper running below the floor, or with water leading to hoppers, making the trap fully automatic.