DriversRecommendedOutdated drivers can make a good PC feel brokenScan driver issues before chasing fixes manually.Scan NowOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix Now×
Skip to content
VGSources
Blog

What Is the Command for Custom Villager Trades in Minecraft?

Use a Java Edition summon command with an Offers.Recipes list to give a villager custom trade offers. Learn what to edit and how version and Bedrock differences affect the syntax.
WorldMinecraft? Length2 min Posted Quest giverVGSources Team
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

In Minecraft Java Edition, you can summon a villager with a custom offer by putting the offer inside Offers.Recipes. For Java 1.20.5 and later, this example trades one emerald for one diamond:

/summon villager ~ ~ ~ {Offers:{Recipes:[{buy:{id:"minecraft:emerald",count:1},sell:{id:"minecraft:diamond",count:1},maxUses:999999}]}}

How the custom-trade command works

The command creates a villager at your location. Its Offers compound contains a Recipes list, and each recipe defines what the player pays and what the villager gives. In the example, buy is one emerald, sell is one diamond, and maxUses sets the offer’s use limit. The large limit is an example value, not a special unlimited setting. See the community syntax examples in Minecraft Wiki’s useful commands tutorial and Minecraft Commands Wiki.

How to change the offer

  • To change the payment, replace minecraft:emerald in buy.id with another item ID and set buy.count to the number required.
  • To change the reward, replace minecraft:diamond in sell.id and adjust sell.count.
  • To add another offer, add another recipe object inside the Recipes list.
  • To require a second payment item, add a buyB item definition to the recipe.
  • To change how many times an offer can be used before it locks, adjust maxUses.

Check your Java version’s item syntax

The sample uses the component-era item format shown in Java 1.20.5-and-later examples: item IDs are paired with lowercase count. Older command examples use uppercase Count and may put custom item data in a legacy tag field. Use syntax that matches the version you are playing; a long command copied from an older tutorial may not work unchanged in a newer release. The community reference at Minecraft Commands Wiki covers both formats.

Java and Bedrock use different approaches

Do not treat the Java Offers.Recipes summon command as a universal Minecraft command. Microsoft’s Bedrock trade-table documentation describes configuring trades through entity and behavior-pack files, including trade tables and trade groups. A Java summon payload is not a substitute for that Bedrock setup.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Sale
LEGO Minecraft The Creeper Kids Building Toy - Minecraft Toy for Boys & Girls, Ages 10+ - Room Decor for Gamers w/ 1st Version Creeper Minifigure - Gift for Birthdays - 21276
  • BUILD THE DREADED CREEPER – Young explorers, ages 10 and up, build a large poseable version of the iconic Minecraft mob
  • MINECRAFT ACTION FIGURE – Kids construct every detail of the Creeper, from its 4 poseable legs to its detachable head
  • HIDDEN SURPRISE INSIDE – Builders can remove the Creeper's head to reveal a compartment that hides a first-version Creeper minifigure and TNT element
  • POSEABLE ROOM DECOR – After building, kids can put their creation on display in the bedroom or playroom
  • GIFT IDEA FOR KIDS – Makes a wonderful birthday or any-time gift idea for boys and girls
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

What changed in Java 26.1?

Mojang’s Java Edition 26.1 release notes describe data-driven villager and wandering-trader trades for data-pack developers, with fields including wants, additional_wants, gives, and max_uses, organized into trade sets. The notes do not specifically confirm that the exact Offers.Recipes summon payload above works in 26.1, so treat it as a documented Java 1.20.5+ pattern rather than a verified 26.1 command.

Rank #4
Sale
LEGO Minecraft Steve’s Taiga Adventure 21583
  • MINECRAFT TOY FOR KIDS – Steve's Taiga Adventure (21583) LEGO Minecraft building toy for boys and girls ages 6 years old and up features a taiga biome with loads of accessories for young builders to explore
  • INSPIRE CREATIVE STORYTELLING – Kids can help Steve mine diamonds in the taiga biome, blast rocks apart with TNT to reveal diamonds, and fend off the Creeper using Steve's diamond sword
  • 4 LEGO FIGURES – Includes a Steve minifigure, plus a Creeper and 2 Minecraft animal figures, a fox and a baby bunny
  • ACCESSORIES FOR PRETEND PLAY – Features a distinctive spruce tree, snow, taiga grass, TNT with explosion function, diamonds and a treasure chest to store them
  • GIFT FOR GIRLS & BOYS – Makes a fun birthday gift or anytime present for kids and gaming fans who love Minecraft toys and hands-on creative play
Rank #3
Sale
LEGO Minecraft The Nether Lava Battle Toy and Playset - Building Minecraft Toy for Kids, Ages 6+ - Alex, Wither Skeleton, Blaze and Strider Figures for Pretend Play - Gift Idea for Birthdays - 21266
  • MINECRAFT TOY FOR KIDS – The Nether Lava Battle is a small LEGO Minecraft set that provides big build-and-play fun for boys and girls 6 years old and older who play the popular video game
  • PRETEND PLAY – This playset includes a buildable section of the Nether fortress bridge, and minifigures including Alex, a wither skeleton, plus blaze and strider LEGO Minecraft figures with weapons and accessories
  • LEGO MINECRAFT FORTRESS ACTION – Players will need their skills to collect ancient debris, escape a lava fall, battle mobs and ride a Minecraft figure to safety
  • MINECRAFT FIGURES – The skeleton wields a stone sword, the whirling blaze spins its rods, the strider features posable legs and a saddle, and Alex carries the game’s familiar diamond sword
  • FUN GIFT IDEAS – This hands-on video game set is a great birthday, holiday, or any-day treat for boys and girls who love small build-and-play toys packed with activity
Rank #2
Sale
LEGO Minecraft Zombie Dungeon 21587
  • MINECRAFT TOY FOR KIDS – LEGO Minecraft Zombie Dungeon (21587) building toy for boys and girls ages 8 years old and up
  • 5 LEGO FIGURES – Builders can cast a Wastelands Wanderer minifigure, a slime and 3 zombies (including one with enchanted leggings and gold sword and one with diamond helmet) in their pretend play adventure stories
  • GAMING-INSPIRED FUNCTIONS – Set in the Minecraft desert biome, this zombie dungeon features a rotating, zombie-spawning chamber and a sliding piece that triggers a rockfall
  • INSPIRE CREATIVE STORYTELLING – The Wastelands Wanderer, equipped with a diamond pickaxe, mace and netherite armor, takes on a slime and 3 zombies in the desert biome dungeon
  • ACCESSORIES FOR PRETEND PLAY – Features netherite armor, a mace, diamond pickaxe, gold sword, diamond helmet, crafting table, torch and a chest containing bread, bone and rotten flesh

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More quests from Patch Notes

  1. How To Create Custom Stickers & Shoutouts In Monster Hunter WildsMonster Hunter WildsBlog20min
  2. How to Get XL Gogoat in Pokemon Legends Z-A (An Extra-Large Gogoat)Pokemon Legends Z-ABlog20min
  3. How to Get Rotting Lightbringer in Diablo 4Diablo 4Blog17min
Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.