Zombified Piglin

Zombie Pigmen are neutral mobs that spawn naturally in the Nether, and can also appear rarely in the Overworld either when Lightning strikes within 3-4 blocks of a Pig, or near active Nether Portals. Like wild Wolves, they are not initially hostile, but all Zombie Pigmen in the area will become aggressive and converge on the player if any individual is attacked. This only applies to the player; mobs that provoke Zombie Pigmen will only be attacked by that specific individual.

In the Pocket Edition, they are always hostile, but from a shorter distance than for other hostile mobs. Their texture and animations are also slightly different.

Drops
Zombie pigmen drop 0-1 rotten flesh, 0-1 gold nugget, rarely 1 gold ingot and rarely their golden sword. Zombie pigmen that spawned wearing a pumpkin or jack o'lantern may rarely drop it when killed using a tool with the Looting enchantment. In Pocket Edition they also drop feathers, carrots and potatoes.

Behavior
Zombie Pigmen spawn in groups of 4. However, groups may often merge and form an even bigger group. They spawn twice as often as Ghasts in The Nether. When idle, Zombie Pigmen move relatively slowly, but if aggravated their speed will significantly increase. While hostile, they will make an aggressive noise every 0 to 39 ticks.

Zombie Pigmen sometimes catch fire during the day, but it is immediately extinguished; this is due to Zombie Pigmen being a variant of standard Zombies. In addition, some Zombie Pigmen will have the ability to spawn reinforcements when attacked, similar to Zombies. In some cases, the spawned reinforcement will be a regular Zombie. Like zombies, Zombie Pigmen will sometimes bang on wooden doors, and in Hard difficulty, even break them. They cannot damage iron doors. . Like Zombies, they can rarely spawn zombies when attacked, but this is a bug.

Zombie Pigmen have a chance of spawning as Baby Zombie Pigmen. They can also ride chickens much like baby zombies.

Like players, Zombie Pigmen are capable of travelling through nether portals.

Zombie Pigmen can drown but are immune to fire.

Like most mobs, they can ride in minecarts, so if you decide to create a rail in the nether or by a portal to it, it is likely that you'll see one riding in it.

After giving a Zombie Pigman a sword that's better than their own, you can "customize" the Pigman by giving it armor, enchanted or not. In the event you do customize your Zombie Pigmen, it is advised that you change into creative mode, or keep them in a pen. You can reclaim your armor and sword without ever making the Pigmen hostile by using drowning or suffocation traps.

Hostility
If provoked, Zombie Pigmen will crowd around and try to overwhelm the player by ganging up on them. An aggravated group of Pigmen is a force to be reckoned with, as each member will deal points of damage to the player per sword hit (on Normal difficulty, assuming no armor is worn), and they are faster than the player's normal speed. In order to outrun Zombie Pigmen, a player must Sprint, get away on a Horse, or use a Potion of Swiftness. A player may also manage to find a location out of reach of the Zombie Pigmen and their swords (pillar jumping and ladders can help). Ideally, this will let the player kill them without being hurt, though Ghasts may pose a problem. It is useful to know which conditions lead to hostility.


 * When attacked by the player, all Zombie Pigmen within a 32 block radius of the attacked Pigman will become hostile.
 * However, only those within 16 blocks of the player will see and pursue the player. They will begin pursuing if the player enters this range and stop if the player gets further away. This can cause the false appearance of them becoming neutral, but if you re-enter the pursuit range, they will resume pursuing you.
 * Travelling far enough from the area will cause them to despawn and make it safe again, provided you do not attack any other Zombie Pigmen on the way back.
 * Zombie Pigmen will remain hostile for 20–39.95 seconds (losing the speed boost), although they will continue to pursue an already-targeted player after this time until the player dies or escapes their 35 block pursuit radius.
 * Approaching an already hostile Zombie Pigman causes it to sound an alarm call, angering other individuals in a 32-block radius.
 * Pushing a Zombie Pigman off a cliff or otherwise causing environmental damage to them will not make them hostile.
 * However, damaging Zombie Pigmen with TNT ignited with Flint and Steel or flaming arrows will make them hostile (these count as player-induced damage).
 * Similarly, damaging Zombie Pigmen with a redirected Ghast's fireball will make them hostile.
 * Baby Zombie Pigmen can chase the player even faster than normal Zombie Pigmen when provoked, sometimes catching up even when the player is sprinting. This, combined with their ability to squeeze through one-block high gaps, having a one-block high hitbox and their ability to ride Chickens, makes them a more significant threat than their grown brethren if made hostile.
 * The forgiveness timer does not advance for Zombie Pigmen in unloaded chunks. Thus, if the player enters a Nether Portal and returns, any provoked Zombie Pigmen in the area will still be aggressive unless another player was nearby to keep the chunks loaded. It is also possible for aggressive Zombie Pigmen to enter a Portal while the player is still in the Nether, and these individuals will attack the player as soon as they return to the Overworld.
 * For the same reason, dying will not cause Zombie Pigmen to become neutral towards the player, regardless of whether or not they killed you.
 * Switching the difficulty to Peaceful will cause all Zombie Pigmen to de-spawn completely. It will also reset their neutrality if the difficulty is changed to something else afterward, as the newly spawned Zombie Pigmen will be neutral. Baby Pigmen riding chickens will despawn, but their chickens won't, which can lead to the presence of random poultry in the Nether.

