Zombified Piglin

A Zombie Pigman is an irregural mob that spawns naturally in the Nether and appears in the Overworld when a pig is struck by lightning. Like wild wolves, zombie pigmen are not initially hostile, but they will converge on the mob or player as a group to attack them if a single member is attacked.

Behavior
Zombie pigmen roam the Nether in packs of 4 - 10 and making grunting and squealing noises, avoiding cliffs and Ghasts. Attacking one zombie pigman will cause the entire group to turn hostile and swarm the player. Pushing a Zombie Pigman off a cliff will not cause response. An aggravated group of pigmen is a force to be reckoned with, as each member will deal of damage to the player per sword hit.

If the player distances themselves from the hostile group, waits in a safe location, or enters a portal and returns, the zombie pigmen will eventually "forgive" the player and become neutral again. Switching the difficulty to Peaceful will cause them to de-spawn completely and reset their neutrality in other difficulties.

Zombie pigmen are effectively capable of drowning if under water for an extended period of time. When swimming in lava, they collect theoretical vertical momentum, and upon contact with a solid floor, sustain fall damage. This has often lead to the misconception that they can drown in lava. When walking in the Overworld, Zombie Pigmen will spontaneously combust at random times; Fire will engulf them for a split second, but then disappear without appearing to cause them any harm. The brief flicker of flames will also occur if it is struck by lightning a second time.

Combat
Because they are well-armed with gold swords and have a horde mentality, zombie pigmen are incredibly dangerous to the unprepared player, especially given the presence of ghasts and the treacherous terrain of the Nether. Those attempting to flee from a few angry pigmen can find themselves cut down by a multitude of their brethren converging on them from all corners on the path in front of them.

Since it is difficult to engage a single zombie pigman without several more joining the fray, a player should have a full set of armor, a sword (preferably diamond), a bow, and plenty of arrows before heading out.

History
Zombie pigmen, the first completely neutral, non-passive mob, were introduced in Alpha as a part of the Nether update along with ghasts. The green liquid in the zombie pigman skin was originally blood red, but this was changed because players expressed a preference for the lack of conventional blood and gore in Minecraft. The skin file has "thx xaphobia" written on it as a credit by Notch to the skin's original creator, XaPhobia, also known as X__x.

Zombie pigmen were originally presented as unarmed passive creatures in a preview before the Halloween update. After Alpha 1.2, their temperament was changed to neutral and they wielded gold swords. Pigmen would never forgive the player for attacking them, but after the Nov. 10, 2010 update, they would revert to a neutral state  after a certain amount of time (if left alone).

After the Beta 1.5 update, pigs struck by lightning in the Overworld would transform into zombie pigmen.

After the Beta 1.9 Pre-release update, zombie pigmen no longer drop cooked porkchops upon death, but instead drop rotten flesh. Also, in the 1.9 Pre-release they have a chance to drop Gold Nuggets, which can be crafted into Gold Ingots.

Trivia

 * Zombie pigmen are mostly immune to lava and fire, but they can take damage from lava because it does not prevent falling damage like water does. Therefore, if they float in place long enough, they can accumulate enough falling damage that they simply die the moment they touch any surface, including land and the bottom of the lake or stream.
 * A direct hit by a Ghast's fireball will cause a Zombie Pigman to run directly towards the Ghast and attempt to attack it. This behavior has only been observed if the Ghast is touching the ground, usually occurring when the Ghast spawns under a low ceiling. This is likely because Zombie Pigmen cannot find a path to an airborne Ghast. However, only the Zombie Pigman which was hit by the fireball will attack the Ghast, nearby Zombie Pigmen will not change their behavior.
 * In the Java coding, zombie pigmen are usually titled "pigzombie" or "zombiepig".
 * Despite holding golden swords, zombie pigmen don't drop them when they die, nor do they break although they do occasionally drop gold nuggets (as of 1.9), which can be crafted into ingots to make a sword. Zombie Pigmen are also capable of dealing more damage on Hard difficulty than the player can with a golden sword.
 * Zombie Pigmen can climb up ladders and attack the player while doing so; however, they will not use this to their advantage, and only use a ladder if it is right in front of them.

Bugs

 * If a player attacks a zombie pigman in multiplayer, they turn hostile to ALL players. If the player who attacked them dies or goes away, the zombie pigmen attack the next player who is closest to them.
 * In multiplayer, if the server has monsters=false and a pig is struck by lightning, it may result in a glitched zombie pigman object that behaves similar to the client-side TNT glitch, it can be passed through, does not move or obey physics and cannot be hit.
 * In the Beta 1.9 pre-releases, upon looking straight at the Zombie Pigmen with fast graphics turned on, the hotbar seems to change colors.