Unable to interact with custom villager
Use the command below:
/summon minecraft:villager ~ ~ ~ {Invulnerable:1b,CustomName:'
{"text":"Miner","color":"green"}',VillagerData:{level:5,profession:"minecraft:armorer",type:"minecraft:taiga"},Offers:{Recipes:[{rewardExp:0b,maxUses:2147483647,uses:0,xp:1,priceMultiplier:1f,buy:
{id:"minecraft:cobblestone",Count:8b},sell:{id:"minecraft:stone_pickaxe",Count:1b,tag:{display:{Name:'
{"text":"Pickaxe","italic":false}',Lore:['[\{"text":"Type:","color":"gray","italic":false},\{"text":" "},\{"text":"Stone","color":"white","italic":false}]','[\{"text":"Efficiency:","color":"gray","italic":false},\{"text":" "},\{"text":"Sluggish","color":"red","italic":false}]','[\{"text":"Luck:","color":"gray","italic":false},\{"text":" "},\{"text":"Bad","color":"red"}]']}}}}]}}
You can't interact with the villager.