Zombified Piglin

Zombie pigmen or zombified piglins are undead neutral mobs that mainly inhabit the Nether.

Spawning
They spawn in some Nether places, from Nether portals or from pigs struck by lightning.

5% spawn as babies.

Adults spawn with a golden sword, which has a small chance of being enchanted in Normal or Hard modes: from 0 to 25%. This chance varies depending on the regional difficulty as the sword's enchantment is from 5 to 23 levels.

On Halloween (October 31), zombie pigmen have a 22.5% chance of spawning with a pumpkin or a 2.5% chance of spawning with a jack o'lantern equipped as headgear.

Nether
Groups of 4 spawn in nether wastes and crimson forests at light level 11 or lower.

In lava seas, they are found riding striders sometimes.

Portals
When a nether portal block in the Overworld receives a block tick, there is a possibility ($1/2000$ (0.05%) on Easy, $2/2000$ (0.1%) on Normal, and $3/2000$ (0.15%) on Hard) for it to spawn. They appear inside one of the portal blocks on the bottom.

They spawn one block to the east or south of the portal (depending on which direction the portal is facing) and neither slabs nor lighting prevents this.
 * Bedrock

Pigs
It spawns when lightning strikes within 4 blocks of a pig.

Piglins
A piglin that enters the Overworld transforms into a zombified piglin after 15 seconds. It also has a 5% chance of becoming a chicken jockey.

They also transform in the end.
 * Bedrock

Baby zombie pigmen and chicken jockeys
5% of babies spawn as a chicken jockey. Baby piglins can also turn into them while in the Overworld.

Drops

 * 0–1 . The maximum amount is increased by 1 per level of Looting, for a maximum of 0-4 with Looting III.
 * 0–1 s. The maximum amount is increased by 1 per level of Looting, for a maximum of 0-4 with Looting III.
 * 2.5% chance to drop a if killed by a player or tamed wolf. The chance is increased by 1% per level of Looting, for a maximum of 5.5% with Looting III.
 * 8.5% chance to drop their if killed by a player or tamed wolf. The chance is increased by 1% per level of Looting, for a maximum of 11.5% with Looting III.
 * All items picked up after spawning are dropped upon death.
 * for adults, for babies and an additional  per naturally-spawned equipment when killed by a player or tamed wolf.

The dropped swords have a durability from up to 32.

Pumpkins and jack o'lanterns
If one wearing a pumpkin or jack o'lantern is killed using a tool enchanted with Looting, there is a probability equivalent to the level of Looting used to drop the pumpkin or jack o'lantern, for a maximum of a 3% at Looting III.

Behavior
Zombiefied piglins move slowly, but their speed increases when they are attacking.

They bang on wooden doors and may break them on Hard.

In Normal or Hard, up to 55% of them pick up swords better than their golden one, which is drop in 9.5% of times.

Turtle eggs are tried to be destroyed when they see within 23 blocks away, not counting the block they are standing in.

Undead mobs, zombiefied piglins are damaged by the status effect Instant Health and healed by the status effect Instant Damage. Regeneration and Poison unaffect. They are ignored by the sunlight, withers and are more harmed by Smite.

Hostility
They are not initially hostile, but all zombiefied piglins within a 67×21×67 to 111×21×111 area centered on the attacked mob become aggressive and converge on the player (all of the players if she or he is in multiplayer mode) unless it's killed in one hit. In addition, some spawn reinforcements when attacked, similar to zombies. This applies to most attacks, even ghast fireballs, from sweep attacks, snowballs, eggs, or a skeleton arrow. This does not include fireworks shot from crossbows or dispenser-shot arrows.

The hostility is from 20 seconds to 27 minutes (limited by the Anger NBT tag type). Approaching within 35 blocks of an already hostile mob causes it to sound an alarm call, angering others wuthin 40 blocks. The forgiveness timer does not advance for those in unloaded chunks. Therefore, if the user enters a nether portal and returns, any provoked zombiefied piglins in the area remain aggressive unless another player was nearby to keep the chunks loaded. Dying does not cause zombie pigmen to become neutral. They pursue a player even if they have the Invisibility effect.

Neutral zombiefied piglins do not prevent a player from sleeping in Java Edition.

Sounds
Java Edition:

Data values
Zombified piglins have entity data associated with them that contain various properties of the mob.

Trivia

 * The pre-Texture Update zombie pigman skin file has "THX XAPHOBIA" written on the unused section as a credit by Notch to the skin's original creator.
 * If a mob attacks a zombie pigman, they all become aggressive toward that mob, and when the mob is killed they remain aggressive for several seconds and attack any nearby player without provocation.