How can I use cheats to summon a villager in Minecraft? (Then have it make more?)

Solution 1:

You can try /give <Your Username/@p/@a/@r> 383 1 120, which will give you a spawn egg. otherwise use the /summon Villager ~ ~ ~ command to spawn one at your current location.

You can enter this command into your chat box (provided cheats is turned on) in your Single-player world by pressing / or T.

Solution 2:

Okay. So if I want to be able to go into Survival but be able to still break blocks and place them, I need to change it to gamemode 0, not gamemode 2. This way, I can get a spawn egg and make more villagers, but still be able to play survival.