Piglin

Piglins are hostile mobs that spawn in the Nether. They are equipped with crossbows or golden swords. They are naturally hostile toward the player, but 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 forest and uncommonly in the nether wastes biomes. Each piglin has a 25% chance of being a baby.

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

Drops
Piglins have a 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 100% chance of dropping and drop without changing the damage that has accumulated on it. If a piglin is hit while inspecting a gold ingot during bartering, they will put it in their inventory. This gold ingot will be 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 if killed by player or tamed wolf.

Behavior
Piglins are hostile to a player, unless he wears at least one piece of gold armor. With it, they become neutral, but still attack if provoked. Piglins are provoked by breaking or opening a chest, trapped chest, ender chest, barrel, or a shulker box in their sight, or mining a block of gold in their sight.

Piglins attack wither skeletons, but only if there is at least one other piglin nearby. They also attack adult hoglins occasionally. Baby piglins are passive and never attack anything, they play with baby hoglins, running around or mounting. Iron golems attack both adult and baby piglins; piglins won't attack an iron golem until it attacks first.

When attacking, an adult with a crossbow 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 equippable items just rush.

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.

When in the Overworld, piglins transform into zombified piglins after about 20 seconds. When they transform, they lose all their armor and held items and gain a golden sword. Upon transformation, the newly spawned zombie pigman has the Nausea effect for 10 seconds. This does not occur in the End.

Piglins that are not currently attacking retreat from zombie pigmen, 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 immune to fire damage unless affected by fire resistance.

Picking up items
Any piglin can pick up and equip any gold related item, regardless of their ability to pick up other items. While doing so, piglins "contemplate" the specific item by looking at it for a moment.

Piglins have eight hidden inventory slots in which they can 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 are nearby it they instantly place it in their inventory. Piglins drop any of these items upon death aside from gold ingots, raw porkchops and cooked porkchops.


 * Items that piglins want:


 * Items crafted ingredient in gold but not interested:
 * Firework Star (Star shape)
 * Netherite Ingot
 * Powered Rail

Trivia

 * Piglins are one of only four mobs in the game that can willingly give items to a player; others being villagers, wandering traders and cats.
 * Despite unlocking the "Monsters Hunted" or "Monster Hunter" advancement when killing them, they do not despawn in peaceful difficulty.
 * Adult piglins cannot ride on other entities; if summoned as a passenger they immediately dismount.
 * They are also one of only two mobs that can wield crossbows, the other being pillagers.