Piglin

Piglins are hostile mobs that spawn in the Nether. They are equipped with crossbows or golden swords. While they are normally hostile toward the player, they become neutral if the player wears golden armor. The player is capable of bartering with them.

Spawning
$$, piglins spawn commonly in groups of 1–3 in crimson forests and uncommonly in the nether wastes biomes. Each piglin has a 25% chance of spawning as a baby.

$$, piglins spawn in groups of 1–5 in crimson forests and nether wastes. Piglins have a 5% chance to spawn as babies.

Adult piglins spawn with either golden swords or crossbows and sometimes wearing golden armor. Baby piglins spawn without any equipment.

Piglins do not despawn in peaceful mode.

Unlike zombie pigmen, piglins cannot spawn on magma blocks.

Piglins also commonly spawn in bastion remnants.

Drops
Piglins have an 8.5% chance of dropping their naturally-spawned equipment and drop it with random durability. Each level of Looting increases the chance by 1 percentage point (11.5% chance with Looting III).

Any picked-up equipment or other picked items have a 100% chance of dropping and drop without changing the damage that has accumulated on it. $$, a piglin who is hit while inspecting a gold ingot during bartering puts the ingot in its inventory. This gold ingot is dropped upon death. If killed in one hit while inspecting, the gold has the same chance to drop as any other held item.

Naturally-spawned equipment

 * Random Golden Armor
 * Random Golden Armor
 * Random Golden Armor

Experience
Adult piglins drop experience and an extra  experience per equipment if killed by player or tamed wolf.

Baby piglins drop and an extra  per equipment if killed by player or tamed wolf.

Behavior


Baby piglins play with baby hoglins, running with them and mounting them. $$, only 10% of baby piglins can mount baby hoglins. $$, any piglin can, and up to 3 piglins stacked on top of each other may ride a baby hoglin.

Piglins can pick up and equip armor and weapons. However, they prefer to use golden items and will downgrade from higher tier items if given golden items.

Piglins that are not currently attacking retreat from zombified piglins, zoglins, soul fire, soul fire torches, soul fire lanterns, and soul campfires.

Piglins cannot swim in water and will drown instead.

Despite being a Nether mob, piglins are not naturally immune to fire damage.

Piglins are capable of opening doors.

Attacking
Baby piglins are passive and will not attack anything. Adult piglins are naturally hostile to players. If the player is wearing at least one piece of gold armor, they become neutral, but still attack if provoked. Piglins are also provoked when players break or open a chest, trapped chest, ender chest, barrel, or a shulker box near them. They are also provoked by a player breaking blocks of gold, gold ore, and nether gold ore.

Piglins can detect the breaking and opening of blocks within a range of 16 blocks in a straight line from the player (This can be altered with invisibility effect). The block interacted with does not require a line of sight to anger the Piglins.

Piglins attack wither skeletons and withers. Additionally, adult piglins also attack adult hoglins, but keep a distance of 6 blocks if outnumbered by hoglins. $$, when defeating a hoglin, there is a 1 out of 7 chance for piglins to do a victory dance.

Adult piglins group together within radius 32 blocks and attack in hordes like zombified piglins.

When attacking with a crossbow, piglins shoot arrows every 2 seconds. $$, they walk backwards (stopping if at the edge of a drop) as soon as the enemy is close. Unlike bow-armed mobs, they do not strafe from left to right while shooting. Piglins with swords and other equipable items rush toward the player.

Iron golems attack both adult and baby piglins; adults do not attack an iron golem until it attacks first.

Picking up items
Any piglin can pick up and equip any gold related item, regardless of their ability to pick up other items. A piglin inspects any gold-related item for a moment after picking it up.

Piglins have eight/three hidden inventory slots in which they can stack items. When a piglin with a full inventory encounters another item, it picks up the item and then throws it on the floor after contemplating it, leading to a cycle of continuously picking up and discarding the item. Baby piglins attempt to pick up any item and can steal from players. Adult piglins can pick up any golden item and porkchops, but they don't actively seek out and contemplate porkchops and gold nuggets; instead, if either of those items is nearby, they instantly place it in their inventory. Piglins drop any of these items upon death aside from gold ingots, raw porkchops and cooked porkchops.

Like other mobs capable of picking up items, piglins pick up armor and weapons. However, unlike other mobs, they prefer items in the gold tier or armor material, and throw away stronger items to equip these.


 * Items that piglins want:
 * (piglins barter something else in return, see )
 * (piglins barter something else in return, see )
 * (piglins barter something else in return, see )
 * (piglins barter something else in return, see )


 * Items crafted with gold that piglins are not interested in:

Zombification


When in the Overworld, piglins transform into zombified piglins after 15 seconds. When they transform, they retain their armor (but drop held items) and gain a golden sword. Upon transformation, the spawned zombified piglin has the Nausea effect for 10 seconds. $$, piglins in the End also transform into zombified piglins.

Sounds
Java Edition:

Entity data
Note to editors: Piglins store hunts in the brain tag.

Trivia

 * Adult piglins cannot ride on other entities; if summoned as a passenger they immediately dismount.
 * Baby piglins never grow up.
 * "Piglin" is likely a portmanteau of "pig" and "goblin".