Appearance
Zombie Pigmen are humanoids covered with a mixture of pink flesh (like a pig's), and green, rotting flesh, with some bones visible, like a Zombie. They wield a Golden Sword in their right hand, and wear a loincloth. Occasionally, the Sword will have an enchantment on it, visible as a shimmering purple sheen. This chance increases at higher difficulties, and the sword's enchantment will more commonly be of a higher level.

On Halloween (October 31st), Zombie Pigmen have a chance of spawning with a Pumpkin (22.5%) or Jack o'Lantern (2.5%) equipped as headgear. If you want to see this on days other than Halloween, simply change your computer's clock to October 31st; the year or time is irrelevant.

In Pocket Edition, Zombie Pigmen are missing their face (hat layer) and appear to have merely a dry skull for a head (see gallery). It is unknown whether it is a bug or if it's meant to happen. Baby Zombie Pigmen in the PC version also look like this, due to.

Trading
You are able to trade swords with Zombie Pigmen by throwing them a sword that is better than their golden sword. They have a 33% chance of dropping their golden sword and pickup the sword the player threw. This is a good tactic on getting swords with enchants due to Zombie Pigmen having a chance of spawning with an enchanted sword.

Farming
Since Zombie Pigmen spawn in the Nether and in Nether Portals in the Overworld, players can build a Zombie Pigman farm in either dimension which provides a steady stream of Gold Nuggets. Additionally, players can obtain Gold Ingots and Gold Swords as rare drops.

Spawning
Zombie Pigmen are capable of spawning on the bottom row of obsidian in a Nether portal frame, the same way the player spawns when emerging from a portal. When a portal block is ticked the game generates a number between 0 and 2000 inclusive, if that value is less than the Difficulty setting, a Zombie Pigman is generated. This means spawn frequency correlates with the current Difficulty setting.

If the player is riding a pig when lightning hits it, a Zombie Pigman will appear on top of the player.

History
The green liquid in the Zombie Pigman skin was originally blood red, but this was changed for an unknown reason, probably because it looked too gory. The skin file has "THX XAPHOBIA" written on it as a credit by Notch to the skin's original creator, XaPhobia.

Zombie Pigmen were originally presented as unarmed passive creatures in a preview before the Halloween Update.

Trivia

 * If a baby pig gets struck by lightning, it will commonly become an adult Zombie Pigman.
 * If a pig in the overworld is struck by multiple lightning bolts simultaneously, multiple Zombie Pigmen will spawn. However, this is extremely unlikely without using to spawn multiple lighting bolts.
 * The Zombie Pigmen themselves however are immune to lightning due to their immunity to fire.
 * If a Zombie Pigman is hit by a projectile, such as a Skeleton or Ghast, only the Zombie Pigman who was shot will attack it.
 * They will only attack a Ghast if it is touching the ground, usually when the Ghast spawns under a low ceiling.
 * The Ghast's large body also prevents Zombie Pigmen from reaching its hitbox and hurting it.
 * You can hear their sound effects of them being angry far away and even all the way down to the bedrock layer, like thunder and Ghast noises.
 * The Zombie Pigman's armor has no durability (i.e. cannot be damaged). Two points of armor gives 8% damage reduction from most sources. This means that you need to deal  physical damage to kill a Zombie Pigman. It is one of three mobs with this natural damage reduction, the others being the Zombie and the Magma Cube.
 * Zombie Pigmen will turn hostile towards the player even when hit by "non-harmful" projectiles such as eggs, ender pearls and snowballs.
 * Zombie Pigman spawners cannot be disabled with torches or any light; they will spawn in any light level.
 * If a Zombie Pigman wears a mob head, it will only show on the "skeleton" part of its face.
 * This is because the pig half is the hat layer of the Zombie Pigman's skin, and mob heads will not cover the hat layer.
 * The Zombie Pigmen in the Pocket Edition and the Baby Pigmen that rarely spawn do not have a hat layer, therefore lack the pink skin.
 * Zombie Pigmen are one of the three mobs that carry a weapon by default, the other two being the Skeleton and the Wither Skeleton.
 * Despite having a similar mob mechanic, hitting a Zombie in the presence of Zombie Pigmen will not anger them.
 * When riding a minecart, a hostile Zombie Pigman can slowly move the minecart by itself along the rail while trying to chase the player.
 * A Zombie Pigman that can pick up items will take a stone sword (or even a wooden one if it has enchantments) with a chance of dropping their gold one.
 * Occasionally, Zombie Pigmen may swim up lava springs. Due to their fire resistance, though, this will not harm them directly, but they may take fall damage (and possibly even be killed) upon touching solid ground afterwards since lava does not prevent fall damage.
 * In Minecraft Pocket Edition:
 * Zombie Pigmen will burn in sunlight like any other Zombie.
 * However, they still have an immunity to fire, so they will not die.
 * Zombie Pigmen that remained from the Nether Reactor will despawn when the player leaves them.
 * Zombie Pigmen do not hold out their hands like zombies, instead they have their hands to their sides similar to the player.
 * Unlike the PC and other editions, their attack animation is also identical to that of the player.
 * In creative mode, if you get a bunch of Pigmen angered, shoot one with a bow. They'll forget about you and wander off.