Pig

Pigs are rideable passive mobs.

Spawning
Pigs are 0.875 blocks tall

Pigs spawn on grass blocks at a light level of 9 or more. Herds of pigs spawn upon world generation.

Drops
Pigs drop 1–3 pieces of raw porkchop (1–3 units of cooked porkchop if killed while on fire). Baby pigs don't drop anything. Pigs also drop 1–3 experience when killed by a player or tamed wolf. They also drop saddles if saddled.

Behavior
Pigs typically roam the Overworld in groups of 4.

Pigs act similarly to other passive mobs; they will wander aimlessly, avoiding falling off cliffs high enough to cause fall damage, and will usually stay out of water. Pigs will follow any player who is carrying a carrot, carrot on a stick, potato, or beetroot, and will stop following if the player moves over approximately 5 blocks away from the pig. Pigs will also randomly oink.

When struck by lightning, pigs turn into zombie pigmen.

Breeding
Pigs can be bred using carrots, potatoes, and beetroots (though only carrots work in the Console Edition). It takes about 5 minutes before the parents can be bred once more, which applies to all farm animals. It takes at least one full Minecraft 'day' (20 minutes or more) for piglets to mature. The appearance of a piglet is roughly similar to that of an adult pig, having the same sized heads, but noticeably smaller bodies. Piglets will stay around their parents until they mature, although the parents cannot protect the piglet(s) from harm.

The growth of baby pigs can be slowly accelerated by feeding them. Each use takes 10% off the remaining time to grow up.

Riding pigs
Saddled pigs are controllable with a carrot on a stick. They start slow but end up going 4.00 m/s. Pigs can be controlled through 1-block-high bodies of water with a carrot and stick, but any deeper and they will throw the player from their back. the carrot on a stick while riding a pig will cause it to accelerate to a burst of speed, taking 7 durability from the carrot and stick. It is not necessary to continue holding the carrot on a stick once the pig has begun having the burst of speed. Damage is taken by the part that was hit; fall damage is taken by the pig. However, it does not cause any knockback nor any decrease of movement speed.

Data values
Pigs have entity data associated with them that contain various properties of the mob. Their entity ID is.

Trivia

 * Saddled pigs in minecarts behave strangely:
 * If the player mounts the pig and uses the opposite controls for direction, the speed of the minecart will be boosted to the same speed as a minecart travelling on powered rails.
 * The minecart, ridden or not, will not come to a stop unless it hits a block. Other entities and unpowered gold rails will only slow it to a minimum speed.
 * Also, if you sit on a saddled pig in a minecart that isn't on a track, you are able to control the minecart and drive it around like a car (although it is very slow).
 * One of the splashes which shows up on the title screen reads "Ride the pig!".
 * The house-music artist deadmau5 released a song titled "Get In The Cart, Pig" (later named "Fn Pig"), in a direct reference to Minecraft.
 * If a saddled pig is struck by lightning, it still transforms into a zombie pigman and the saddle is lost. The player is ejected from the pig if the player was riding it.
 * You can still see a pig's saddle when it is under the effect of Invisibility. This does not occur in the Pocket Edition.