Villager icon

Villager Summon Command Generator

  • Category: passive
  • Baby variant: yes
  • Entity id: minecraft:villager

Summoning a villager with commands is the fastest way to place an NPC exactly where a map needs one — behind a shop counter, at a quest desk, or inside a trading hall stall. A command-summoned villager arrives unemployed, so the profession it ends up with depends on which job site block sits nearby: drop a lectern next to it for a librarian, a brewing stand for a cleric, or a smithing table for a toolsmith.

The generator assembles the full summon syntax around those mechanics. Add a custom name so the NPC reads as a character, raise the health value so stray arena mobs cannot delete your shopkeeper, and stack NoAI with Silent and Invulnerable to freeze the villager into a permanent fixture that never wanders off its pressure plate.

Baby villagers are worth a slot in most village builds too. They sprint around plazas and jump on beds during raids, adding motion to scenes that would otherwise feel staged, and they mature into adults after twenty minutes of loaded game time.

Example commands

Frozen shopkeeper NPC

/summon minecraft:villager ~ ~ ~ {NoAI:1b,Silent:1b,Invulnerable:1b,PersistenceRequired:1b,CustomName:"Shopkeeper",CustomNameVisible:1b}

NoAI pins the villager behind its counter, Silent removes the ambient grumbles, and Invulnerable stops arena strays from killing your economy.

Baby villager

/summon minecraft:villager ~ ~ ~ {IsBaby:1b}

Children run in circles and chase each other around village plazas, which sells a settlement as inhabited far better than a row of idle adults.

Glowing quest giver

/summon minecraft:villager ~ ~ ~ {Glowing:1b,PersistenceRequired:1b,CustomName:"Elder Rowan",Health:60f,attributes:[{id:"minecraft:max_health",base:60}]}

The glow outline makes the quest NPC findable through walls and terrain, and 60 health survives accidental crossfire from nearby fights.

Invisible trigger dummy

/summon minecraft:villager ~ ~ ~ {active_effects:[{id:"minecraft:invisibility",duration:999999,amplifier:0b,show_particles:0b}],NoAI:1b,Silent:1b}

An invisible NoAI villager gives an execute-driven dialogue trigger a physical position without any visible model cluttering the scene.

The same build across versions

Rows appear only where the output actually changes -- copy the one that matches your world.

Java 1.16

/summon minecraft:villager ~ ~ ~ {NoAI:1b,Silent:1b,Invulnerable:1b,PersistenceRequired:1b,CustomName:'{"text":"Shopkeeper"}',CustomNameVisible:1b}

Java 26.2

/summon minecraft:villager ~ ~ ~ {NoAI:1b,Silent:1b,Invulnerable:1b,PersistenceRequired:1b,CustomName:"Shopkeeper",CustomNameVisible:1b}

Bedrock 26.x

/summon minecraft:villager "Shopkeeper" ~ ~ ~
  • Bedrock /summon does not accept Java entity NBT; omitted traits (no_ai, silent, invulnerable, persistent, custom_name_visible).

Worth knowing

  • A command-summoned villager spawns unemployed and claims the nearest unclaimed job site block — a lectern turns it into a librarian, a composter into a farmer — and that claim decides its entire trade table.
  • Nitwit villagers never take a profession and cannot be traded with, so a nitwit is the wrong base for any shop NPC.
  • On Hard difficulty a villager killed by a zombie always converts into a zombie villager; on Normal the conversion chance is 50 percent, and on Easy the villager simply dies.
  • Villagers restock their trades by working at their claimed job site block, up to twice per in-game day.
  • A villager struck by lightning transforms into a witch, which is worth knowing before staging any storm effects near a trading hall.

FAQ

Why does my summoned villager have no trades?

It spawned unemployed. Place an unclaimed job site block such as a lectern or composter within range and the villager will claim it and roll trades for that profession.

Can I stop a villager from wandering away?

Add the NoAI trait in the generator. A NoAI villager cannot pathfind at all, yet players can still open its trading screen once it holds a profession.

Do summoned villagers get killed by zombies?

Yes — zombies target villagers on sight, and on Hard difficulty a kill always converts the villager into a zombie villager. Give shop NPCs the Invulnerable trait if the area is not mob-proofed.