Pig

Wiki · Mobs · Animal

Pig

Runs on a list of goals, tried in priority order.

Where it spawns

Biomes (26)

BiomeShareGroup
Birch Forest25% of animals4
Dark Forest25% of animals4
Old Growth Birch Forest25% of animals4
Flower Forest23% of animals4
Forest22% of animals4
Windswept Forest22% of animals4
Windswept Gravelly Hills22% of animals4
Windswept Hills22% of animals4
Badlands22% of animals4
Eroded Badlands22% of animals4
Plains22% of animals4
Sunflower Plains22% of animals4
14 more biomes

Share is how often this mob is picked when the game spawns that kind of mob in the biome; group is how many come at once.

Drops

ItemAmountChance
Raw PorkchopRaw Porkchopdrops cooked when the mob dies on fire; Looting adds up to 1 per level1–3100%

How it thinks

Each moment it runs the most important goals it can (lowest number first); a more important goal interrupts a less important one. Read from the game's code and put in our own words.

What it does

  1. 0Swims up to stay afloat in water and lava.
  2. 1Runs around fast after being hurt or set on fire.
  3. 3Looks for a partner to breed with when in love mode.
  4. 4Follows a player holding its favourite food.
  5. 5A baby follows an adult of its kind.
  6. 6Wanders around at random, keeping out of water.
  7. 7Looks at a nearby player.
  8. 8Looks around at random.

← All mobs