Zoglin

Zoglins are undead hostile mobs created when a hoglin enters the Overworld or End.

Spawning
Zoglins spawn when a hoglin has been in the Overworld or the End for 300 ticks. For their first 10 seconds after zombification, they get the  nausea effect. This nausea effect is cosmetic and does not affect its behavior. Like most hostile mobs, zoglins despawn when the difficulty is changed to Peaceful. In Bedrock Edition, zoglins still exist in the world and are passive only to players.

Drops

 * Adults and babies: 1–3 . The maximum amount is increased by 1 per level of Looting, for a maximum of 6 with Looting III.
 * if adult and baby killed by a player or tamed wolf $$.
 * if adult killed by a player or tamed wolf $$.

Behavior
Zoglins are hostile toward armor stands, players in Survival or Adventure mode (except in Peaceful difficulty), and all mobs except creepers, ghasts, "Johnny" vindicators, and other zoglins. This includes hoglins and zombified piglins. Normal hoglins do not attack normal piglins unless provoked by piglins.

When an adult zoglin attacks, it flings its target into the air. Blocking with shields does not mitigate this. When a baby zoglin attacks, they do not fling their target. Baby zoglins, unlike baby hoglins, never grow up. Any mob that can retaliate attacks a zoglin in return after being attacked, including baby zoglins.

In Java Edition adult zoglins attack once every two seconds and babies attack every second, In Bedrock Edition both adults and babies attack once every second, making them more destructive compared to Java Edition, even on peaceful difficulty.

When a zoglin attacks a piglin, the piglin either retreats or fights back. Piglin brutes attack zoglins if they are attacked first and never retreat. They also attack the zoglin if the zoglin attacks a piglin or another piglin brute.

If a zoglin is fed crimson fungus before it is zombified, it does not despawn naturally and it doesn't count toward the mob cap.

Zoglins are incapable of breeding and do not flee from blocks that repel hoglins. Zoglins can be leashed. Unlike baby hoglins, baby zoglins attack baby zombified piglins. Piglins flee from zoglins if they are not engaged in combat.

In water, they sink to the bottom and wander about as if on dry land. They do not drown.

Being an undead mob, they are:
 * damaged by the status effect and healed by the status effect ,
 * unaffected by the status effects and ,
 * ignored by the (but still attempt to attack them however they deal no damage ),
 * affected by the Smite enchantment.

Like s, they are immune to fire and lava.

Sounds
Zoglins use the Hostile Creatures sound category for entity-dependent sound events.

ID




Entity data
Zoglins have entity data associated with them that contains various properties.




 * See Bedrock Edition level format/Entity format.
 * See Bedrock Edition level format/Entity format.