Skip to content
[/craft]

Summon Villager with Custom Trades

Create a villager selling diamonds for one emerald

✅ Verified for Java 26.2 · Bedrock 26.32 — checked June 2026

Summons a villager with a hand-written trade that sells a diamond for a single emerald. This is the base pattern for command-built shops: swap the buy and sell items and counts to design any trade you want. maxUses keeps the trade from locking after a few purchases.

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

How to use

  1. Open chat (T on Java).
  2. Paste the command and press Enter.
  3. Right-click the villager to open the custom trade.
  4. Edit the buy and sell item IDs and counts to build your own shop.

Related commands

Spawn a charged creeper that creates a larger explosion

/summon creeper ~ ~ ~ {powered:1b}

Spawn the huge Java-only giant zombie mob

/summon giant ~ ~ ~

Spawn the hidden hostile rabbit variant

/summon rabbit ~ ~ ~ {RabbitType:99}

Spawn a skeleton riding a spider

/summon spider ~ ~ ~ {Passengers:[{id:"minecraft:skeleton"}]}

Spawn a baby zombie riding a chicken

/summon chicken ~ ~ ~ {Passengers:[{id:"minecraft:zombie",IsBaby:1b}]}

Create floating hologram text with no entity behind it

/summon text_display ~ ~1 ~ {text:'{"text":"Hello World","color":"gold","bold":true}',billboard:"center"}