Pig

Pigs are passive mobs that first appeared in Survival Test mode. The main purpose of pigs is to supply raw porkchops, and therefore are a renewable source of food. Pigs are 1.1875 blocks tall, 0.625 blocks wide and 1.25 blocks long.

Behavior
Pigs wander around aimlessly. When they come to an obstacle, they will often try to breach it by jumping. This makes for some odd behavior when they can't get over the obstacle (random continuous jumping). They will make no attempt to stay out of water, and a common sight is several pigs bouncing up and down in the water. If you stand near a pig, it will turn its head towards you for a few seconds, then resume its wandering. Pigs often spawn in groups of 3-4. Like all other passive mobs, they move entirely randomly, and although it can appear that they are attracted to light, this is not the case. It is a common sight to see passive mobs clustered in lit areas at night, but this is only because that is the only place they can spawn, and they will often wander out into the dark.

Information & History

 * The default mob a monster spawner spawns is a pig, and therefore if a mob spawner is placed by the player, it will spawn pigs if there is grass with a light level above 9 within five blocks of the spawner.
 * Pigs are ridable with a saddle, but you are incapable of controlling movement.
 * In Beta 1.5, there is an achievement for riding a pig off a cliff.
 * Riding a pig into a portal, like all vehicles, will leave you stuck in the teleport animation. If you close minecraft and restart, you will be in a freshly generated nether location. Upon dying, you will lose your previous nether.
 * In Beta 1.5, pigs struck by lightning will turn into zombie pigmen.
 * A monster spawner on a SMP server will always have a miniaturized pig in it, no matter what mob it spawns.
 * In Beta 1.5, if a pig is lit on fire and dies from it, it will instead drop a Cooked Porkchop.

Appearance

 * Pigs, like sheep and creepers have a separate armor file (the saddle), but do not spawn with it.
 * The original pig texture has its eyes closer together.

Drops
Survival Test
 * 0-2 Brown Mushrooms

Alpha
 * 0-3 Raw Porkchops

Beta
 * 0-3 Raw Porkchops
 * 0-3 Cooked Porkchops (When killed whilst on fire)

Bugs

 * If a pig is struck with lightning (or close enough to a lightning strike to do damage) the Pig will simply diasapear without showing any animation for being electricuted,taking damage or morphing (into a Zombie Pigman) and will not morph or leave any drops.
 * If you hit a pig with a saddle (by left-clicking) it will do normal damage but it will also place the saddle on the pig.
 * If you ride a pig into a portal your game will crash. When you reload your world all your items are gone and you are back on your spawn-point.
 * If you save and quit while riding a pig the "Saving Chunks" bar will not fill up properly and can stop filling up and appear to be frozen before it suddenly opens the main menu (without the bar filling up any more)