How to make a forge map with good spawns?

How do I make a working spawn and respawning system for a map?