Summon Villager Generator Summon Mob Generator for Java 26.3
Try the Commands Troubleshooting and Help page if you get stuff with server errors. Found a bug or want a feature, let us know on reddit.
Villager Shop Generator
Use this villager command generator to create a custom trader, set offers, select profession, trade cooldowns and regular mob summon options such as name. The easy interface makes it possible to select options such as profession, biome type, level and trades that villager can make. As well as regular mobs options, such as Invulnerable to prevent players killing the villager and No AI to prevent the villager from wandering.
Villager Trouble shooting
Check, Item ID is just the item, count is 1 or greater. Item NBT tags are complex try simpler tags if you have problems.
Villager Spawn eggs
Unfortunately the villager spawn egg is bugged when it comes to setting profession and trades. See mojang bugs here Villager spawn eggs not working properly
How to summon a baby villager (villager child)
Like most passive mobs in Minecraft, you can summon a villager child by setting the Age tag to a negative number (under the "Additional" tab).
/summon minecraft:villager ~ ~ ~ {Age:-1200}(Grows up in 60 seconds)
/summon minecraft:villager ~ ~ ~ {Age:-6000}(Grows up in 5 minutes)
Villager trades
Building trade data is complicated and takes some time. Each trade needs at least one buy item and one sell item. You can add nbt tag data for named and enchanted items (other tags may work too). Summon generally creates a villager in a blank state, so it's best to set all the options that you would like. Remember long commands need to into command block to get around the chat limit.
In this example you can buy a iron sword from the villager
/summon minecraft:villager ~ ~ ~ {VillagerData:{type:plains,profession:farmer,level:2},Offers:{Recipes:[{buy:{id:emerald,Count:1},sell:{id:iron_sword,Count:1}}]}}
In this example you can buy a named iron sword from the villager, Note the
/summon minecraft:villager ~ ~ ~ {VillagerData:{type:plains,profession:farmer,level:2},Offers:{Recipes:[{buy:{id:emerald,count:1},sell:{id:iron_sword,count:1,components:{custom_name:'["",{"text":"Pointy","italic":false}]'}}}]}} /summon minecraft:villager ~ ~ ~ {VillagerData:{type:plains,profession:farmer,level:2},Offers:{Recipes:[{buy:{id:emerald,Count:1},sell:{id:iron_sword,Count:1,tag:{display:{Name:"[{\"text\":\"Pointy\",\"italic\":false}]"}}}}]}}
In this example you can buy an enchanted named iron sword from the a villager
summon minecraft:villager ~ ~ ~ {VillagerData:{type:plains,profession:farmer,level:2},Offers:{Recipes:[{buy:{id:emerald,count:1},sell:{id:iron_sword,count:1,components:{custom_name:'["",{"text":"Pointy","italic":false}]',enchantments:{levels:{sharpness:1}}}}}]}} summon minecraft:villager ~ ~ ~ {VillagerData:{type:plains,profession:farmer,level:2},Offers:{Recipes:[{buy:{id:emerald,Count:1},sell:{id:iron_sword,Count:1,tag:{display:{Name:"[{\"text\":\"Pointy\",\"italic\":false}]"},Enchantments:[{id:sharpness,lvl:3}]}}}]}}
What about Wandering Traders, and Zombie Villagers
Try the mob generator for wandering trader, which details options for that mob.
Try the mob generator for zombie villager, which details options for that mob.
Minecraft Versions Permalinks
If you find yourself using a particular version all the time, you can link directly. There is some crossover between versions, so there will be quirks.
- Latest
- 26.3
- 26.2
- 26.1
- 1.21.11
- 1.21.9
- 1.21.8
- 1.21.5
- 1.21.4
- 1.21.2
- 1.21
- 1.20.5
- 1.20.2
- 1.20
- 1.19
- 1.18
- 1.17
- 1.16
- 1.15
- 1.14
- 1.13
- 1.12
Version History
added26.3 content
addedMore predicates
addedPreloading 26.3 items and content
addedSummon options for interaction, marker, ominous_item_spawner
patchGive generator patch can_break, can_place
addedSummon item_display and text_display
patchSummon issue with fireworks and potions
patchSummon issue with summon eggs (again)
addedend_crystal nbt tags
patchdamage_resistant for multi values in 26.1
patchbee nbt tags
patchmotion and rotation nbt tags
patchvarious uuid and nbt pathing issues
patchsummon blocks fixes and improvements
patchsome autocomplete quirky issues during typing
addedUUID converter
patchFix for issue with items not re-encoding correctly for items, trades and containers
patchTrades for 1.20.4 and earlier now auto add Count if missing
Read version history »
(131 More Updates)