Pig

A pig is a common passive mob found in most grassy biomes. Pigs are a source of porkchops and can be equipped with a saddle to be driven.

Spawning
Most pigs are adults but 5% of pigs spawn as baby pigs.

Natural generation
Pigs spawn in groups of 4 above grass blocks at a light level of 9 or more in any grassy overworld place except in snowy tundras and wooded badlands plateaus. Individuals rarely may spawn on grass after the world generation.

Drops
An adult pig drops:
 * 1–3 raw Porkchop or Cooked Porkchop if killed while on fire. The maximum amount is increased by 1 per level of Looting, for a maximum of 1-6 with Looting III.
 * 1 saddle if saddled
 * 1-3 XP if killed by a player or tamed wolf
 * 1-7 XP upon breeding

Killing a baby pig yields no items nor experience.

Behavior
Pigs oink and typically roam the Overworld in small groups avoiding hazards and cliffs high enough to cause falls. A pig flees for some seconds when harmed.

When a pig or piglet is struck by lightning, it transforms into a zombie Pigman or baby zombie pigman, respectively. If the pig was equipped with a saddle, the saddle is lost and the player dismounts. If lightning strikes a pig in peaceful difficulty, the pig does not transform but takes normal damage from the strike.

Breeding
Pigs follow players within six blocks and breed using carrots, potatoes and beetroots.

It takes 5 minutes before the parents can breed again. The piglets mature in 20 minutes and stay near their parents; feeding them reduces the remaining time to maturity by 10%.

Driving
It is possible to ride a pig by using a saddle on it. When a saddle is used on a pig, the pig might stare at the player for a few seconds. Saddled pigs are controllable with a carrot on a stick. They start slow but accelerate to 5.20 blocks/s. Pigs can be controlled through 1-block-high bodies of water with a carrot and stick, but deeper water causes the player to dismount. Using the carrot on a stick while riding a pig makes it run faster at the cost of 7 durability. Fall damage is taken by the pig, without causing any knockback or slower movement speed. Baby pigs cannot be saddled and ridden.

Trivia

 * The pig is the oldest existing passive mob in the game.
 * The player can travel through a space with a 1 block height by riding a pig.
 * Regular Minecraft pigs somewhat resemble the Yorkshire, which is a common, pink breed of pigs.

History

 * Pigs were added in Xbox 360 TU1, Xbox One CU1, PlayStation 3 1.0, WiiU Patch 1, and Nintendo Switch 1.0.1.
 * In Xbox 360 TU5, the texture was changed so that pigs had a protruding snout. A feature was also added where pigs would run away if attacked.
 * Piglets were added in Xbox 360 TU7. Pigs could be bred with wheat.
 * In Xbox 360 TU14 and PlayStation 3 1.04, the drop count for porkchop was changed from 1-3 to 0-2. The carrot on a stick was added to direct saddled pigs, and pigs can drop saddled when killed of they were equipped with one. A feature was also added where piglets could be spawned by using Left Trigger (Xbox), L2 trigger (PlayStation), and ZL button (WiiU) on an adult pig using a spawn egg.
 * A feature was added in Xbox 360 TU31, Xbox One CU19, PlayStation 3 1.22, and WiiU Patch 3 where baby pig growth could be accelerated using carrots.
 * The textures for pigs, piglets, and saddled pigs were changed in PlayStation 4 1.90 as part of the Texture Update.