Channel Icon

Crazy Ozz

Official Channel Website

Command Block

Custom Villager Generator with Trades for Minecraft Java and Bedrock

Create a fully custom Villager in Minecraft Java and Bedrock Edition, featuring a colored name, profession, biome, level, common properties such as NoAI and Invulnerable, and a complete trades system with secondary buy item, XP, special price, and price multiplier.

Select your Minecraft edition:

Basic Info

Coordinates:
Name:
Tag:

Villager Profile

Profession:
Biome (Skin):
Level:

Common Properties (NBT)

Max Health:
Speed:
Follow Range:
Scale:
Knockback Res.:

Villager Trades

Each trade becomes an item on the list below. Fill in at least the buy item and the sell item.

No trades added yet. Click "Add Trade" to begin.

Automatically Generated Summon Command

summon...
Version:

How custom Villager trades work

Each villager trade has a buy item (what the player gives), an optional second buy item, and a sell item (what the player receives). Furthermore, you can define how many max uses the trade has before becoming locked, how much XP the villager gains per use, a price multiplier (affects the price based on player reputation), and a special price (a flat discount or increase, usually negative for discounts).

Example of generated command (Java Edition):

/summon minecraft:villager ~ ~ ~ {VillagerData:{profession:"minecraft:farmer",type:"minecraft:plains",level:5},Offers:{Recipes:[{buy:{id:"minecraft:emerald",count:5},sell:{id:"minecraft:diamond",count:1},maxUses:12,uses:0,xp:5,priceMultiplier:0.05f,specialPrice:0,rewardExp:1b}]}}

Example of generated command (Bedrock Edition, with a bold colored name and Farmer profession):

/summon villager ~ ~ ~ ~ ~ minecraft:become_farmer "§c§lComerciante"

Note the ~ ~ right after the coordinates: on Bedrock, this pair represents the rotation (yRot/xRot) and is mandatory whenever you use a spawn event or a name — skipping this part is the most common cause of syntax errors in this command.

Frequently Asked Questions

Do I need to fill in all fields of a trade?

No. Only the buy item (A) and the sell item are required for a trade to be valid. The remaining fields will use the game's default values if left blank.

What is the "Special Price"?

It is a flat adjustment applied to the trade price. Negative values provide a discount (for instance, on trades with cured zombie villagers), whereas positive values increase the price.

Does it work the same on Bedrock Edition?

No. Bedrock does not support custom NBT via /summon, so custom trades require a behavior pack with its own trade_table. However, names can still be colored and formatted using § codes (e.g., §c for red, §l for bold), which is the same system used in Bedrock signs and books.

Why are Underline and Strikethrough disabled in Bedrock mode?

Because Bedrock Edition does not implement these two formatting codes (§n and §m) — they only function on Java Edition. Therefore, the generator automatically disables these buttons when you are in Bedrock mode to avoid generating code that won't work.

Is it possible to define profession and properties like Invulnerable/Glowing on Bedrock?

Profession and "baby" status, yes — Bedrock has its own spawn event for each profession (e.g., minecraft:become_farmer), available in the Event selector. However, Invulnerable, Glowing, NoAI, Silent, attributes (health, speed...), and Tags have no equivalent in Bedrock's /summon command — that would require a behavior pack.