Zoglin NBT Tags in Minecraft 1.16-1.20

Complete guide to NBT tags for zoglins in Minecraft Java Edition. Summon, customize, and control zoglins with /summon and /data commands.

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
IsBaby 0 = adult zoglin
1 = baby zoglin
Example: {IsBaby:1}
CustomName Any name you want to assign
Example: {CustomName:"Tusks"}
Health Number of health points
Example: {Health:50.0f}
AbsorptionAmount Number of absorption health points
Example: {AbsorptionAmount:2.0f}
Invulnerable 0 = takes damage normally
1 = cannot take any damage
Example: {Invulnerable:1}
PersistenceRequired 0 = despawns normally
1 = never despawns
Example: {PersistenceRequired:1}
NoAI 0 = normal movement and AI
1 = frozen in place, no AI
Example: {NoAI:1}
Silent 0 = normal sounds
1 = no sounds at all
Example: {Silent:1}
Fire Number of ticks until fire goes out (20 ticks per second)
Example: {Fire:60}
PortalCooldown Number of ticks until zoglin can use portals again
Example: {PortalCooldown:120}
Air Number of ticks of air the zoglin has left
Example: {Air:120}
UUIDLeast Right half of the zoglin’s UUID
Example: {UUIDLeast:-6645587150281567948L}
UUIDMost Left half of the zoglin’s UUID
Example: {UUIDMost:4420078606457655279L}
id zoglin (the entity type)
Example: {id:zoglin}
Passengers Mob riding on the zoglin
Example: Passengers:[{id:skeleton}]

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.

Leave a Reply

Your email address will not be published. Required fields are marked *