In this Minecraft commands tutorial, I'll show you how to summon villagers with specified trades, professions, levels, and types (the biome of the villager)! This can be used to get villagers with a trade for an enchanted and/or named item, and lots more! I hope you find it useful.
Command to summon the example villager, make sure to put it in a command block:
/summon minecraft:villager ~ ~0.5 ~ {VillagerData:{profession:armorer,level:2,type:plains},Invulnerable:1,NoAI:1,PersistenceRequired:1,Offers:{Recipes:[{buy:{id:"minecraft:netherite_ingot",Count:1},buyB:{id:"minecraft:diamond",Count:5},sell:{id:"minecraft:netherite_helmet",Count:1,tag:{display:{Name:"{\"text\":\"Nether Head Armor\",\"color\":\"aqua\"}",Lore:["{\"text\":\"It's armor,\"}","{\"text\":\"what did you expect?\"}"]}}},maxUses:1},{buy:{id:"minecraft:netherite_ingot",Count:1},buyB:{id:"minecraft:diamond",Count:8},sell:{id:"minecraft:netherite_chestplate",Count:1,tag:{display:{Name:"{\"text\":\"Nether Chest Armor\",\"color\":\"aqua\"}",Lore:["{\"text\":\"It's armor,\"}","{\"text\":\"what did you expect?\"}"]}}},maxUses:1},{buy:{id:"minecraft:netherite_ingot",Count:1},buyB:{id:"minecraft:diamond",Count:7},sell:{id:"minecraft:netherite_leggings",Count:1,tag:{display:{Name:"{\"text\":\"Nether Leg Armor\",\"color\":\"aqua\"}",Lore:["{\"text\":\"It's armor,\"}","{\"text\":\"what did you expect?\"}"]}}},maxUses:1},{buy:{id:"minecraft:netherite_ingot",Count:1},buyB:{id:"minecraft:diamond",Count:4},sell:{id:"minecraft:netherite_boots",Count:1,tag:{display:{Name:"{\"text\":\"Nether Feet Armor\",\"color\":\"aqua\"}",Lore:["{\"text\":\"It's armor,\"}","{\"text\":\"what did you expect?\"}"]}}},maxUses:1}]}}
(Please note that my YT account has changed since the creation of this video)
-- Chapters --
0:00 Intro
0:04 Example (Command In Description)
0:50 Basic Summon Command
2:02 Villager Data (Profession, Level, and Biome Type)
3:31 Other Syntax/NBT Tags
4:21 Custom Trades
14:49 Outro