Zoglin

Zoglins (are also sometimes called Zombified Hoglins) 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. Like most hostile mobs, zoglins despawn when the difficulty is changed to Peaceful. $$, zoglins still exist in the world, but are passive to 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 immune to burning effects and are very aggressive, adults and babies attack these entities:


 * 1)  Armor stands
 * 2)  Players in  survival mode or adventure mode
 * 3) All mobs, however, there are two exceptions:
 * 4)  Creepers
 * 5)  Other zoglins

When an adult attacks, it flings its target into the air. Blocking with shields does not mitigate this. Baby zoglins attack, however they do not fling their target.

Like vindicators, evokers,  piglins and  shulkers, zoglins are passive on peaceful difficulty.

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.

Being an undead mob, they are:
 * damaged by the status effect Instant Health and healed by the status effect Instant Damage,
 * unaffected by the status effects Regeneration and Poison,
 * ignored by the wither (but still attempt to attack them ),
 * affected by the Smite enchantment.

Like zombified piglins, they are immune to fire and lava.

ID




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