Minecraft wiki entry for Dungeon, associated text: Because the horizontal range for spawning mobs is 4 blocks from the spawner, it is possible for mobs to be spawned outside the walls of a 5×5 dungeon that is surrounded by air outside the walls.