Rather than preventing the use of spawn eggs entirely, could spawn eggs instead spawn mobs that do not have functionality, similar to armor stands? To prevent abuse of this feature, a limit could be implemented per build area of the amount of mobs that can be spawned.