Custom Villager Summon Command

Custom Villager Summon Command - Unrecognizable woman holding paw of dog

I am trying to summon a Villager that buys 64 Planks of any kind and giving you 1 gold nugget I have tried using

/summon Villager ~1 ~ ~ {Invulnerable:1,CustomName:Wood_Buyer,Profession:0,Career:1,Offers:{Recipes:[{buy:{id:planks,Count:64},sell:{id:gold_nugget,Count:1}}]}}

Which allows the player to swap 64 Oak Planks for 1 Gold Nugget. How would I add another trade for Birch, Spruce, etc. wood?






Pictures about "Custom Villager Summon Command"

Custom Villager Summon Command - Side view of young woman in hoodie sitting on floor near sofa and playing with obedient brown Labrador while resting during free time
Custom Villager Summon Command - Crop hacker silhouette typing on computer keyboard while hacking system
Custom Villager Summon Command - Full body optimistic young female with curly hair smiling and teaching Beagle dog beg command on sunny summer day in countryside



How do you spawn custom villagers?

First, you need to program the command block to summon a villager with the /summon command. This /summon command will be run each time the command block is activated. So, stand in front of the command block with your pointer (the plus sign) on the command block and click on the right mouse button.

How do you summon a villager with custom trades 1.18 2?

There is (currently) no way to change a villager type's trades using a data pack. But you can detect the career using commands and then change the trades directly. This command has to be put into an always active repeating command block in the spawn chunks or into a ticking function.



Setting up CUSTOM TRADES in Vanilla Minecraft 1.17! (Part 1)




Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: Ivan Babydov, Ivan Babydov, Anete Lusina, Blue Bird