Updated:
Hoglin: entity ID and summon command
The entity ID for Hoglin is minecraft:hoglin. Use it with /summon and in selectors such as @e[type=…]. It was added in Java 1.16.
Basic data
| Name | Hoglin |
|---|---|
| ID (Java Edition) | minecraft:hoglin |
| Type | Hostile mob |
| Java versions | Java 1.16 and later |
| Bedrock 26.52 | Same ID works (tested on a server) |
| Size | 1.39648 wide × 1.4 tall (blocks) |
| Spawn egg | Hoglin Spawn Egg |
Commands you can copy
Java Edition
Summon at your position
/summon minecraft:hoglin ~ ~ ~Summon with no AI
/summon minecraft:hoglin ~ ~ ~ {NoAI:1b}Remove all of them
/kill @e[type=minecraft:hoglin]Remove only within 10 blocks
/kill @e[type=minecraft:hoglin,distance=..10]Test whether one exists
/execute if entity @e[type=minecraft:hoglin]Teleport the nearest one to you
/tp @e[type=minecraft:hoglin,sort=nearest,limit=1] @sGive the spawn egg
/give @p minecraft:hoglin_spawn_egg 1Bedrock Edition
Summon at your position
/summon hoglinRemove all of them
/kill @e[type=hoglin]Remove only within 10 blocks
/kill @e[type=hoglin,r=10]What it drops
| Item | Count | Condition |
|---|---|---|
| Raw Porkchop | 2–4 | Drops cooked if it is on fire / More with Looting |
| Leather | 0–1 | More with Looting |
From the official Java 26.3 loot table. Experience is not included.
Version notes
It was added in Java 1.16. 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 Hoglin?
It is minecraft:hoglin. In commands you can also write hoglin without minecraft:.
Why does Hoglin 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:hoglin] matches every one in loaded chunks. To limit it to nearby ones, add distance=..10 (r=10 on Bedrock).