Some text from Minecraft Wiki used under Creative Commons Attribution-Share Alike License 3.0
Health Points | 10HP (5x ) |
Attack Strength | None |
Drops | 1-3 Raw Porkchop (cooked porkchop if killed by fire) |
Spawn | Light level >9, on grass Blocks |
Experience Points | 1-3 |
Pigs are good for porkchop gathering. First, the Player should make a fenced area 4 blocks wide and 1 block deep with a fence gate , then lure a pig into the farm with carrots. After getting at least two, breed them as often as possible, by right-clicking on them with carrots or wheat in your hand, and kill one every time there are three or more than 4 adults.
For one to ride a pig, one must first find a saddle in a Dungeon , Desert Temple , or Jungle Temple , as they are uncraftable. You must then put it on the pig by left-clicking and once done, the pig will be mountable with an orange saddle. You are unable to control the pig's movement, however you can control the direction the pig is walking when holding a Carrot on a Stick . You can also increase the speed by right-clicking on a block.
You can also obtain an achievement by riding a pig, and having it take fall damage by, quote, "You just died!".
Pigs can be fed carrots, and they enter Love Mode. When two pigs are in love mode within 16 blocks of each other, they can make a baby pig. Piglets will follow their parents. It takes one full Minecraft day (or 20 minutes) for the piglet to grow into a fully-grown Pig.
See here