Minecraft wiki entry for Development_versions, associated text: Spawn in crimson forests and nether wastes biomes.
Randomly spawns with golden sword or crossbow.
Adults are hostile; babies are passive.
Will not attack players wearing golden armor.
Adult piglins turn aggressive when a player is mining blocks of gold or opening chests, even if they are wearing gold armor.
The player can barter with them by right-clicking with golden ingots or drop them on the ground, which makes them drop at least one item or block.
Common barters (10⁄109 or about 9.17%) are 1–4 soul sand, 1–4 brown mushrooms, 1–4 red mushrooms, 1–4 crimson fungi, 1–4 nether bricks, 3–8 flint, or 4–12 rotten flesh.
Uncommon barters (5⁄109 or about 4.59%) are 1 shroomlight, 1 fire charge, 4–12 gravel, 2–5 porkchops, 2–7 leather, or 1–2 warped fungi.
Rare barters (2⁄109 or about 1.83%) are 2–4 glowstone dust, 1–3 magma cream, or 2–4 ender pearls.
Very rare barters (1⁄109 or about 0.92%) are 1 warped nylium, 1–4 quartz, or 1 obsidian.
Attack adult hoglins sometimes.
Baby piglins do not attack and adult piglins will not attack baby hoglins.
Attack wither skeletons.
Avoid soul fire, soul fire torches, soul fire lanterns, and zombie pigmen.
Prefer to hunt and fight in groups.
Will convert to a zombie pigman when in the Overworld.