Piglin

Piglins are neutral mobs that inhabit the Nether. They are equiped with crossbows or golden swords.

Behavior
Piglins are naturally hostile to the player, unless the player wears gold armor. They also always attack wither skeletons and sometimes adult hoglins. They have an adult and baby variant, as zombie pigmen and hoglins; they avoid nearby zombie pigmen and soul fire.

About its hostility, a piglin with crossbow will shoot arrows each 2 seconds, and walk backwards as soon as the enemy is close. Unlike skeletons and illusioners, they will not strafe from left to right while doing this; piglins with swords just rush at a player, etc.

Baby piglins are not armed; they may pick up some items instead.

Even if the player wears gold armor, piglins will become aggravated towards the player if they open a any chest near the piglin, regardless of the contents. The player will be able to "barter" (similar to trading) with the player. To barter with piglins, players have to throw them a gold ingot and piglins will throw them an item in exchange.

When in the Overworld, Piglins will transform into Zombie Pigmen after about 20 seconds. When they transform, they will lose all their armor and held items and will be given a Golden Sword as with regular Zombie Pigmen. Upon transformation, the newly spawned Zombie Pigman will have the Nausea effect for about 10 seconds.

Sometimes a Piglin can spawn wearing golden armour.

Bartering
To barter with piglins, players have to throw them a gold ingot and piglins will throw them an item in exchange. Those items are Flint, Rotten Flesh, Leather, Soul Sand, Brown Mushroom, Red Mushroom, Gravel, Nether Brick, Shroomlight, Fire Charge, Raw Porkchop, Obsidian, Glowstone Dust, (Very Rare) Warped Nylium, Warped Fungi, Crimson Fungi, Magma Cream, Nether Quartz and Ender Pearl.

Drops
Piglins currently do not drop any items.

Barter items
By right clicking the piglin with gold ingot in hand or dropping an ingot nearby a piglin you can get one of these: