Updated:
Villager: entity ID and summon command
The entity ID for Villager is minecraft:villager. Use it with /summon and in selectors such as @e[type=…]. The ID has been the same since Java 1.13.
Basic data
| Name | Villager |
|---|---|
| ID (Java Edition) | minecraft:villager |
| Type | Other entity |
| Java versions | Java 1.13 to 26.3 |
| Bedrock 26.52 | Same ID works (tested on a server) |
| Size | 0.6 wide × 1.95 tall (blocks) |
| Spawn egg | Villager Spawn Egg |
Commands you can copy
Java Edition
Summon at your position
/summon minecraft:villager ~ ~ ~Summon with no AI
/summon minecraft:villager ~ ~ ~ {NoAI:1b}Remove all of them
/kill @e[type=minecraft:villager]Remove only within 10 blocks
/kill @e[type=minecraft:villager,distance=..10]Test whether one exists
/execute if entity @e[type=minecraft:villager]Teleport the nearest one to you
/tp @e[type=minecraft:villager,sort=nearest,limit=1] @sGive the spawn egg
/give @p minecraft:villager_spawn_egg 1Bedrock Edition
Summon at your position
/summon villagerRemove all of them
/kill @e[type=villager]Remove only within 10 blocks
/kill @e[type=villager,r=10]Version notes
This ID has not changed from Java 1.13 to the latest 26.3.
In selectors, Java Edition uses type=minecraft:ID and Bedrock uses type=ID. Add ! as in type=!minecraft:ID to match everything else.
Questions
What is the ID for Villager?
It is minecraft:villager. In commands you can also write villager without minecraft:.
How far does /kill reach?
@e[type=minecraft:villager] matches every one in loaded chunks. To limit it to nearby ones, add distance=..10 (r=10 on Bedrock).