Minecraft wiki entry for Mob_farm, associated text: Because the system uses water to transport mobs, it cannot capture Endermen, which teleport away when touching water. Therefore, the roof of the cavern should be 2 blocks above the ground to prevent griefing of your farm by Endermen taking blocks.