← All articles

Minecraft Villager Trade Guide

A custom villager can turn a simple exchange into a story shop: passes, quest items, unique weapons, keys, documents, and rewards without mods.

Open builder

What the tool does

The builder creates a long /summon minecraft:villager command. The command defines the villager's appearance and behavior, then adds an Offers block with a list of Recipes.

Main structure

Every trade has at least two item stacks: buy and sell. If the price uses two items, the command also includes buyB.

Offers:{
  Recipes:[
    {
      buy:{id:"minecraft:emerald",count:8},
      sell:{id:"minecraft:paper",count:1},
      maxUses:999999
    }
  ]
}

Minecraft versions

Minecraft 1.20.5 moved item data to Data Components. The builder can switch between both item-stack formats.

{id:"minecraft:paper",count:1,components:{"minecraft:custom_model_data":12}}
{id:"minecraft:paper",Count:1b,tag:{CustomModelData:12}}

Villager fields

Trade fields

Using it on a server

Copy the generated command into a command block or an operator console.

Important: if the command is longer than 256 characters, use a command block. Minecraft chat can cut off longer summon commands.

Practical ideas