Minecraft wiki entry for Spectator, associated text: Spectators are not noticed by mobs, and do not trigger mob spawning (including from spawners), nor do they prevent mob despawning, but they are noticed by commands and/or command blocks.