Pig

A pig is a common passive mob found in grassy biomes. Pigs drop porkchops when killed, and can be equipped with a saddle and ridden.

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

In villages, a pig spawns in animal pens, stables, and in butcher house backyards.

5% of pigs spawn as piglets.

Drops
An adult pig drops:
 * 1–3 or  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 if saddled
 * if killed by a player or tamed wolf
 * upon breeding

Killing a baby pig yields no items nor experience.

Behavior
Pigs oink and typically roam avoiding hazards and cliffs high enough to cause falls. They flee for some seconds when harmed.

When a pig or piglet is struck by lightning, it transforms into a zombified piglin or baby zombified piglin, 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 6 blocks and breed using carrots, potatoes, and beetroots.

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

Riding


Saddled pigs are controllable with a carrot on a stick. They start slow but accelerate to 5.20 m/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. 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.

ID




Entity data
Pigs have entity data associated with them that contain various properties.

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.
 * When Notch was designing the pig, he accidentally mixed up some dimensions; this created what is now known as the creeper.
 * The Pig appears as a DLC costume for the Mii Brawler in the crossover fighting game Super Smash Bros. Ultimate.
 * Regular Minecraft pigs somewhat resemble the Yorkshire, which is a common, pink breed of pigs.