Updated:

Pillager: entity ID and summon command

The entity ID for Pillager is minecraft:pillager. Use it with /summon and in selectors such as @e[type=…]. It was added in Java 1.14.

Basic data

NamePillager
ID (Java Edition)minecraft:pillager
TypeHostile mob
Java versionsJava 1.14 and later
Bedrock 26.52Same ID works (tested on a server)
Size0.6 wide × 1.95 tall (blocks)
Spawn eggPillager Spawn Egg

Commands you can copy

Java Edition

Summon at your position

/summon minecraft:pillager ~ ~ ~

Summon with no AI

/summon minecraft:pillager ~ ~ ~ {NoAI:1b}

Remove all of them

/kill @e[type=minecraft:pillager]

Remove only within 10 blocks

/kill @e[type=minecraft:pillager,distance=..10]

Test whether one exists

/execute if entity @e[type=minecraft:pillager]

Teleport the nearest one to you

/tp @e[type=minecraft:pillager,sort=nearest,limit=1] @s

Give the spawn egg

/give @p minecraft:pillager_spawn_egg 1

Bedrock Edition

Summon at your position

/summon pillager

Remove all of them

/kill @e[type=pillager]

Remove only within 10 blocks

/kill @e[type=pillager,r=10]

What it drops

ItemCountCondition
Ominous Bottle1Only in certain conditions

From the official Java 26.3 loot table. Experience is not included.

Version notes

It was added in Java 1.14. Older versions report that the ID is unknown.

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 Pillager?

It is minecraft:pillager. In commands you can also write pillager without minecraft:.

Why does Pillager disappear right after summoning?

On Peaceful difficulty, hostile mobs are removed at once. Raise the difficulty, for example with /difficulty easy.

How far does /kill reach?

@e[type=minecraft:pillager] matches every one in loaded chunks. To limit it to nearby ones, add distance=..10 (r=10 on Bedrock).

Related IDs