I know that in spawners there's an option to despawn related monsters or NPCs after some time, but maybe there's an option to despawn them only when they are not on the screen (like, some specified distance from any player?)
 
Back