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
Piglins are naturally hostile to players, unless they wear at least one piece of gold armor. With this, they become neutral, but still attack if provoked. Piglins are also provoked by breaking or opening a chest, trapped chest, ender chest, barrel, or a shulker box in their sight. They are also provoked by a player breaking golden-type blocks, such as a gold block, gold ore, or nether gold ore.

Piglins detect all types of golden-type blocks and broken/opened containers from the same range, that being 16 blocks in a straight line from the player breaking the block (This can be altered with invisibility effect). The block interacted with does not require line of sight to affect 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 may group together within radius 32 blocks and attack in hordes like zombified piglins.



Baby piglins are passive and never attack anything, they play with baby hoglins, running with them and mounting them. $$, only 10% of baby piglins mount baby hoglins, but $$, any piglin can, and up to 3 piglins stacked on top of each other may ride a baby hoglin. Iron golems attack both adult and baby piglins; adults do not attack an iron golem until it attacks first.

When attacking with a crossbow, it shoots arrows every 2 seconds and $$, walks backward (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.

Piglins willingly downgrade to golden armor if they are wearing higher tier armor, or armor that has higher durability than gold, such as iron, chainmail, diamond, or netherite armor.

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

Piglins drown in water, they do not swim. They are capable of opening doors.

Despite being a Nether mob, piglins are not naturally immune to fire damage, like hoglins, and are the only two Nether mobs to do so.

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 of 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, but 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. This does not occur in the End. $$, 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".
 * On Java Edition, Piglins admire Enchanted Golden Apple.
 * Piglins are the first humanoid mob that don't have the usual 20 Health.
 * In Bedrock Edition, they currently don't pickup gold and have to be interacted to barter.