Zoglin

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

Spawning
Zoglins cannot spawn naturally in the Nether. They only 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 stand, players in Survival or Adventure mode (except in Peaceful diffculty for Bedrock Edition), and all mobs (except creeper, ghast and other zoglins). This include hoglins, despite them being related; and zombified piglins, despite the fact that zoglins are zombified hoglins. (normal hoglins do not attack normal piglins unless provoked by piglin)

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

When a zoglin attacks a piglin, the piglin will either retreat or fight back. Piglin brutes attack zoglins if they are attacked first and will not retreat. They will 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 will 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 and can 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.

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.