Minecraft wiki entry for Bartering_farm, associated text: Piglins are neutral mobs that spawn in crimson forests, nether wastes, and bastion remnants. Piglins are also armed with crossbows and gold swords. An easy way to make them friendly with you is to wear any piece of gold armor. It is recommended to use the boots section, which is the cheapest and leaves the other armor slots for more powerful armor. It is also a good idea to build a piglin farm away from zombified piglins, soul fire, soul torches, soul campfires, and soul lanterns, because they will run away from them. An exception is if they are caged up with blocks. These objects can also be used to lead piglins to a certain place. Also, piglin farms must be built in the nether, or else piglins will zombify.