Hoglin

Hoglins are warthog-like breedable hostile mobs and the main source of food in the Nether.

Spawning
Hoglins are found in herds of 3–4 in crimson forests, respawning over time. Several spawn in the "hoglin stable" type of bastion remnant upon generation. 5% of hoglins spawn as babies. Hoglins can spawn at any light level and on any block other than Nether Wart Block.

Drops
When killed, adult hoglins drop:
 * 2–4 ( while on fire). The maximum amount is increased by 1 per level of Looting, for a maximum of 7 with Looting III.
 * 0–2 . The maximum amount is increased by 1 per level of Looting, for a maximum of 5 with Looting III.
 * $$, if killed by a player or tamed wolf.
 * Baby hoglins drop only experience.
 * $$, adult hoglins drop, if killed by a player or tamed wolf, while baby hoglins drop no experience.

Behavior
Hoglins avoid warped fungi (including in a flower pot), nether portals, and respawn anchors. They naturally sink in water and eventually drown, despite being living mobs; this is intentional behavior. They are not immune to fire or lava. Hoglins can be led with a lead despite the fact they are hostile.

Hostility
Hoglins attack any player within 32 blocks, and hit about 2 blocks away. When an adult hoglin attacks, it flings a player into the air. Players can still be flung even if they block with a shield. Baby hoglins also attack, dealing less damage without flinging. If the player attacks a baby hoglin, it flees. Hoglins do not attack a player standing near a block that repels them, but will instead run away from the block. This is unless they have already chosen to attack. Hoglins are 60% resistant to knockback.

Hoglins are hostile to piglins if a piglin attacks first. However, they never attack piglins unprovoked. Hoglins also avoid piglins if outnumbered.

Baby hoglins
Baby piglins run near, and ride, baby hoglins. If there are more baby piglins than baby hoglins, the baby piglins occasionally jump on other baby piglins already riding a baby hoglin, with a maximum of 3 stacked on a single baby hoglin.

Zoglins
If a hoglin spawns in or moves to the Overworld or the End, it shakes and turns into a zoglin after 15 seconds. Any lead attached to the hoglin breaks when it converts. Leads attached to hoglins still break, even though zoglins are leashable. The newly-created zoglin gets Nausea I for 10 seconds. This Nausea effect is only decorative and has no effect on the zoglin's behavior.

Breeding
Hoglins can be bred with crimson fungi. It takes about 5 minutes before the parents can breed again, and it takes 20 minutes for baby hoglins to mature. They stay near their parents unless they see a player or get attacked, in which case they run away. Feeding a baby hoglin reduces the remaining time for it to mature by 10%.

Hoglins cannot be bred when they are running away from warped fungi, respawn anchors or Nether portals.

Farming
Because hoglins are hostile toward the player, the player can corral hoglins they want to breed, although hoglins can attack over fences and walls, so precaution is needed. Hoglins despawn unless they have been fed or bred using crimson fungi.

Hoglins become passive while near warped fungi, nether portals, and respawn anchors. If there are too many in an area, they may still become hostile for a while if attacked. And if one is set upon attacking, sometimes others become hostile, too. They become passive again if they lose line of sight from the player.

ID




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

Trivia

 * Similarly to the ravager originally being called "Illager Beast" before its official name was chosen by the community, the Hoglin's name was also chosen by the community. Its initial placeholder name was "Piglin Beast".
 * In Peaceful difficulty, Hoglins are passive to the player.
 * Hoglins are the only hostile mobs, other than the unused killer bunny, that can be bred.
 * Baby hoglins are the only baby mobs that both grow up and drop experience when killed.
 * $$, there are unused texture files named and  that are textured identically to raw beef and steak, respectively.
 * Hoglins are the only general nether mob that does not spawn in the nether wastes biome.
 * Henrik Kniberg released a video of a group of hoglins killing a piglin, then "celebrating" by bobbing their heads, then getting on their hind legs and dancing. This feature was never added into any snapshot and is not actually in Minecraft because it was made as a joke.
 * However, piglins do have a 10% chance to celebrate after killing a hoglin.

During development
These images were showcased at Minecon Live 2019 or afterward, but before hoglins were added in 20w06a.