Zombified Piglin

A Zombie Pigman is a mob that spawns naturally in the Nether and appears in the Overworld near nether portals. One can also be created when lightning strikes within 3-4 blocks of a pig, which is a very rare occurrence. Like wild wolves, Zombie Pigmen are not initially hostile, but all Zombie Pigmen in the area will converge on the player if a single Zombie Pigman is attacked. This only applies to the player; mobs that provoke Zombie Pigmen will only be attacked by that specific Zombie Pigman. In the Pocket Edition, they are automatically hostile. Their texture and animations are also slightly different.

Behavior
Zombie Pigmen often spawn in groups of 4. However, groups can merge and form an even bigger group. They spawn twice as much as Ghasts in The Nether. When idle, Zombie Pigmen move relatively slowly, but when attacked their speed will significantly increase. Also be very wary of attacking one since all other zombie pigmen in a 32 block radius will be alarmed and also turn hostile towards you. It is commonly believed that zombie pigmen will become neutral after 400–799 ticks (20–40 seconds), however this isn't true; they remain hostile until they despawn or are killed, much like aggressive wolves. If provoked they will make an aggressive noise every 0 to 39 ticks. Zombie Pigmen sometimes catch fire during the day, but it is immediately extinguished. It is because a Zombie Pigman is actually a modified zombie, and zombies catch fire during daylight and die, while Zombie Pigmen are immune to fire. Unlike zombies, Zombie Pigmen do not bang on or break doors (even when hostile), nor do they attack villagers. As of 1.6.2 Zombie Pigmen have a chance of spawning as Baby Zombie Pigmen. They have no hat layer on the skin, and only has the skeleton part of the skin. Baby Zombies also are missing their hat layer.

Pocket Edition
In the Pocket Edition, they are automatically hostile. However, unlike the PC and the Xbox Edition, they do burn in the sun like zombies and skeletons, but they don't die.

Player Interaction

 * Pushing a Zombie Pigman off a cliff or otherwise causing environmental damage to them will not cause response.
 * However,damaging Zombie Pigmen with TNT will cause response.
 * If provoked, Zombie Pigmen will crowd around and try to get at the player by ganging up on you viciously.
 * 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 (on Normal difficulty), and they are faster than the player's normal speed.  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.
 * While in pursuit of the player, they act like pigs being led by carrots. They will not try to go around objects or traps to get to the player, which can be exploited to escape or kill them easier.
 * If the player enters a portal and returns, any provoked Zombie Pigmen in the area will not eventually become neutral (unless they despawn or die) and sometimes they can enter the portal and chase the player down.
 * Switching the difficulty to Peaceful will cause them to de-spawn completely and resets their neutrality in other difficulties.
 * A player's death does not cause Zombie Pigmen to become neutral towards them, whether caused by the pigmen or not.
 * The range for enraging Zombie Pigmen is twice the range at which they will see and pursue you; that is, 32 blocks for provoking, and 16 for pursuit. This can cause the false effect of them becoming neutral, but if you return into the pursuit range you are still in danger.
 * If the player is riding a pig when lightning hits it a Zombie Pigman will appear on top of the player.
 * Zombie Pigmen are capable of spawning adjacent to the bottom row of obsidian in the portal frame.
 * Zombie Pigmen are capable of drowning.
 * Zombie Pigmen 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.
 * Most Zombie Pigmen will gladly trade you their gold sword for a better one (this chance increases on harder difficulties). However, in doing so the Zombie Pigman's already strong attack strength will increase. It is highly advised that players avoid dropping their sword, for the Zombie Pigman will use it against the player.
 * 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.
 * Zombie Pigmen have no pathfinding, so putting a block in front of you will stop the pigman. When in a group, a small wall will stop them from getting to you, also.

