Creating a villager entity

Is it possible to create an entity which spawns in a custom structure and it has the same functions as a villager but it's humanoid with a player model?
Continue to help post