To do this, players have to build a house in Terraria. Unlike in Minecraft ... so that monsters do not spawn in your home, and town NPCs move to you. But if done right, it's quite simple.