Appearance
Zombie Pigmen are humanoids covered with a mixture of pink flesh (like a pig's), and green, rotting flesh, with some bones visible. They wield a golden sword in their right hand, and wear a loincloth. Occasionally, the golden 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 also 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 the 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.

Combat
To an unprepared or careless player, a charging group of Zombie Pigmen can mean a swift death. However, fighting Zombie Pigmen becomes feasible when you can manage which of them become hostile and which remain neutral. Zombie Pigmen attack on the basis of 'seeing is believing', meaning that they only become hostile when they see one of their own being attacked by the player. Once this happens, all Zombie Pigmen within a 32 blocks radius become hostile. Those which are also within a 16 block radius will charge the player immediately. Those between the two ranges are made hostile, but cannot see the player. However, if they happen to wander within the shorter range, or the player approaches them, they too will charge. This forces you to defend yourself against them, therefore angering yet more Zombie Pigmen near the new fight. Since these mobs are quite common, a player may find themselves constantly in battle! Zombie Pigmen will also notice attacks through walls. The hostility radius is centered around the Zombie Pigman that was attacked, not the player, meaning that you can attack a far-away Zombie Pigman with a bow without nearby Zombie Pigmen becoming hostile (although this is not advisable).

By keeping these rules in mind, it is possible to safely pick off groups of Zombie Pigmen with a bow, or to kill isolated Zombie Pigmen, provided that the other members of the group are outside their aggressive range. This can be used to collect Gold Nuggets (50%) and Rotten Flesh (50%). The fact they drop gold nuggets is very useful if gold is not readily available and/or hard to find in your overworld, for 9 gold nuggets can be crafted into a Gold Ingot.

A way to kill them without great difficulty is to create a "booth" - a structure with four walls each three blocks tall, two of them (that must meet at a corner) having gaps at the second block up. A player can mine one block out of the bottom of one of the partial walls and attack a Zombie Pigman, then quickly go back inside and close the way in, then use strike-and-run tactics, running up to the walls with the gaps in them, hitting a Zombie Pigman, then running to the closed corner before it can retaliate, continuing until they are all dead. A bow or stone/iron/diamond sword speeds this process up significantly, the first by allowing the player just to sit in the closed corner and shoot, and the second by reducing the number of hits required. If possible, the booth should be made out of Cobblestone as this will make it invulnerable to Ghasts.

An easier tactic is to build a column three blocks high. From here, you can either hit Zombie Pigmen or shoot arrows. They will swarm you, as well as push you around, but you will not receive any damage as long as you remain on the column. A disadvantage is that Ghasts can shoot at you and set you on fire (made more dangerous in the Nether since water can't be placed there). It can possibly destroy your tower unless it is made of a type of stone, and ghast fireballs can also push you off.

Soul Sand slows down Zombie Pigmen considerably, allowing the player to escape or fight a crowd of them more easily. It can also be used to make a one way door by placing the Soul Sand in front of the side of the door you want to block (see below).

Zombie Pigmen, Skeletons and Zombies can be damaged by Splash Potions of Healing, and will be healed by Splash Potions of Harming. In addition, a sword enchanted with Smite will do extra damage to Zombie Pigmen. However, due to their fire resistance, swords enchanted with Fire Aspect will only do normal damage.

Another great way to deal with a pack of charging Zombie Pigmen is to either have a sword enchanted with Knockback, or to backpedal while attacking them, as they can outrun you if you don't sprint or drink a potion of Swiftness. This is not advisable since the Nether is full of sudden drops and lavafalls that can cause you harm.

An entertaining tactic is to build a bunker with walls composed of diagonally adjacent cacti, throw a snowball from inside, and watch as your target and all their nearby friends beat themselves to death against the cacti. However, this tactic will only yield gold nuggets unless you add in a few attacks of your own, and it's imperative that you take precautions against a pigman climbing over any 1-high cacti in the wall. You can also simply seed an area commonly traveled by zombie pigmen with a few cacti, which (slowly) thins the numbers and creates the odd nugget.

If Zombie Pigmen often spawn near a cliff, you can dig a three-block-deep tunnel into the cliff, with a Soul Sand one-way gate, and a tunnel with a door for you to use. The Pigmen will swarm the entrance but be unable to enter, and you can stand just outside their attack range and kill them with a sword or bow. Beware: sometimes, when you hit a Pigman, he will bounce oddly and penetrate the gate, especially if others are crowding behind him. This same type of fortress can be made with a 5x5 floating roof surrounded by the sand barrier, but this leaves you exposed to Ghasts and also allows the Pigmen to "ping-pong" you if you get dislodged from the center square.

A useful thing to note when fighting Zombie Pigmen is that they do not share the pathfinding abilities of Zombies and Skeletons. When angered, they blindly charge directly at the player, making no attempt to avoid obstacles in their path. This means that they can easily be lured off cliffs, into cacti, or into a 2-deep trench where they will be trapped.

Farming


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

To construct a farm in the Nether, build platforms for Zombie Pigmen to spawn on, with trapdoors on the edge, and place Slabs on the floors of all surrounding areas (or just fill them in) so Pigmen only spawn on your platforms. You can then use Lava flows to collect the Zombie Pigmen into a central area.

To build a farm in the Overworld, construct a rectangular prism of interlocking Nether Portals (to save Obsidian) and put open Trapdoors on the edges of the two bottom Obsidian blocks so that the Zombie Pigmen walk off. From here, you can use Water to collect the Zombie Pigmen into a fall or suffocation trap.

Using a fall trap has the benefit of automation, but with a suffocation trap, you are able to use pistons to control the amount of damage to the Pigmen. This way, you can obtain rare drops by finishing off the Pigmen yourself, perhaps with a Looting enchantment.

Spawn rate
When ticked the block generates a number between 0 and 2000 inclusive, if that value is less than the difficulty setting, a pigman is generated. This means more pigmen will spawn the higher the level of difficulty.

History
The green liquid in the Zombie Pigman skin was originally blood red, but this was changed for an unknown reason. 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.

Trivia

 * It is possible to use Zombie Pigmen as a shield to block Ghast fireballs, just as you could use mobs to block skeleton arrows in the Overworld. This method can also be used to easily obtain a Gold Nugget without ever turning Zombie Pigmen hostile to you.
 * Oddly enough, Zombie Pigmen do not have an arm animation when they hit a target, unlike armed Zombies and Wither Skeletons.
 * Like all other zombie-type mobs, they have a chance to spawn with the ability to pick up items.
 * A direct hit by a Ghast's fireball will cause a Zombie Pigman to run directly towards the Ghast and attempt to attack it, should it survive the explosion. 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.
 * Since Ghast noises travel exceedingly far, it is a common misconception that Zombie Pigmen make the high-pitched whines that actually belong to Ghasts.
 * 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 the aforementioned Ghast noises.
 * Like all mobs, 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.
 * 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.
 * Zombie Pigmen will turn hostile towards the player even when hit by "non-harmful" projectiles such as eggs, ender pearls and snowballs.
 * 50% of Zombie Pigmen will drop a Gold Nugget.
 * If shot by a skeleton, only the Zombie Pigman shot will attack it.
 * On Halloween Zombie Pigmen sometimes spawn with pumpkins or Jack 'o' Lanterns on their heads.
 * Zombie pigman spawners cannot be disabled with torches or any light. They will spawn in any light level.
 * You can teleport a neutral Zombie Pigman by pushing it into the Nether Portal, just like any other mob.
 * In 1.4.6 and later versions, Pigs turned into Zombie Pigmen via lightning in the overworld will not wield golden swords, but if spawned with a spawn egg they will wield their gold swords in the overworld.
 * 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.
 * When a sword is dropped near a Zombie Pigman they will occasionally drop their sword (but only if their sword is enchanted) and replace it with the one dropped.
 * If a 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.
 * 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 mess-with-one-mess-with-all mechanic, hitting a Zombie in the presence of zombie pigmen will not anger them.
 * If you leave the Nether (including by dying), any provoked Zombie Pigmen in the area will remain that way until they despawn or are killed. Do not let this happen if the pigmen can reach your portal, as this will result in them effectively spawn-camping you.
 * Zombie Pigmen are immune against lightning, due to their resistance to fire.
 * Villagers are afraid of Zombie Pigmen. If a Zombie Pigman is close to a Villager, the Villager will run away. However, Zombie Pigmen will not give chase to Villagers if one is nearby.
 * When riding a minecart, a hostile Zombie Pigman can slowly move the minecart by itself along the rail while trying to chase the player.
 * The pigmen in the pocket edition and the baby pigmen that rarely spawn are missing the face layer, which is the pig part, and just have a skull. These are likely bugs.
 * Zombie Pigmen DO burn in sunlight, however their immunity against fire-based damage prevents them from being harmed by it, and the fire disappears after about a fraction of a second.
 * In Pocket edition, zombie pigmen do not hold out their hands like zombies, instead they have their hands to their sides similar to the player . Also, unlike the PC and other editions, they have an attack animation which is identical to that of the player.
 * When trying to sleep at night while a neutral zombie pigman is nearby, the zombie pigman will be treated as a hostile mob, giving the message "You may not rest now, there are monsters nearby.", whether or not the zombie pigman is neutral towards you or not. This also applies to Endermen and Spiders.
 * As they are undead, Zombie Pigmen are healed by Splash Potions of Harming, and harmed (and thus provoked) by Splash Potions of Healing.
 * Baby zombie pigmen can only spawn with only a skull or only dead pig flesh. It appears it can't spawn with both.


 * As of 1.6.2, Baby Zombie pigmen will spawn 5% of the time when spawned in the nether, or from Spawn Eggs.
 * 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.
 * They can drop their sword, but have an even rarer chance for it to be used.
 * 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.
 * Zombie Pigmen spawning in the Nether wield Golden Swords when gold does not exist naturally in the Nether.