Is it possible to make mobs always spawn near a custom structure?

For example, if i added a custom tower, can i make it so even if the player kills the mob that spawns there to spawn always?
Continue to help post