Piglin

Piglins are hostile mobs that spawn in the Nether. They are equipped with crossbows or golden swords. They are naturally hostile towards the player, but become neutral if the player wears golden armor.

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 with golden armor. Baby piglins spawn without any equipment.

Drops
Piglins have 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.

Naturally-spawned equipment

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

Experience
Piglins drop experience if killed by player or tamed wolf.

Behavior
Piglins are naturally hostile to the player, unless the player wears at least one piece of gold armor. By doing so, they become neutral, but still attack the player if provoked. Piglins are provoked not only by the player attacking one of them, but also by breaking 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 when they are hungry.

Baby piglins are passive and never attack anything. They also play with babay hoglins, similarly to how baby villagers play with each other. They cannot pick items up.

When attacking, an adult piglin 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 other bow-armed mobs, they do not strafe from left to right while shooting. Piglins with swords and other equippable items just rush at a 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.

When in the Overworld, piglins transform into zombie pigmen 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 about 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 are capable of opening doors.

Piglins drown in water. They do not swim.

Like hoglins, despite being a nether mob, piglins are not immune to fire and/or lava 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 that currently have crossbows can trade those out in order to hold any other gold related item instead (apart from gold ingots, which are consumed in bartering), even if it is not actually a weapon, and drop the crossbow on the floor.

Piglins have eight hidden inventory slots. Baby piglins attempt to pick up any item and can steal from player. Adult piglins can pick up any golden item and porkchops. Golden apples, their enchanted variant, golden carrots, and porkchops are the only items piglins store in their inventories.

Trivia

 * Piglins receive damage from both fire and lava, as do hoglins.
 * The attack strength of piglins varies a lot in all difficulties.
 * Piglins are one of only three mobs in the game that can willingly give items to another player (through bartering), the others being villagers and wandering traders (through trading).
 * Despite unlocking the "Monsters Hunted" or "Monster Hunter" advancement when killing them, they do not despawn in Peaceful difficulty.
 * Piglins cannot ride on other entities; if summoned as a passenger they immediately dismount.
 * Piglins are also one of only two mobs that can wield crossbows, the other being pillagers.
 * A mob similar to piglins, the pigman, was a mob that was originally supposed to inhabit villages but scrapped in favor of villagers.