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. $$, zoglins still exist in the world, but are passive to only players.

Drops

 * Adults and babies : 1–3 Rotten Flesh. 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 these entities:


 * s
 * Players in Survival mode or Adventure mode
 * All mobs except for these:
 * s and charged creepers
 * s
 * Other zoglins

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 attack attacks the zoglin in return after being attacked, including baby zoglins.

Zoglins also attack hoglins, despite them being related.

When a zoglin attacks a piglin, the piglin either retreats or fights back. Piglin brutes attacks the zoglin if attacked by the zoglin, as they do not retreat. They also attack the zoglin if the zoglin attacks a piglin or another piglin brute.

Like vindicators, evokers, piglins and shulkers, zoglins are passive on Peaceful difficulty. $$, zoglins despawn immediately in Peaceful.

If the zoglin was fed crimson fungus before it was zombified, it does not despawn naturally.

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 piglins. Piglins flee from zoglins if they are not engaged in combat.

If in water, they sink. Zoglins can drown, despite them being a undead mob.

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.

Piglins retreat from zoglins, meaning they might not fight the zoglin if attacked, although piglin brutes are more brave than piglins and attack the zoglin if it attacks any piglins or piglin brutes.

ID




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