Pigman Villagers are passive mobs that inhabit villages, work at their professions, breed, and interact with each other. Their clothing varies according to their occupation. A player can trade with villagers, using rubies as currency.
Pigman Villagers can be found in villages, which spawn in mooshroom island biome.
Each pigman villager spawns with an empty inventory. Pigman Villagers never spawn with armor or other equipment.
A pigman villager, either adult or baby, does not ordinarily drop any items or experience when killed. However, when a player holds an ruby or other item a pigman villager is willing to trade for, the item it offers in trade appears in its hands, alternating between items if there are multiple items the villager wants to trade.
Pigman Villagers, like other mobs, find paths around obstructions, avoiding walking off cliffs and some blocks that cause harm. However, in crowded situations it is possible for one villager to push another off a cliff or into harm. Pigman Villagers also occasionally walk off of ledges high enough to cause fall damage.
Pigman Villagers flee from zombies, illagers and vexes within 8 blocks.
Villagers cannot open trapdoors, fence gates, or iron doors.
Zombification
After spending 15 seconds in the Nether, they become zombified, and will then transform into a Zombie Pigman Villager. You can prevent his zombification by feeding him a ruby carrot.
If a Pigman Villager dies fighting a zombie pigman, zombie piglin, zombie piggy, ancient zombie pigman, zombie pig, zombie hoglin, zombie piglin beast or zombie hog there is a 50% chance of being zombified (on the hard difficulty it is 100%)
If a Pigman Villager dies while fighting a Wither-related entity, there is a 50% chance of withering away (on Hard difficulty it's 100%).
Curing
Giving a zombie pigman villager the Strength effect and then feeding it a ruby carrot starts the curing process. After five minutes, it transforms into a pigman villager, displaying purple Nausea status effect particles for 10 seconds after being cured. (The zombie pigman villager must be in the overworld or the end, otherwise he will not be able to heal.)