Hoglin

A hoglin is a warthog-like, breedable hostile mob, 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 most solid blocks other than nether wart block, even in Peaceful mode‌. Despite being able to spawn at any light level, hoglins also cannot spawn on shroomlights, which are solid blocks. Hoglins are part of the hostile mob cap.

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–1 . The maximum amount is increased by 1 per level of Looting, for a maximum of 4 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 also sink in lava, and are vulnerable 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 have a strike distance between 1.875 blocks and 1.938 blocks. When an adult hoglin attacks, it flings its target 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 run away from the block unless they have already chosen to attack. Hoglins are 60% resistant to knockback. Unlike other hostile mobs, they do not prevent a player from sleeping.

Similarly to piglins and zombified piglins, a player or mob attacking a hoglin provokes all nearby hoglins. Attacking a baby hoglin, however, will not trigger this behavior.

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

Hoglins that spawn in a Hoglin Stable variant of the Bastion Remnant do not attack piglins, and vice versa.

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.

If a baby hoglin is attacked by the player, it temporarily becomes neutral, fleeing the player after getting attacked.

Zoglins
If a hoglin spawns in or moves to the Overworld or the End, it will shake and then transform 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; they are the only hostile mob that can be bred. 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 attack or 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.

Breeding a hoglin prevents it from despawning.

ID




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

Trivia

 * Similar 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".
 * The hoglin is the only hostile mob, 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.
 * Unlike most animals, hoglins respawn over time instead of simply spawning during world generation, making them significantly more sustainable.
 * The hoglins have no pupils, unlike overworld pigs.
 * 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.
 * The left nostril of the hoglin's snout is a pixel larger than the right nostril.

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