This guide covers the NBT tags (also called data tags) you can use to customize zoglins in Minecraft Java Edition 1.16 through 1.20. Whether you’re spawning a named zoglin or setting up specific properties, NBT tags let you control exactly how your zoglin behaves.
What Are NBT Tags?
NBT tags are properties you can assign to entities like zoglins. You use them in commands like /summon and /data to control things like health, name, AI, and other behavior. The tags go in curly braces like this: {CustomName:"Tusks"}. If you’re using multiple tags, just separate them with commas: {CustomName:"Tusks", Health:50.0f}.
Zoglin NBT Tag Reference
Here’s every NBT tag you can use for zoglins in versions 1.16 through 1.20:
| NBT Tag | Value | Works With |
|---|---|---|
| IsBaby | 0 = adult zoglin 1 = baby zoglin Example: {IsBaby:1} |
/summon, /data |
| CustomName | Any name you want to assign Example: {CustomName:"Tusks"} |
/summon, /data |
| Health | Number of health points Example: {Health:50.0f} |
/summon, /data |
| AbsorptionAmount | Number of absorption health points Example: {AbsorptionAmount:2.0f} |
/summon, /data |
| Invulnerable | 0 = takes damage normally 1 = cannot take any damage Example: {Invulnerable:1} |
/summon, /data |
| PersistenceRequired | 0 = despawns normally 1 = never despawns Example: {PersistenceRequired:1} |
/summon, /data |
| NoAI | 0 = normal movement and AI 1 = frozen in place, no AI Example: {NoAI:1} |
/summon, /data |
| Silent | 0 = normal sounds 1 = no sounds at all Example: {Silent:1} |
/summon, /data |
| Fire | Number of ticks until fire goes out (20 ticks per second) Example: {Fire:60} |
/summon, /data |
| PortalCooldown | Number of ticks until zoglin can use portals again Example: {PortalCooldown:120} |
/summon, /data |
| Air | Number of ticks of air the zoglin has left Example: {Air:120} |
/summon, /data |
| UUIDLeast | Right half of the zoglin’s UUID Example: {UUIDLeast:-6645587150281567948L} |
/summon, /data |
| UUIDMost | Left half of the zoglin’s UUID Example: {UUIDMost:4420078606457655279L} |
/summon, /data |
| id | zoglin (the entity type) Example: {id:zoglin} |
/summon, /give |
| Passengers | Mob riding on the zoglin Example: Passengers:[{id:skeleton}] |
/summon, /data |
NBT Tag Examples
Summon a zoglin named Tusks:
/summon zoglin ~ ~ ~ {CustomName:"Tusks"}
Summon a baby zoglin:
/summon zoglin ~ ~ ~ {IsBaby:1}
Using Target Selectors
The @e target selector lets you target entities in commands. Use type=zoglin to target zoglins specifically:
@e[type=zoglin]
Target Selector Examples
Change the name of the nearest zoglin to Tusks:
/data merge entity @e[type=zoglin,limit=1,sort=nearest] {CustomName:"Tusks"}
Kill all zoglins:
/kill @e[type=zoglin]
More Command Examples
For more ways to use zoglins in your world, check out How to Summon a Zoglin.