Minecraft:Pig: Difference between revisions
More actions
Remove broken links to missing pages |
Sync: updated from Minecraft |
||
| (9 intermediate revisions by the same user not shown) | |||
| Line 17: | Line 17: | ||
| *-2caption= Saddled | | *-2caption= Saddled | ||
| *-3caption = Baby | | *-3caption = Baby | ||
| othernames = '''Piglet''' (Baby only) {{evb|ca|au|nz|uk}} | |||
| health = {{hp|10|mob=1}} | | health = {{hp|10|mob=1}} | ||
| invimage = Pig Spawn Egg | | invimage = Pig Spawn Egg | ||
| Line 24: | Line 25: | ||
'''Baby:'''<br>Height: 0.45 blocks<br>Width: 0.45 blocks | '''Baby:'''<br>Height: 0.45 blocks<br>Width: 0.45 blocks | ||
| speed = 0.25 | | speed = 0.25 | ||
| spawn = {{EnvSprite|Overworld}} Grass | | spawn = {{EnvSprite|Overworld}} [[Minecraft:Grass block]]s with at least two blocks of space above in most [[Minecraft:Overworld]] biomes. | ||
| usableitems = {{drop|Item|Saddle}} | | usableitems = {{drop|Item|Saddle}} | ||
{{drop|Item|Shears}}<small>(when equipped with a saddle)</small> | {{drop|Item|Shears}}<small>(when equipped with a saddle)</small> | ||
| Line 35: | Line 36: | ||
{{drop|block|Golden Dandelion}}<small>(baby only)</small> | {{drop|block|Golden Dandelion}}<small>(baby only)</small> | ||
}} | }} | ||
A '''pig''' is a passive mob found commonly in most grassy [[Minecraft:biome]]s. Adult pigs are a source of | A '''pig''' is a [[Minecraft:passive mob]] found commonly in most grassy [[Minecraft:biome]]s. Adult pigs are a source of [[Minecraft:porkchop]]s and can be ridden using a [[Minecraft:saddle]] and a [[Minecraft:carrot on a stick]]. They have three variants based on the [[Minecraft:temperature]] of the biome they [[Minecraft:Mob spawning|spawn]] in. | ||
== Spawning == | == Spawning == | ||
Pigs spawn in the [[Minecraft:Overworld]] in most grassy biomes except for snowy plains, | Pigs spawn in the [[Minecraft:Overworld]] in most grassy biomes except for [[Minecraft:snowy plains]], [[Minecraft:meadow]]s, [[Minecraft:mangrove swamp]]s, and [[Minecraft:pale garden]]s. | ||
{{IN|java}}, pigs spawn in groups of 4 on grass | {{IN|java}}, pigs spawn in groups of 4 on [[Minecraft:grass block]]s. Individual pigs rarely may spawn on grass after world generation. | ||
{{IN|bedrock}}, pigs spawn in groups of 1 to 3 on grass blocks. | {{IN|bedrock}}, pigs spawn in groups of 1 to 3 on grass blocks. | ||
| Line 47: | Line 48: | ||
Each pig has a 5% chance of spawning as a baby. | Each pig has a 5% chance of spawning as a baby. | ||
Pigs sometimes also spawn in animal pens, stables, and butcher house backyards in | Pigs sometimes also spawn in animal pens, stables, and butcher house backyards in [[Minecraft:village]]s upon world generation. | ||
Pigs cannot spawn naturally with a saddle. | Pigs cannot spawn naturally with a saddle. | ||
| Line 77: | Line 78: | ||
}} | }} | ||
* A {{ItemLink|saddle}} if saddled. | * A {{ItemLink|saddle}} if saddled. | ||
* {{xp|1|3}} experience orbs if killed by a player or tamed [[Minecraft:wolf]]. | * {{xp|1|3}} [[Minecraft:experience]] orbs if killed by a player or tamed [[Minecraft:wolf]]. | ||
Killing a baby pig yields neither [[Minecraft:item]]s nor experience. | Killing a baby pig yields neither [[Minecraft:item]]s nor [[Minecraft:experience]]. | ||
== Behavior == | == Behavior == | ||
Pigs roam the Overworld avoiding hazards and harmful falls. A pig flees for a short time when harmed. | Pigs roam the Overworld avoiding hazards and harmful falls. A pig flees for a short time when harmed. | ||
Pigs follow players holding [[Minecraft:carrot]]s, [[Minecraft:potato]]es, [[Minecraft:beetroot]]s or carrots on sticks within a radius of six blocks. | Pigs follow players holding [[Minecraft:carrot]]s, [[Minecraft:potato]]es, [[Minecraft:beetroot]]s or [[Minecraft:carrots on sticks]] within a radius of six blocks. | ||
=== Breeding === | === Breeding === | ||
| Line 97: | Line 98: | ||
It is possible to ride an adult pig by {{control|using}} a [[Minecraft:saddle]] on it. [[Minecraft:Shears]] can be used on a saddled pig to retrieve the saddle. Baby pigs cannot be saddled nor ridden. | It is possible to ride an adult pig by {{control|using}} a [[Minecraft:saddle]] on it. [[Minecraft:Shears]] can be used on a saddled pig to retrieve the saddle. Baby pigs cannot be saddled nor ridden. | ||
Saddled pigs are controllable with a carrot on a stick. They travel at a default speed of 2.42 blocks/s. | Saddled pigs are controllable with a [[Minecraft:carrot on a stick]]. They travel at a default speed of 2.42 blocks/s. | ||
{{Control|Using}} the carrot on a stick causes the pig to enter a boost, at the cost of 7 durability. While boosted, the pig gradually accelerates to its peak speed of 5.2 blocks/s (6.24 blocks/s with Speed I and 7.28 blocks/s with Speed II) until halfway through the boost, and then decelerates to its default speed by the end of the boost. Specifically, the speed of the pig increases by <math>1+1.15\times \sin(\frac{t}{t_0}\pi)</math> times the original speed, where <math>t</math> is the time already passed since the start of the boost, and <math>t_0</math> is the total duration of the boost. No matter how many ticks the boost lasts, the average speed of pig during a full boost cycle is roughly 4.19 m/s. | {{Control|Using}} the carrot on a stick causes the pig to enter a boost, at the cost of 7 durability. While boosted, the pig gradually accelerates to its peak speed of 5.2 blocks/s (6.24 blocks/s with [[Minecraft:Speed]] I and 7.28 blocks/s with Speed II) until halfway through the boost, and then decelerates to its default speed by the end of the boost. Specifically, the speed of the pig increases by <math>1+1.15\times \sin(\frac{t}{t_0}\pi)</math> times the original speed, where <math>t</math> is the time already passed since the start of the boost, and <math>t_0</math> is the total duration of the boost. No matter how many ticks the boost lasts, the average speed of pig during a full boost cycle is roughly 4.19 m/s. | ||
Unlike other Overworld mounts,<ref>{{bug|MC-303715||Pigs don't float when ridden in water|WAI}}</ref> pigs cannot float on water or lava (even if they have Fire Resistance) when being controlled. Pigs can be controlled through 1-block-high bodies of water with a carrot and stick, but deeper water causes the player to dismount. If the pig and rider fall, then fall damage doesn't cause any knockback or slower movement speed. | Unlike other Overworld mounts,<ref>{{bug|MC-303715||Pigs don't float when ridden in water|WAI}}</ref> pigs cannot float on water or lava (even if they have [[Minecraft:Fire Resistance]]) when being controlled. Pigs can be controlled through 1-block-high bodies of water with a carrot and stick, but deeper water causes the player to dismount. If the pig and rider fall, then fall damage doesn't cause any knockback or slower movement speed. | ||
A player can travel through a space 1 block high by riding a pig. | A player can travel through a space 1 block high by riding a pig. | ||
| Line 107: | Line 108: | ||
=== Lightning === | === Lightning === | ||
When a pig or baby pig is struck by lightning, it transforms into a zombified piglin or baby zombified piglin, respectively. If lightning strikes a pig in Peaceful difficulty, the pig does not transform but takes normal damage from the strike. If the pig was equipped with a saddle, the saddle is lost. If a player was riding the pig, they are kept mounted on the zombified piglin {{in|java}},<ref>{{bug|MC-276342||Player continues riding on Zombified Piglin after saddled pig is converted|WAI}}</ref> while {{in|bedrock}} they are dismounted.<ref>{{bug|MCPE-186403||Player does not continue riding on the Zombified Piglin you were riding on after saddled pig you were riding on is converted to a zombified piglin}}</ref> | When a pig or baby pig is struck by [[Minecraft:lightning]], it transforms into a [[Minecraft:zombified piglin]] or baby zombified piglin, respectively. If lightning strikes a pig in [[Minecraft:Peaceful]] difficulty, the pig does not transform but takes normal damage from the strike. If the pig was equipped with a saddle, the saddle is lost. If a player was riding the pig, they are kept mounted on the zombified piglin {{in|java}},<ref>{{bug|MC-276342||Player continues riding on Zombified Piglin after saddled pig is converted|WAI}}</ref> while {{in|bedrock}} they are dismounted.<ref>{{bug|MCPE-186403||Player does not continue riding on the Zombified Piglin you were riding on after saddled pig you were riding on is converted to a zombified piglin}}</ref> | ||
=== Jockey === | === Jockey === | ||
{{Exclusive|bedrock|section=1}} | {{Exclusive|bedrock|section=1}} | ||
[[File:Baby Zombie Riding Pig.png|thumb|width=165x165|A temperate pig ridden by a baby zombie]] | [[File:Baby Zombie Riding Pig.png|thumb|width=165x165|A temperate pig ridden by a baby zombie]] | ||
15% of nearby baby zombies, husks, or drowned may ride an adult unsaddled pig to form a [[Minecraft:jockey]]. | 15% of nearby baby [[Minecraft:zombies]], [[Minecraft:husks]], or [[Minecraft:drowned]] may ride an adult unsaddled pig to form a [[Minecraft:jockey]]. | ||
== Sounds== | == Sounds== | ||
| Line 508: | Line 509: | ||
| sound5 = Pig baby ambient5.ogg | | sound5 = Pig baby ambient5.ogg | ||
| sound6 = Pig baby ambient6.ogg | | sound6 = Pig baby ambient6.ogg | ||
| subtitle = | | subtitle = Baby Pig oinks | ||
| source = neutral | | source = neutral | ||
| description = Randomly | | description = Randomly | ||
| Line 520: | Line 521: | ||
| sound2 = Pig baby hit2.ogg | | sound2 = Pig baby hit2.ogg | ||
| sound3 = Pig baby hit3.ogg | | sound3 = Pig baby hit3.ogg | ||
| subtitle = | | subtitle = Baby Pig hurts | ||
| source = neutral | | source = neutral | ||
| description = When a baby pig is damaged | | description = When a baby pig is damaged | ||
| Line 530: | Line 531: | ||
| {{SoundLine | | {{SoundLine | ||
| sound = Pig baby death.ogg | | sound = Pig baby death.ogg | ||
| subtitle = | | subtitle = Baby Pig dies | ||
| source = neutral | | source = neutral | ||
| description = When a baby pig dies | | description = When a baby pig dies | ||
| Line 541: | Line 542: | ||
| sound = Pig baby eat1.ogg | | sound = Pig baby eat1.ogg | ||
| sound2 = Pig baby eat2.ogg | | sound2 = Pig baby eat2.ogg | ||
| subtitle = | | subtitle = Baby Pig eats | ||
| source = neutral | | source = neutral | ||
| description = When a baby pig eats | | description = When a baby pig eats | ||
| Line 627: | Line 628: | ||
=== Development === | === Development === | ||
{{HistoryTable | {{HistoryTable | ||
|{{HistoryLine||August 20, 2009|link=https://archive.org/download/Minecraft_IRC_Logs_2009/DBN-IRC-Logs/%23minecraft.20090820.log|[[File:Creeper (pre-release).png|24px]] Showed failed pig model. Notch commented, "it looks creepier when animated ... haha, I'll keep it for a creepy creature. {{=}}D".}} | |{{HistoryLine||August 20, 2009|link=https://archive.org/download/Minecraft_IRC_Logs_2009/DBN-IRC-Logs/%23minecraft.20090820.log|[[File:Creeper (pre-release).png|24px]] Showed [[Minecraft:creeper|failed pig model]]. [[Minecraft:Notch]] commented, "it looks creepier when animated ... haha, I'll keep it for [[Minecraft:Creeper|a creepy creature]]. {{=}}D".}} | ||
|{{HistoryLine||August 22, 2009|link=https://web.archive.org/web/20190713211614/https://notch.tumblr.com/post/168543844/pigs|[[File:Pig (pre-release).png|48px]] Pigs are teased on The Word of Notch.}} | |{{HistoryLine||August 22, 2009|link=https://web.archive.org/web/20190713211614/https://notch.tumblr.com/post/168543844/pigs|[[File:Pig (pre-release).png|48px]] Pigs are teased on [[Minecraft:The Word of Notch]].}} | ||
}} | }} | ||
| Line 639: | Line 640: | ||
|{{HistoryLine|java classic}} | |{{HistoryLine|java classic}} | ||
|{{HistoryLine||0.24_SURVIVAL_TEST|[[File:Pig JE1.png|48px]] Added pigs. The eyes on their texture have been slightly changed.}} | |{{HistoryLine||0.24_SURVIVAL_TEST|[[File:Pig JE1.png|48px]] Added pigs. The eyes on their texture have been slightly changed.}} | ||
|{{HistoryLine||0.25 SURVIVAL TEST|Pigs now drop 0–2 brown | |{{HistoryLine||0.25 SURVIVAL TEST|Pigs now [[Minecraft:drop]] 0–2 [[Minecraft:brown mushroom]]s and award the [[Minecraft:player]] 10 [[Minecraft:score|points]] each when killed.}} | ||
|{{HistoryLine|java indev}} | |{{HistoryLine|java indev}} | ||
|{{HistoryLine||0.31|dev=20091223-0040|Pigs and other mobs now no longer spawn naturally.}} | |{{HistoryLine||0.31|dev=20091223-0040|Pigs and other mobs now no longer spawn naturally.}} | ||
|{{HistoryLine|||dev=20100202|Pigs and other mobs now spawn naturally again.}} | |{{HistoryLine|||dev=20100202|Pigs and other mobs now spawn naturally again.}} | ||
|{{HistoryLine||20100211-2327|Pigs now have unique idle and hurt sounds. Previously, they have no idle sounds, and use the player's hurt sound.}} | |{{HistoryLine||20100211-2327|Pigs now have unique idle and hurt sounds. Previously, they have no idle sounds, and use the player's hurt sound.}} | ||
|{{HistoryLine||20100219|Pigs now drop 0–2 raw | |{{HistoryLine||20100219|Pigs now drop 0–2 [[Minecraft:raw porkchop]]s instead of mushrooms upon death.}} | ||
|{{HistoryLine|java infdev}} | |{{HistoryLine|java infdev}} | ||
|{{HistoryLine||20100625-1917|[[File:Saddled Pig JE1.png|48px]] [[Minecraft:Saddle]]s have been added along with the ability to ride pigs. However, they currently cannot be controlled.}} | |{{HistoryLine||20100625-1917|[[File:Saddled Pig JE1.png|48px]] [[Minecraft:Saddle]]s have been added along with the ability to ride pigs. However, they currently cannot be controlled.}} | ||
| Line 652: | Line 653: | ||
|{{HistoryLine|java beta}} | |{{HistoryLine|java beta}} | ||
|{{HistoryLine||1.5|An [[Minecraft:achievement]] for riding a pig off a cliff has now been added. | |{{HistoryLine||1.5|An [[Minecraft:achievement]] for riding a pig off a cliff has now been added. | ||
|Pigs struck by lightning now turn into zombie pigmen.<ref>{{Tweet|notch|57426954093211648|MUOAHAHA! Pigs that get hit by lightning turn into zombie pigmen ;D|April 11, 2011}}</ref> | |Pigs struck by [[Minecraft:lightning]] now turn into [[Minecraft:zombie pigmen]].<ref>{{Tweet|notch|57426954093211648|MUOAHAHA! Pigs that get hit by lightning turn into zombie pigmen ;D|April 11, 2011}}</ref> | ||
|Pigs that die from being set on [[Minecraft:fire]] now drop cooked | |Pigs that die from being set on [[Minecraft:fire]] now drop [[Minecraft:cooked porkchop]]s.}} | ||
|{{HistoryLine||1.8|dev=Pre-release|[[File:Pig JE2 BE1.png|48px]] Pigs' snouts now protrude from their faces.<ref>{{Tweet|notch|109628703788646400|imgur.com/jYWW1?full|}}</ref><ref>{{Reddit2|sub=r/Minecraft|id=k2gkw|cid=c2h02cp|text=I like to imagine Notch getting drunk while he's coding on Minecraft then comes here to take a break for a bit, then seeing something simple and cool like the Snout idea and drunkenly giggling to himself as he places something so simple and awesome as a nose...for a pig.<br>What I'm trying to say is that I think Notch should code more while he is drunk.|author=AgainstClint|date=September 2, 2011}}</ref><ref>{{Reddit2|sub=r/Minecraft|id=k2bo5|text=Pigs Need Snouts!|author=MinecraftAfterDark|date=September 2, 2011}}</ref> | |{{HistoryLine||1.8|dev=Pre-release|[[File:Pig JE2 BE1.png|48px]] Pigs' snouts now protrude from their faces.<ref>{{Tweet|notch|109628703788646400|imgur.com/jYWW1?full|}}</ref><ref>{{Reddit2|sub=r/Minecraft|id=k2gkw|cid=c2h02cp|text=I like to imagine Notch getting drunk while he's coding on Minecraft then comes here to take a break for a bit, then seeing something simple and cool like the Snout idea and drunkenly giggling to himself as he places something so simple and awesome as a nose...for a pig.<br>What I'm trying to say is that I think Notch should code more while he is drunk.|author=AgainstClint|date=September 2, 2011}}</ref><ref>{{Reddit2|sub=r/Minecraft|id=k2bo5|text=Pigs Need Snouts!|author=MinecraftAfterDark|date=September 2, 2011}}</ref> | ||
|[[File:Saddled Pig JE2.png|48px]] The texture of saddled pigs{{verify|has the saddle texture changed? has the saddle model changed? or is this simply referring to the above change also affecting saddled pigs?}} has been changed. | |[[File:Saddled Pig JE2.png|48px]] The texture of saddled pigs{{verify|has the saddle texture changed? has the saddle model changed? or is this simply referring to the above change also affecting saddled pigs?}} has been changed. | ||
|A new AI system has been added for passive [[Minecraft:mob]]s; they now run away when attacked.}} | |A new [[Minecraft:AI]] system has been added for passive [[Minecraft:mob]]s; they now run away when attacked.}} | ||
|{{HistoryLine|java}} | |{{HistoryLine|java}} | ||
|{{HistoryLine||1.0.0|dev=Beta 1.9 Prerelease 2|Pigs can now be bred using [[Minecraft:wheat]].}} | |{{HistoryLine||1.0.0|dev=Beta 1.9 Prerelease 2|Pigs can now be [[Minecraft:bred]] using [[Minecraft:wheat]].}} | ||
|{{HistoryLine|||dev=Beta 1.9 Prerelease 3|[[File:Baby Pig JE1 BE1.png|32px]] [[File:Baby Saddled Pig JE1 BE1.png|32px]] Added baby pigs. They may be ridden like adult pigs with a [[Minecraft:saddle]].}} | |{{HistoryLine|||dev=Beta 1.9 Prerelease 3|[[File:Baby Pig JE1 BE1.png|32px]] [[File:Baby Saddled Pig JE1 BE1.png|32px]] Added baby pigs. They may be ridden like adult pigs with a [[Minecraft:saddle]].}} | ||
|{{HistoryLine||1.2.1|dev=12w06a|Before this update, all monster | |{{HistoryLine||1.2.1|dev=12w06a|Before this update, all [[Minecraft:monster spawner]]s found in multiplayer had the pig [[Minecraft:model]] inside them instead of whatever [[Minecraft:mob]] they actually spawn, with the singular exception of the [[Minecraft:cave spider]].}} | ||
|{{HistoryLine|||dev=12w07a|Pigs now have a new AI.}} | |{{HistoryLine|||dev=12w07a|Pigs now have a new AI.}} | ||
|{{HistoryLine||1.2.4|Baby pigs can no longer be [[Minecraft:saddle]]d. However, riding baby pigs that were already saddled is still possible.}} | |{{HistoryLine||1.2.4|dev=release|Baby pigs can no longer be [[Minecraft:saddle]]d. However, riding baby pigs that were already saddled is still possible.}} | ||
|{{HistoryLine||1.3.1|dev=12w25a|Pigs now drop 1-3 | |{{HistoryLine||1.3.1|dev=12w25a|Pigs now [[Minecraft:drop]] 1-3 [[Minecraft:porkchop]]s instead of 0-2.}} | ||
|{{HistoryLine||1.4.2|dev=12w36a|Pigs now drop saddles upon death, only if saddled. | |{{HistoryLine||1.4.2|dev=12w36a|Pigs now drop saddles upon [[Minecraft:death]], only if saddled. | ||
|Added carrot on a stick to direct saddled pigs. | |Added [[Minecraft:carrot on a stick]] to direct saddled pigs. | ||
|Pigs can now be bred only by using [[Minecraft:carrot]]s, not [[Minecraft:wheat]], and follow | |Pigs can now be [[Minecraft:bred]] only by using [[Minecraft:carrot]]s, not [[Minecraft:wheat]], and follow [[Minecraft:player]]s who hold a carrot or a carrot on a stick.}} | ||
|{{HistoryLine|||dev=12w37a|Pigs are now able to jump when ridden. | |{{HistoryLine|||dev=12w37a|Pigs are now able to jump when ridden. | ||
|Pigs now "eat" the carrot in a span of time shown by a durability bar of the carrot on a stick. | |Pigs now "eat" the carrot in a span of time shown by a [[Minecraft:durability]] bar of the [[Minecraft:carrot on a stick]]. | ||
|It is no longer necessary to hold the carrot on a stick in the player's hand while the pig is having the burst of speed.}} | |It is no longer necessary to hold the carrot on a stick in the [[Minecraft:player]]'s hand while the pig is having the burst of speed.}} | ||
|{{HistoryLine|||dev=12w38a|Pigs now have a new step sound.}} | |{{HistoryLine|||dev=12w38a|Pigs now have a new step [[Minecraft:sound]].}} | ||
|{{HistoryLine||1.6.1|dev=13w16a|Pigs now display the mob health bar when riding. | |{{HistoryLine||1.6.1|dev=13w16a|Pigs now display the mob [[Minecraft:health]] bar when riding. | ||
|Pigs are now dismounted using the sneak key; previously, this was achieved by right clicking on the pig a second time. | |Pigs are now dismounted using the sneak key; previously, this was achieved by right clicking on the pig a second time. | ||
|Added [[Minecraft:lead]]s, which can be used to leash pigs.}} | |Added [[Minecraft:lead]]s, which can be used to leash pigs.}} | ||
|{{HistoryLine||1.8|dev=14w02a|Baby pigs' growth can now be accelerated using [[Minecraft:carrot]]s.}} | |{{HistoryLine||1.8|dev=14w02a|Baby pigs' growth can now be accelerated using [[Minecraft:carrot]]s.}} | ||
|{{HistoryLine||1.9|dev=15w31a|Pigs can now also be led and bred using [[Minecraft:potato]]es and [[Minecraft:beetroot]]s, in addition to carrots.}} | |{{HistoryLine||1.9|dev=15w31a|Pigs can now also be led and [[Minecraft:bred]] using [[Minecraft:potato]]es and [[Minecraft:beetroot]]s, in addition to carrots.}} | ||
|{{HistoryLine|||dev=16w05b|The durability of a carrot on a stick is no longer reduced merely by riding a pig, only by using the speed boost.|Pigs can now step up 1 block when controlled by a player instead of jumping.|Pigs now rotate in sync with the player when holding a carrot on a stick.}} | |{{HistoryLine|||dev=16w05b|The durability of a [[Minecraft:carrot on a stick]] is no longer reduced merely by riding a pig, only by using the speed boost.|Pigs can now step up 1 block when controlled by a player instead of jumping.|Pigs now rotate in sync with the player when holding a carrot on a stick.}} | ||
|{{HistoryLine||1.10|dev=16w20a|Pigs now no longer spawn in ice plains.}} | |{{HistoryLine||1.10|dev=16w20a|Pigs now no longer spawn in [[Minecraft:ice plains]].}} | ||
|{{HistoryLine||1.11|dev=16w38a|Saddled pigs now drop their saddle upon death even if the gamerule doMobLoot is set to false.<ref>{{bug|MC-92772|||Fixed}}</ref>}} | |{{HistoryLine||1.11|dev=16w38a|Saddled pigs now drop their saddle upon death even if the [[Minecraft:gamerule]] doMobLoot is set to false.<ref>{{bug|MC-92772|||Fixed}}</ref>}} | ||
|{{HistoryLine||1.14|dev=18w43a|[[File:Temperate Pig JE3.png|48px]] [[File:Baby Pig JE2 BE2.png|32px]] The texture of pigs has been changed. | |{{HistoryLine||1.14|dev=18w43a|[[File:Temperate Pig JE3.png|48px]] [[File:Baby Pig JE2 BE2.png|32px]] The texture of pigs has been changed. | ||
|[[File:Saddled Pig JE3 BE3.png|48px]] The texture of saddled pigs has been changed.}} | |[[File:Saddled Pig JE3 BE3.png|48px]] The texture of saddled pigs has been changed.}} | ||
|{{HistoryLine||1.15|dev=19w37a|5% of pigs now spawn as babies.}} | |{{HistoryLine||1.15|dev=19w37a|5% of pigs now spawn as babies.}} | ||
|{{HistoryLine||1.16|dev=20w06a|A baby pig now becomes a baby zombified piglin after being hit by lightning.}} | |{{HistoryLine||1.16|dev=20w06a|A baby pig now becomes a baby [[Minecraft:zombified piglin]] after being hit by [[Minecraft:lightning]].}} | ||
|{{HistoryLine|||dev=20w15a|Pigs can now be saddled by [[Minecraft:dispenser]]s.}} | |{{HistoryLine|||dev=20w15a|Pigs can now be saddled by [[Minecraft:dispenser]]s.}} | ||
|{{HistoryLine||1.19.4|exp=Update 1.20|dev=pre1|Pigs now spawn in cherry | |{{HistoryLine||1.19.4|exp=Update 1.20|dev=pre1|Pigs now spawn in [[Minecraft:cherry grove]]s.<ref>{{bug|MC-260059}}</ref>}} | ||
|{{HistoryLine||1.21.5|dev=25w02a|[[File:Cold Pig JE1 BE1.png|48px]] [[File:Warm Pig JE1 BE1.png|48px]] Added cold and warm pigs. | |{{HistoryLine||1.21.5|dev=25w02a|[[File:Cold Pig JE1 BE1.png|48px]] [[File:Warm Pig JE1 BE1.png|48px]] Added cold and warm pigs. | ||
|The original pig variant is now considered temperate. | |The original pig variant is now considered temperate. | ||
|Pigs can now spawn in wooded badlands. Technically, they are also allowed to spawn in badlands and eroded badlands, but cannot spawn there naturally as these biomes do not generate grass blocks.}} | |Pigs can now spawn in [[Minecraft:wooded badlands]]. Technically, they are also allowed to spawn in [[Minecraft:badlands]] and [[Minecraft:eroded badlands]], but cannot spawn there naturally as these biomes do not generate grass blocks.}} | ||
|{{HistoryLine|||dev=25w03a|[[Minecraft:Saddle]]s now show the enchantment glint on the pig when enchanted.}} | |{{HistoryLine|||dev=25w03a|[[Minecraft:Saddle]]s now show the [[Minecraft:enchantment glint]] on the pig when enchanted.}} | ||
|{{HistoryLine|||dev=25w05a|Warm pigs can now spawn in windswept | |{{HistoryLine|||dev=25w05a|Warm pigs can now spawn in [[Minecraft:windswept savanna]]s.}} | ||
|{{HistoryLine|||dev=25w06a|Warm and cold pigs now spawn in more biomes when spawned with unspecified commands or spawn eggs.}} | |{{HistoryLine|||dev=25w06a|Warm and cold pigs now spawn in more biomes when spawned with unspecified commands or spawn eggs.}} | ||
|{{HistoryLine||1.21.6|dev=25w15a|[[File:Temperate Pig JE4 BE2.png|48px]] [[File:Cold Pig JE2 BE1.png|48px]] [[File:Warm Pig JE2 BE1.png|48px]] Pigs now have their legs mirrored, to match ''[[Minecraft:Bedrock Edition]]''.}} | |{{HistoryLine||1.21.6|dev=25w15a|[[File:Temperate Pig JE4 BE2.png|48px]] [[File:Cold Pig JE2 BE1.png|48px]] [[File:Warm Pig JE2 BE1.png|48px]] Pigs now have their legs mirrored, to match ''[[Minecraft:Bedrock Edition]]''.}} | ||
| Line 695: | Line 696: | ||
|{{HistoryLine|||dev=25w20a|Saddles can now be removed from pigs using shears.}} | |{{HistoryLine|||dev=25w20a|Saddles can now be removed from pigs using shears.}} | ||
|{{HistoryLine||26.1|dev=snap2|[[File:Baby Pig JE3 BE3.png|32px]] [[File:Baby Cold Pig JE2 BE2.png|32px]] [[File:Baby Warm Pig JE3 BE2.png|32px]] The model and textures of baby pigs have been changed.|Added new baby sounds for pigs.|Saddles on baby pigs no longer render.}} | |{{HistoryLine||26.1|dev=snap2|[[File:Baby Pig JE3 BE3.png|32px]] [[File:Baby Cold Pig JE2 BE2.png|32px]] [[File:Baby Warm Pig JE3 BE2.png|32px]] The model and textures of baby pigs have been changed.|Added new baby sounds for pigs.|Saddles on baby pigs no longer render.}} | ||
|{{HistoryLine|||dev=snap5 |Added golden | |{{HistoryLine|||dev=snap5 |Added [[Minecraft:golden dandelion]]s, which can be used to prevent baby pigs from growing up.}} | ||
|{{HistoryLine|||dev=snap7|[[File:Baby Pig JE4 BE4.png|38px]] Slightly changed the texture of baby temperate pigs. | |{{HistoryLine|||dev=snap7|[[File:Baby Pig JE4 BE4.png|38px]] Slightly changed the texture of baby temperate pigs. | ||
|Added "mini" and "big" sound variants for adult pigs.}} | |Added "mini" and "big" sound variants for adult pigs.}} | ||
| Line 710: | Line 711: | ||
|{{HistoryLine|pocket alpha}} | |{{HistoryLine|pocket alpha}} | ||
|{{HistoryLine||v0.2.0|[[File:Pig JE2 BE1.png|48px]] [[File:Baby Pig JE1 BE1.png|32px]] Added pigs and baby pigs. | |{{HistoryLine||v0.2.0|[[File:Pig JE2 BE1.png|48px]] [[File:Baby Pig JE1 BE1.png|32px]] Added pigs and baby pigs. | ||
|Pigs currently cannot spawn naturally, unless the player hacks or edits the [[Minecraft:inventory]].}} | |Pigs currently cannot spawn naturally, unless the [[Minecraft:player]] hacks or edits the [[Minecraft:inventory]].}} | ||
|{{HistoryLine||v0.2.1|Adult pigs now spawn naturally.}} | |{{HistoryLine||v0.2.1|Adult pigs now spawn naturally.}} | ||
|{{HistoryLine||v0.6.0|Baby pigs now spawn naturally.}} | |{{HistoryLine||v0.6.0|Baby pigs now spawn naturally.}} | ||
| Line 717: | Line 718: | ||
|{{HistoryLine|||dev=build 2|Pigs follow players holding [[Minecraft:beetroot]]s.}} | |{{HistoryLine|||dev=build 2|Pigs follow players holding [[Minecraft:beetroot]]s.}} | ||
|{{HistoryLine|||dev=build 4|Pigs can now be fed carrots, potatoes, or beetroots to enter love mode and breed.}} | |{{HistoryLine|||dev=build 4|Pigs can now be fed carrots, potatoes, or beetroots to enter love mode and breed.}} | ||
|{{HistoryLine||v0.9.2|The health of pigs has been reduced from {{hp|20}} to {{hp|10}}}} | |{{HistoryLine||v0.9.2|The [[Minecraft:health]] of pigs has been reduced from {{hp|20}} to {{hp|10}}}} | ||
|{{HistoryLine||v0.12.1|dev=build 1|Pigs now turn into zombie pigmen when struck by lightning.}} | |{{HistoryLine||v0.12.1|dev=build 1|Pigs now turn into [[Minecraft:zombie pigmen]] when struck by [[Minecraft:lightning]].}} | ||
|{{HistoryLine|||dev=build 12|The chance of baby pigs spawning naturally or from a spawn egg has been reduced from 25% to 5%.}} | |{{HistoryLine|||dev=build 12|The chance of baby pigs spawning naturally or from a [[Minecraft:spawn egg]] has been reduced from 25% to 5%.}} | ||
|{{HistoryLine||v0.14.0|dev=build 1|Baby zombie [[Minecraft:jockey]]s now check for nearby pigs to mount prior to attacking the player. | |{{HistoryLine||v0.14.0|dev=build 1|Baby zombie [[Minecraft:jockey]]s now check for nearby pigs to mount prior to attacking the [[Minecraft:player]]. | ||
|Pigs no longer spawn in snowy tundra biome and variants. | |Pigs no longer spawn in [[Minecraft:snowy tundra]] biome and variants. | ||
|Pigs that die from being set on [[Minecraft:fire]] now drop cooked | |Pigs that die from being set on [[Minecraft:fire]] now drop [[Minecraft:cooked porkchop]]s.}} | ||
|{{HistoryLine||v0.15.0|dev=build 1|[[File:Saddled Pig BE1.png|48px]] Added pig riding, and a new "Boost" Interact button. | |{{HistoryLine||v0.15.0|dev=build 1|[[File:Saddled Pig BE1.png|48px]] Added pig riding, and a new "Boost" Interact button. | ||
|Baby [[Minecraft:husk]]s can now ride pigs.}} | |Baby [[Minecraft:husk]]s can now ride pigs.}} | ||
|{{HistoryLine||v0.16.0|dev=build 4|Pigs now drop 1-3 | |{{HistoryLine||v0.16.0|dev=build 4|Pigs now [[Minecraft:drop]] 1-3 [[Minecraft:porkchop]]s instead of 0-2.}} | ||
|{{HistoryLine|bedrock}} | |{{HistoryLine|bedrock}} | ||
|{{HistoryLine||?|Pigs no longer have a 5% chance to spawn already in breeding mode.}} | |{{HistoryLine||?|Pigs no longer have a 5% chance to spawn already in [[Minecraft:breeding]] mode.}} | ||
|{{HistoryLine||1.10.0|dev=beta 1.10.0.3|[[File:Temperate Pig JE4 BE2.png|48px]] [[File:Baby Pig JE2 BE2.png|32px]] Changed the texture of pigs. | |{{HistoryLine||1.10.0|dev=beta 1.10.0.3|[[File:Temperate Pig JE4 BE2.png|48px]] [[File:Baby Pig JE2 BE2.png|32px]] Changed the texture of pigs. | ||
|[[File:Saddled Pig BE2.png|48px]] Changed the texture of saddled pigs.}} | |[[File:Saddled Pig BE2.png|48px]] Changed the texture of saddled pigs.}} | ||
|{{HistoryLine||1.11.0|dev=beta 1.11.0.1|Pigs now spawn in village butcher houses, pens and stables.}} | |{{HistoryLine||1.11.0|dev=beta 1.11.0.1|Pigs now spawn in [[Minecraft:village]] butcher houses, pens and stables.}} | ||
|{{HistoryLine||1.18.30|dev=Preview 1.18.20.28|Pigs no longer spawn in snowy taigas.}} | |{{HistoryLine||1.18.30|dev=Preview 1.18.20.28|Pigs no longer spawn in snowy taigas.}} | ||
|{{HistoryLine|||dev=Release|Reverted the pig spawning change made in Preview 1.18.20.28.}} | |{{HistoryLine|||dev=Release|Reverted the pig spawning change made in Preview 1.18.20.28.}} | ||
| Line 737: | Line 738: | ||
|{{HistoryLine||26.0|dev=Preview 26.0.27|exp=Drop 1 of 2026|[[File:Baby Pig JE3 BE3.png|38px]] [[File:Baby Cold Pig JE2 BE2.png|38px]] [[File:Baby Warm Pig JE3 BE2.png|38px]] The model and textures of baby pigs have been changed.|Added new baby sounds for pigs.}} | |{{HistoryLine||26.0|dev=Preview 26.0.27|exp=Drop 1 of 2026|[[File:Baby Pig JE3 BE3.png|38px]] [[File:Baby Cold Pig JE2 BE2.png|38px]] [[File:Baby Warm Pig JE3 BE2.png|38px]] The model and textures of baby pigs have been changed.|Added new baby sounds for pigs.}} | ||
|{{HistoryLine||26.10|dev=Preview 26.10.20|All features behind the "Drop 1 of 2026" experimental toggle are fully implemented.}} | |{{HistoryLine||26.10|dev=Preview 26.10.20|All features behind the "Drop 1 of 2026" experimental toggle are fully implemented.}} | ||
|{{HistoryLine|||dev=Preview 26.10.21|Added golden | |{{HistoryLine|||dev=Preview 26.10.21|Added [[Minecraft:golden dandelion]]s, which can be used to prevent baby pigs from growing up.}} | ||
|{{HistoryLine|||dev=Preview 26.10.23|[[File:Baby Pig JE4 BE4.png|38px]] Slightly changed the texture of baby temperate pigs.}} | |{{HistoryLine|||dev=Preview 26.10.23|[[File:Baby Pig JE4 BE4.png|38px]] Slightly changed the texture of baby temperate pigs.}} | ||
|{{HistoryLine|||dev=Preview 26.10.24|Added "mini" and "big" sound variants for adult pigs.}} | |{{HistoryLine|||dev=Preview 26.10.24|Added "mini" and "big" sound variants for adult pigs.}} | ||
|{{HistoryLine|bedrock upcoming}} | |||
|{{HistoryLine||26.30|dev=Preview 26.30.29|Saddled pigs ridden by players can no longer be pushed by sulfur cubes with blocks absorbed.}} | |||
}} | }} | ||
| Line 750: | Line 753: | ||
|{{HistoryLine||xbox=TU7|[[File:Baby Pig JE1 BE1.png|32px]] Added baby pigs. | |{{HistoryLine||xbox=TU7|[[File:Baby Pig JE1 BE1.png|32px]] Added baby pigs. | ||
|Pigs can now be bred using [[Minecraft:wheat]].}} | |Pigs can now be bred using [[Minecraft:wheat]].}} | ||
|{{HistoryLine||xbox=TU14|ps3=1.04|psvita=1.00|ps4=1.00|Pigs now drop 1-3 | |{{HistoryLine||xbox=TU14|ps3=1.04|psvita=1.00|ps4=1.00|Pigs now [[Minecraft:drop]] 1-3 [[Minecraft:porkchop]]s instead of 0-2. | ||
|[[File:Saddled Pig JE2.png|48px]] Added carrot on a stick to direct [[Minecraft:saddle]]d pigs. | |[[File:Saddled Pig JE2.png|48px]] Added [[Minecraft:carrot on a stick]] to direct [[Minecraft:saddle]]d pigs. | ||
|Pigs now drop [[Minecraft:saddle]]s when killed (if equipped with one). | |Pigs now drop [[Minecraft:saddle]]s when killed (if equipped with one). | ||
|Baby pigs can now be spawned by using {{xbtn|lt}}/{{psbtn|l2}}/{{wbtn|zl}} on that [[Minecraft:mob]] using its spawn egg. | |Baby pigs can now be spawned by using {{xbtn|lt}}/{{psbtn|l2}}/{{wbtn|zl}} on that [[Minecraft:mob]] using its [[Minecraft:spawn egg]]. | ||
|Pigs can now be bred only using [[Minecraft:carrot]]s, not [[Minecraft:wheat]], and follow | |Pigs can now be [[Minecraft:bred]] only using [[Minecraft:carrot]]s, not [[Minecraft:wheat]], and follow [[Minecraft:player]]s who hold a carrot or a carrot on a stick.}} | ||
|{{HistoryLine||xbox=TU19|xbone=CU7|ps3=1.12|psvita=1.12|ps4=1.12|wiiu=Patch 1|switch=1.0.1|Pigs are now dismounted using the sneak key; previously, this was achieved by pressing {{ctrl|use}} on the pig a second time.}} | |{{HistoryLine||xbox=TU19|xbone=CU7|ps3=1.12|psvita=1.12|ps4=1.12|wiiu=Patch 1|switch=1.0.1|Pigs are now dismounted using the sneak key; previously, this was achieved by pressing {{ctrl|use}} on the pig a second time.}} | ||
|{{HistoryLine||xbox=TU31|xbone=CU19|ps3=1.22|psvita=1.22|ps4=1.22|wiiu=Patch 3|Baby pig growth can now be accelerated using [[Minecraft:carrot]]s.}} | |{{HistoryLine||xbox=TU31|xbone=CU19|ps3=1.22|psvita=1.22|ps4=1.22|wiiu=Patch 3|Baby pig growth can now be accelerated using [[Minecraft:carrot]]s.}} | ||
|{{HistoryLine||xbox=TU43|xbone=CU33|ps3=1.36|psvita=1.36|ps4=1.36|wiiu=Patch 13|switch=1.0.1|Pigs can now also be led and bred using [[Minecraft:potato]]es and [[Minecraft:beetroot]]s, in addition to carrots.}} | |{{HistoryLine||xbox=TU43|xbone=CU33|ps3=1.36|psvita=1.36|ps4=1.36|wiiu=Patch 13|switch=1.0.1|Pigs can now also be led and [[Minecraft:bred]] using [[Minecraft:potato]]es and [[Minecraft:beetroot]]s, in addition to carrots.}} | ||
|{{HistoryLine||xbox=?|xbone=?|ps3=?|psvita=?|ps4=?|wiiu=?|switch=?|Saddled pigs now drop their saddle upon death even if the gamerule doMobLoot is set to false.}} | |{{HistoryLine||xbox=?|xbone=?|ps3=?|psvita=?|ps4=?|wiiu=?|switch=?|Saddled pigs now drop their saddle upon death even if the [[Minecraft:gamerule]] doMobLoot is set to false.}} | ||
}} | }} | ||
| Line 768: | Line 771: | ||
<gallery> | <gallery> | ||
Disturbingpig.jpg|The original pig model before it was made into a creeper. | Disturbingpig.jpg|The original pig model before it was made into a [[Minecraft:creeper]]. | ||
Pigs old 2009.jpg|The old "cross-eyed" pig texture. | Pigs old 2009.jpg|The old "cross-eyed" pig texture. | ||
Beta 1.8 Dev Snouts.png|The first image of pigs with 3D snouts. | Beta 1.8 Dev Snouts.png|The first image of pigs with 3D snouts. | ||
Pig Snout Suggestion.png|The image suggesting Notch add snouts to pigs. | Pig Snout Suggestion.png|The image suggesting Notch add snouts to pigs. | ||
Pig Snout Thanks.png|The image thanking Notch for adding snouts to pigs. | Pig Snout Thanks.png|The image thanking Notch for adding snouts to pigs. | ||
PigControl.png|First image of player-controlled pigs released by Nathan Adams. | PigControl.png|First image of player-controlled pigs released by [[Minecraft:Nathan Adams]]. | ||
Pig Riding 1.jpg|First image of pig riding in ''Bedrock Edition''. | Pig Riding 1.jpg|First image of pig riding in ''Bedrock Edition''. | ||
Pig Riding 2.jpg|Second image of pig riding in ''Bedrock Edition''. | Pig Riding 2.jpg|Second image of pig riding in ''Bedrock Edition''. | ||
| Line 782: | Line 785: | ||
{{HistoryTable | {{HistoryTable | ||
|{{HistoryLine|java}} | |{{HistoryLine|java}} | ||
|{{HistoryLine||1.11|dev=16w32a|The namespaced ID of pigs have been changed from {{code|Pig}} to {{code|pig}}.}} | |{{HistoryLine||1.11|dev=16w32a|The [[Minecraft:namespaced ID]] of pigs have been changed from {{code|Pig}} to {{code|pig}}.}} | ||
|{{HistoryLine||1.13|dev=17w47a|Numeric IDs for entities were presumably deprecated in this version.{{info needed|what was this entity's numeric ID?}}}} | |{{HistoryLine||1.13|dev=17w47a|Numeric IDs for entities were presumably deprecated in this version.{{info needed|what was this entity's numeric ID?}}}} | ||
|{{HistoryLine||1.21.5|dev=25w03a|The NBT boolean <code>Saddle</code> has been removed, in favor of the new equipment field. }} | |{{HistoryLine||1.21.5|dev=25w03a|The NBT boolean <code>Saddle</code> has been removed, in favor of the new equipment field. }} | ||
| Line 791: | Line 794: | ||
== Trivia == | == Trivia == | ||
* A pig appears as a DLC costume for the [https://www.ssbwiki.com/Mii_Brawler_(SSBU) Mii Brawler] in the crossover fighting game ''Super Smash Bros. Ultimate''. | * A pig appears as a DLC costume for the [https://www.ssbwiki.com/Mii_Brawler_(SSBU) Mii Brawler] in the crossover fighting game ''[[Minecraft:Super Smash Bros. Ultimate]]''. | ||
* The warm variant of the pig is based on the {{W|red river hog}}, as revealed in Minecraft Live 2025.{{verify|youtube video timestamp?}} | * The warm variant of the pig is based on the {{W|red river hog}}, as revealed in Minecraft Live 2025.{{verify|youtube video timestamp?}} | ||
** However the image that was used is a {{W|Mangalica|mangalica pig}}, likely by mistake. | ** However the image that was used is a {{W|Mangalica|mangalica pig}}, likely by mistake. | ||
<!--*For the upcoming baby pig model, the head is ''slightly'' shifted to the right to avoid planefighting.--> | <!--*For the upcoming baby pig model, the head is ''slightly'' shifted to the right to avoid planefighting.--> | ||
* The third hurt sound for the baby pig was reused from the Piggy Bank from Dungeons. | * The third hurt sound for the baby pig was reused from the [[Minecraft:Piggy Bank]] from Dungeons. | ||
== Gallery == | == Gallery == | ||
| Line 806: | Line 809: | ||
=== Mojang screenshots === | === Mojang screenshots === | ||
<gallery> | <gallery> | ||
File:Zuri on a Warm Pig.jpeg|Zuri riding a warm pig. | File:Zuri on a Warm Pig.jpeg|[[Minecraft:Zuri]] riding a warm pig. | ||
File:Pig variants.jpeg|The two new pig variants. | File:Pig variants.jpeg|The two new pig variants. | ||
File:Warm pig in savanna.jpeg|A warm pig in a savanna. | File:Warm pig in savanna.jpeg|A warm pig in a [[Minecraft:savanna]]. | ||
File:Cold pig in cold biome.jpeg|A cold pig in a snowy taiga biome. | File:Cold pig in cold biome.jpeg|A cold pig in a [[Minecraft:snowy taiga]] biome. | ||
File:A pig looking into the distance.jpeg|A pig looking at the sunset from a cherry grove biome in [[Minecraft:Vibrant Visuals]]. | File:A pig looking into the distance.jpeg|A pig looking at the sunset from a [[Minecraft:cherry grove]] biome in [[Minecraft:Vibrant Visuals]]. | ||
File:A pig looking at a sunset.jpeg|Ditto, but from behind the pig. | File:A pig looking at a sunset.jpeg|Ditto, but from behind the pig. | ||
File:Adoptable piglet.jpg|A baby pig asking to be adopted | File:Adoptable piglet.jpg|A baby pig asking to be adopted | ||
| Line 817: | Line 820: | ||
=== Mojang images === | === Mojang images === | ||
<gallery> | <gallery> | ||
File:Zuri Freefall.jpeg|A pig watching Zuri doing water bucket clutch. | File:Zuri Freefall.jpeg|A pig watching [[Minecraft:Zuri]] doing water bucket clutch. | ||
File:Pig through a peephole.jpeg|A saddled pig through a peephole. | File:Pig through a peephole.jpeg|A saddled pig through a peephole. | ||
</gallery> | </gallery> | ||
| Line 824: | Line 827: | ||
<gallery> | <gallery> | ||
Pig Death.png|A dying pig. | Pig Death.png|A dying pig. | ||
Minipig.png|A baby pig | Minipig.png|A baby pig with its parents. | ||
SaddledBabyPigAndParent.png|A [[Minecraft:saddle]]d baby pig next to its parent. Saddled baby pigs are available only via [[Minecraft:commands]]. | SaddledBabyPigAndParent.png|A [[Minecraft:saddle]]d baby pig next to its parent before Tiny Takeover. Saddled baby pigs are available only via [[Minecraft:commands]]. | ||
PigSaddleMinecart.png|Zuri riding a pig while the pig is riding a [[Minecraft:minecart]] | PigSaddleMinecart.png|Zuri riding a pig while the pig is riding a [[Minecraft:minecart]] | ||
Pigs following beetroot holder.png|Pigs following the player holding [[Minecraft:beetroot]] {{in|BE}}. | Pigs following beetroot holder.png|Pigs following the [[Minecraft:player]] holding [[Minecraft:beetroot]] {{in|BE}}. | ||
Three Pigs In Forest.png|Three pigs in a forest | Three Pigs In Forest.png|Three pigs in a [[Minecraft:forest]] | ||
PigNipples.png|An upside-down pig, revealing its feet and nipples | PigNipples.png|An upside-down pig, revealing its feet and nipples | ||
Pig facing player.png|A pig facing the player | Pig facing player.png|A pig facing the player | ||
Ravine with pigs in it.png|A ravine with three pigs in it | Ravine with pigs in it.png|A [[Minecraft:ravine]] with three pigs in it | ||
Player on saddled pig in a minecart.png|Steve riding a saddled pig in a minecart | Player on saddled pig in a minecart.png|Steve riding a saddled pig in a minecart | ||
File:Minecon-Rush-Race screenshot 2.jpg|A player riding a saddled pig during the Ravager Run game from [[Minecraft:Minecon Live: Rush Race!]] | File:Minecon-Rush-Race screenshot 2.jpg|A player riding a saddled pig during the Ravager Run game from [[Minecraft:Minecon Live: Rush Race!]] | ||
File:Minecraft Swarovski Crystal Suit.jpeg|A player steering a pig with a carrot on a stick in a cherry grove | File:Minecraft Swarovski Crystal Suit.jpeg|A player steering a pig with a [[Minecraft:carrot on a stick]] in a [[Minecraft:cherry grove]] | ||
</gallery> | </gallery> | ||
| Line 846: | Line 849: | ||
Baby Warm Pig (texture).png|Baby warm pig texture file. | Baby Warm Pig (texture).png|Baby warm pig texture file. | ||
Saddle (pig texture) JE3.png|Pig saddle texture file. | Saddle (pig texture) JE3.png|Pig saddle texture file. | ||
Pig (Programmer Art texture) 1.21.5.png|Programmer Art temperate pig texture file. | Pig (Programmer Art texture) 1.21.5.png|[[Minecraft:Programmer Art]] temperate pig texture file. | ||
Pig (texture) JE4 BE2.png|Old Pig texture file. | Pig (texture) JE4 BE2.png|Old Pig texture file. | ||
Saddle (pig texture) JE2.png|Old pig saddle texture file. | Saddle (pig texture) JE2.png|Old pig saddle texture file. | ||
Pig (texture) JE3.png|Old Programmer Art pig texture file. | Pig (texture) JE3.png|Old [[Minecraft:Programmer Art]] pig texture file. | ||
Saddle (pig texture) JE1.png|Old Programmer Art Old saddle texture file. | Saddle (pig texture) JE1.png|Old [[Minecraft:Programmer Art]] Old saddle texture file. | ||
</gallery> | </gallery> | ||
=== Official artwork === | === Official artwork === | ||
<gallery> | <gallery> | ||
File:Animals.png|Artwork of a pig alongside Steve and a sheep. | File:Animals.png|Artwork of a pig alongside [[Minecraft:Steve]] and a [[Minecraft:sheep]]. | ||
File:Steve Alex Pig.png|Steve and Alex with a pig. | File:Steve Alex Pig.png|Steve and [[Minecraft:Alex]] with a pig. | ||
File:Pig Artwork.png|Artwork of a pig looking up. | File:Pig Artwork.png|Artwork of a pig looking up. | ||
File:Pig Artwork 2.png|Ditto, but in bright lighting. | File:Pig Artwork 2.png|Ditto, but in bright lighting. | ||
File:Pig Artwork 3.png|A different pig looking up. | File:Pig Artwork 3.png|A different pig looking up. | ||
File:Saddled Pig Artwork.png|Saddled pig artwork. | File:Saddled Pig Artwork.png|Saddled pig artwork. | ||
File:Pig Sticker.gif|A pig as it appears on the banner for the Wild Update. | File:Pig Sticker.gif|A pig as it appears on the banner for the [[Minecraft:The Wild Update|Wild Update]]. | ||
File:Minecraft Spring to life pig rider.gif|Makena riding a pig | File:Minecraft Spring to life pig rider.gif|[[Minecraft:Makena]] riding a pig | ||
File:Pig Minecraft Instagram.jpg|Artwork of a pig. | File:Pig Minecraft Instagram.jpg|Artwork of a pig. | ||
File:Village and Pillage banner.png|A pig in promotional artwork for the Village & Pillage Update. | File:Village and Pillage banner.png|A pig in promotional artwork for the [[Minecraft:Village & Pillage]] Update. | ||
File:Caves & Cliffs cover art.png|A pig in promotional artwork for the first Caves & Cliffs update. | File:Caves & Cliffs cover art.png|A pig in promotional artwork for the first [[Minecraft:Caves & Cliffs]] update. | ||
File:Wild key art.png|A pig in official artwork for The Wild Update. | File:Wild key art.png|A pig in official artwork for [[Minecraft:The Wild Update]]. | ||
File:Minecraft Education Edition Key Art.jpg|A pig in official artwork for the Education Edition. | File:Minecraft Education Edition Key Art.jpg|A pig in official artwork for the [[Minecraft:Education Edition]]. | ||
File:Steve-Alex-Noor-pigs.jpg|Official artwork of Alex, Steve, and Noor riding pigs. | File:Steve-Alex-Noor-pigs.jpg|Official artwork of [[Minecraft:Alex]], [[Minecraft:Steve]], and [[Minecraft:Noor]] riding pigs. | ||
File:Linus-chan-nationalpigday-concepttofinal.jpg|Official artwork of Alex, Steve, and Noor riding pigs. | File:Linus-chan-nationalpigday-concepttofinal.jpg|Official artwork of [[Minecraft:Alex]], [[Minecraft:Steve]], and [[Minecraft:Noor]] riding pigs. | ||
File:Akira slide.jpg|Alex sliding on a road on a pig in reference to a shot in the 1988 animated film ''Akira''.<ref>{{YouTube link|LK3hSoG5foQ|Akira -1988, Akira Drift clip|Senor Corbuiser|March 31st, 2022}}</ref> | File:Akira slide.jpg|[[Minecraft:Alex]] sliding on a road on a pig in reference to a shot in the 1988 animated film ''Akira''.<ref>{{YouTube link|LK3hSoG5foQ|Akira -1988, Akira Drift clip|Senor Corbuiser|March 31st, 2022}}</ref> | ||
File:Pig Animated Pixel Artwork.gif|Pixel art animation of a pig scampering about. | File:Pig Animated Pixel Artwork.gif|Pixel art animation of a pig scampering about. | ||
File:One more cave.jpeg|[[Minecraft:Efe]] chooses a path while riding a pig. | File:One more cave.jpeg|[[Minecraft:Efe]] chooses a path while riding a pig. | ||
| Line 877: | Line 880: | ||
=== In other media === | === In other media === | ||
<gallery> | <gallery> | ||
File:Jens at Telltale.jpg|A pig figure at Telltale Games. | File:Jens at Telltale.jpg|A pig figure at [[Minecraft:Telltale Games]]. | ||
File:Pig mii fighter costume.jpg|The pig Mii Brawler costume in ''Super Smash Bros. Ultimate''. | File:Pig mii fighter costume.jpg|The pig Mii Brawler costume in ''[[Minecraft:Super Smash Bros. Ultimate]]''. | ||
File:Pigtales.png|Pig sock puppets from the defunct Mojang website Pig Tales. | File:Pigtales.png|Pig sock puppets from the defunct Mojang website [[Minecraft:Pig Tales]]. | ||
File:Croc Ad 3.jpg|Sunny riding a pig in an advertisement. | File:Croc Ad 3.jpg|[[Minecraft:Sunny]] riding a pig in an advertisement. | ||
File:Croc Ad 4.jpg|Ditto. | File:Croc Ad 4.jpg|Ditto. | ||
File:Pig Mobestiary.jpg|The pig as seen in the Mobestiary | File:Pig Mobestiary.jpg|The pig as seen in the [[Minecraft: Mobestiary|Mobestiary]] | ||
File:LEGO Pig.png|Lego Minecraft pig minifigure. | File:LEGO Pig.png|Lego Minecraft pig minifigure. | ||
File:LEGO Minecraft Micro-Mobs 2.jpg|Pig micromob (left) from Lego Minecraft. | File:LEGO Minecraft Micro-Mobs 2.jpg|Pig micromob (left) from [[Minecraft:Lego Minecraft]]. | ||
File:Pig Riding JINX.jpg|Official T-shirt artwork "Pig Riding" featuring Steve and a pig. Made by JINX. | File:Pig Riding JINX.jpg|Official T-shirt artwork "Pig Riding" featuring [[Minecraft:Steve]] and a pig. Made by JINX. | ||
File:Plush Pig.png|Pig plush made by JINX. | File:Plush Pig.png|Pig plush made by JINX. | ||
File:Pig Plush.jpg|Pig plush made by JINX. | File:Pig Plush.jpg|Pig plush made by JINX. | ||
| Line 891: | Line 894: | ||
File:Rubber Ducks.jpeg|Rubber ducks of a pig, creeper, and Steve. | File:Rubber Ducks.jpeg|Rubber ducks of a pig, creeper, and Steve. | ||
File:Pig Wheelchair Cover.jpg|An officially licensed pig wheelchair cover. | File:Pig Wheelchair Cover.jpg|An officially licensed pig wheelchair cover. | ||
File:Pig Potato.png|The poisonous potato pig from 24w14potato. | File:Pig Potato.png|The poisonous potato pig from [[Minecraft:Java Edition 24w14potato|24w14potato]]. | ||
File:Moltted Pig.png|The mottled pig from Minecraft Earth. | File:Moltted Pig.png|The [[Minecraft:Earth:Mottled Pig|mottled pig]] from [[Minecraft:Minecraft Earth]]. | ||
File:City Pig.png|A pig as it appears in the City texture pack. | File:City Pig.png|A pig as it appears in the [[Minecraft:Texture Pack DLC|City texture pack]]. | ||
File:Greek Pig.png|A pig as it appears in the Greek Mythology texture pack. | File:Greek Pig.png|A pig as it appears in the [[Minecraft:Texture Pack DLC|Greek Mythology texture pack]]. | ||
File:Skeleton Pig.png|The Skeleton Pig, featured in the [[Minecraft:Mash-up pack|Halloween Edition mash-up pack]] and Minecraft Mini-Series. | File:Skeleton Pig.png|The Skeleton Pig, featured in the [[Minecraft:Mash-up pack|Halloween Edition mash-up pack]] and [[Minecraft:Minecraft Mini-Series]]. | ||
File:Pig TP.png|A pig | File:Pig TP.png|A pig in the [[Minecraft:Plastic Texture Pack]] | ||
File:Party Pig.png|Party Pig, a skin featured in the [[Minecraft:1st Birthday Skin Pack]]. | File:Party Pig.png|Party Pig, a skin featured in the [[Minecraft:1st Birthday Skin Pack]]. | ||
File:Pig Whisperer.png|Pig Whisperer, a skin dressed as a pig featured in the Builders & Biomes skin pack. | File:Pig Whisperer.png|Pig Whisperer, a skin dressed as a pig featured in the [[Minecraft:Builders & Biomes (skin pack)|Builders & Biomes skin pack]]. | ||
File:Pig Whisperer Alternate.png|Alternate design for the Pig Whisperer. | File:Pig Whisperer Alternate.png|Alternate design for the Pig Whisperer. | ||
File:Dancing-piggies-video.mp4|A pig dancing with a bad piggy. | File:Dancing-piggies-video.mp4|A pig dancing with a [[Minecraft:Angry Birds|bad piggy]]. | ||
File: | File:AMCM Technoblade.jpg|A pig as it appears in {{AMCM}}, also a reference to [[Minecraft:Technoblade]]. | ||
File:Cold animals in real life snow.jpeg|alt=Cold animal variants on the side of the road|Cold animal variants in real life snow. | File:Cold animals in real life snow.jpeg|alt=Cold animal variants on the side of the road|Cold animal variants in real life snow. | ||
File:DJ Porky P is calling.jpg | File:DJ Porky P is calling.jpg | ||
File:Pig Face Hoodie.png | File:Pig Face Hoodie.png | ||
File:MCE Pig.png|A {{MCE|pig}} as seen in {{MCE}}. | |||
File:MCD Pig.png|A {{MCD|pig}} as seen in {{MCD}}. | |||
File:MCL Pig.png|A {{MCL|pig}} as seen in {{MCL}}. | |||
</gallery> | </gallery> | ||
| Line 911: | Line 917: | ||
== External links == | == External links == | ||
*Pig article on Wikipedia | *[[Minecraft:wikipedia:pig|Pig]] article on Wikipedia | ||
== Navigation == | == Navigation == | ||
| Line 920: | Line 926: | ||
[[Category:Transport]] | [[Category:Transport]] | ||
cs:Prase | [[Minecraft:cs:Prase]] | ||
de:Schwein | [[Minecraft:de:Schwein]] | ||
es:Cerdo | [[Minecraft:es:Cerdo]] | ||
fr:Cochon | [[Minecraft:fr:Cochon]] | ||
hu:Malac | [[Minecraft:hu:Malac]] | ||
it:Maiale | [[Minecraft:it:Maiale]] | ||
ja:ブタ | [[Minecraft:ja:ブタ]] | ||
ko:돼지 | [[Minecraft:ko:돼지]] | ||
lzh:豕 | [[Minecraft:lzh:豕]] | ||
nl:Varken | [[Minecraft:nl:Varken]] | ||
pl:Świnia | [[Minecraft:pl:Świnia]] | ||
pt:Porco | [[Minecraft:pt:Porco]] | ||
ru:Свинья | [[Minecraft:ru:Свинья]] | ||
th:หมู | [[Minecraft:th:หมู]] | ||
uk:Свиня | [[Minecraft:uk:Свиня]] | ||
zh:猪 | [[Minecraft:zh:猪]] | ||
Latest revision as of 11:10, 9 June 2026
Template:For Template:Infobox entity A pig is a Minecraft:passive mob found commonly in most grassy Minecraft:biomes. Adult pigs are a source of Minecraft:porkchops and can be ridden using a Minecraft:saddle and a Minecraft:carrot on a stick. They have three variants based on the Minecraft:temperature of the biome they spawn in.
Spawning
Pigs spawn in the Minecraft:Overworld in most grassy biomes except for Minecraft:snowy plains, Minecraft:meadows, Minecraft:mangrove swamps, and Minecraft:pale gardens.
Template:IN, pigs spawn in groups of 4 on Minecraft:grass blocks. Individual pigs rarely may spawn on grass after world generation.
Template:IN, pigs spawn in groups of 1 to 3 on grass blocks. Individuals regularly spawn on grass after world generation.
Each pig has a 5% chance of spawning as a baby.
Pigs sometimes also spawn in animal pens, stables, and butcher house backyards in Minecraft:villages upon world generation.
Pigs cannot spawn naturally with a saddle.
Variants
Template:Redirect Pigs have 3 variants: temperate, cold, and warm. This variant is determined by the biome the pig spawns in and does not impact their behavior.
If a pig spawn egg is used in any biome not listed, a temperate pig is spawned.
Sound variants
Pigs have 3 sound variants: Big, Classic, and Mini.
A sound variant is chosen randomly upon the mob spawning, and is not related to the mob's temperature variant. These sound variants have no effect on the mob's behavior.
For the sounds of each sound variant, see Template:Slink.
Drops
On death
An adult pig drops: Template:DropTable
- A Template:ItemLink if saddled.
- Template:Xp Minecraft:experience orbs if killed by a player or tamed Minecraft:wolf.
Killing a baby pig yields neither Minecraft:items nor Minecraft:experience.
Behavior
Pigs roam the Overworld avoiding hazards and harmful falls. A pig flees for a short time when harmed.
Pigs follow players holding Minecraft:carrots, Minecraft:potatoes, Minecraft:beetroots or Minecraft:carrots on sticks within a radius of six blocks.
Breeding
Template:Main Pigs can be bred using Minecraft:carrots, Minecraft:potatoes or Minecraft:beetroots. After breeding, the parents have a cooldown of 5 minutes before they can breed again. Baby pigs mature in 20 minutes and stay near their parents. Feeding them reduces the remaining time to maturity by 10%. Feeding baby pigs a golden dandelion will freeze their growth. If they are fed again it will take them 24000 ticks (20 minutes) to grow up.
When two different variants of pigs are bred together, the variant of the baby is randomly selected from one of the parents' variants.
Riding
It is possible to ride an adult pig by Template:Control a Minecraft:saddle on it. Minecraft:Shears can be used on a saddled pig to retrieve the saddle. Baby pigs cannot be saddled nor ridden.
Saddled pigs are controllable with a Minecraft:carrot on a stick. They travel at a default speed of 2.42 blocks/s.
Template:Control the carrot on a stick causes the pig to enter a boost, at the cost of 7 durability. While boosted, the pig gradually accelerates to its peak speed of 5.2 blocks/s (6.24 blocks/s with Minecraft:Speed I and 7.28 blocks/s with Speed II) until halfway through the boost, and then decelerates to its default speed by the end of the boost. Specifically, the speed of the pig increases by <math>1+1.15\times \sin(\frac{t}{t_0}\pi)</math> times the original speed, where <math>t</math> is the time already passed since the start of the boost, and <math>t_0</math> is the total duration of the boost. No matter how many ticks the boost lasts, the average speed of pig during a full boost cycle is roughly 4.19 m/s.
Unlike other Overworld mounts,<ref>Template:Bug</ref> pigs cannot float on water or lava (even if they have Minecraft:Fire Resistance) when being controlled. Pigs can be controlled through 1-block-high bodies of water with a carrot and stick, but deeper water causes the player to dismount. If the pig and rider fall, then fall damage doesn't cause any knockback or slower movement speed.
A player can travel through a space 1 block high by riding a pig.
Lightning
When a pig or baby pig is struck by Minecraft:lightning, it transforms into a Minecraft:zombified piglin or baby zombified piglin, respectively. If lightning strikes a pig in Minecraft:Peaceful difficulty, the pig does not transform but takes normal damage from the strike. If the pig was equipped with a saddle, the saddle is lost. If a player was riding the pig, they are kept mounted on the zombified piglin Template:In,<ref>Template:Bug</ref> while Template:In they are dismounted.<ref>Template:Bug</ref>
Jockey
15% of nearby baby Minecraft:zombies, Minecraft:husks, or Minecraft:drowned may ride an adult unsaddled pig to form a Minecraft:jockey.
Sounds
Generic
Template:JE: Template:SoundTable
Template:BE: Template:SoundTable
Classic
Template:JE: Template:SoundTable
Template:BE: Template:SoundTable
Big
Template:JE: Template:SoundTable
Mini
Template:JE: Template:SoundTable
Baby
Data values
ID
Template:Editions: Template:ID table
Template:Editions: Template:ID table
Entity data
Pigs have entity data associated with them that contain various properties.
<section begin="entity data"/>
- Template:Nbt Entity data
- Template:Nbt inherit/breedable
- Template:Nbt inherit/entity
- Template:Nbt inherit/mob
- Template:Nbt: the variant of the pig. Represents the Template:DCL component.
<section end="entity data"/>
Achievements
Achievements that apply to all mobs: Template:Collapse
Advancements
Advancements that apply to all mobs: Template:Collapse
History
Development
Java Edition
Template:More images Template:HistoryTable
Bedrock Edition
Legacy Console Edition
New Nintendo 3DS Edition
-
The original pig model before it was made into a Minecraft:creeper.
-
The old "cross-eyed" pig texture.
-
The first image of pigs with 3D snouts.
-
The image suggesting Notch add snouts to pigs.
-
The image thanking Notch for adding snouts to pigs.
-
First image of player-controlled pigs released by Minecraft:Nathan Adams.
-
First image of pig riding in Bedrock Edition.
-
Second image of pig riding in Bedrock Edition.
-
Third image of pig riding in Bedrock Edition.
Data history
Issues
Trivia
- A pig appears as a DLC costume for the Mii Brawler in the crossover fighting game Minecraft:Super Smash Bros. Ultimate.
- The warm variant of the pig is based on the Template:W, as revealed in Minecraft Live 2025.Template:Verify
- However the image that was used is a Template:W, likely by mistake.
- The third hurt sound for the baby pig was reused from the Minecraft:Piggy Bank from Dungeons.
Gallery
Renders
-
A saddled warm pig.
-
A saddled cold pig.
Mojang screenshots
-
Minecraft:Zuri riding a warm pig.
-
The two new pig variants.
-
A warm pig in a Minecraft:savanna.
-
A cold pig in a Minecraft:snowy taiga biome.
-
A pig looking at the sunset from a Minecraft:cherry grove biome in Minecraft:Vibrant Visuals.
-
Ditto, but from behind the pig.
-
A baby pig asking to be adopted
Mojang images
-
A pig watching Minecraft:Zuri doing water bucket clutch.
-
A saddled pig through a peephole.
Screenshots
-
A dying pig.
-
A baby pig with its parents.
-
A Minecraft:saddled baby pig next to its parent before Tiny Takeover. Saddled baby pigs are available only via Minecraft:commands.
-
Zuri riding a pig while the pig is riding a Minecraft:minecart
-
Three pigs in a Minecraft:forest
-
An upside-down pig, revealing its feet and nipples
-
A pig facing the player
-
A Minecraft:ravine with three pigs in it
-
Steve riding a saddled pig in a minecart
-
A player riding a saddled pig during the Ravager Run game from Minecraft:Minecon Live: Rush Race!
-
A player steering a pig with a Minecraft:carrot on a stick in a Minecraft:cherry grove
Textures
-
Temperate pig texture file.
-
Cold pig texture file
-
Warm pig texture file.
-
Baby cold pig texture file.
-
Baby temperate pig texture file.
-
Baby warm pig texture file.
-
Pig saddle texture file.
-
Minecraft:Programmer Art temperate pig texture file.
-
Old Pig texture file.
-
Old pig saddle texture file.
-
Old Minecraft:Programmer Art pig texture file.
-
Old Minecraft:Programmer Art Old saddle texture file.
Official artwork
-
Artwork of a pig alongside Minecraft:Steve and a Minecraft:sheep.
-
Steve and Minecraft:Alex with a pig.
-
Artwork of a pig looking up.
-
Ditto, but in bright lighting.
-
A different pig looking up.
-
Saddled pig artwork.
-
A pig as it appears on the banner for the Wild Update.
-
Minecraft:Makena riding a pig
-
Artwork of a pig.
-
A pig in promotional artwork for the Minecraft:Village & Pillage Update.
-
A pig in promotional artwork for the first Minecraft:Caves & Cliffs update.
-
A pig in official artwork for Minecraft:The Wild Update.
-
A pig in official artwork for the Minecraft:Education Edition.
-
Minecraft:Alex sliding on a road on a pig in reference to a shot in the 1988 animated film Akira.<ref>Template:YouTube link</ref>
-
Pixel art animation of a pig scampering about.
-
Minecraft:Efe chooses a path while riding a pig.
In other media
-
A pig figure at Minecraft:Telltale Games.
-
The pig Mii Brawler costume in Minecraft:Super Smash Bros. Ultimate.
-
Pig sock puppets from the defunct Mojang website Minecraft:Pig Tales.
-
Minecraft:Sunny riding a pig in an advertisement.
-
Ditto.
-
The pig as seen in the Mobestiary
-
Lego Minecraft pig minifigure.
-
Pig micromob (left) from Minecraft:Lego Minecraft.
-
Official T-shirt artwork "Pig Riding" featuring Minecraft:Steve and a pig. Made by JINX.
-
Pig plush made by JINX.
-
Pig plush made by JINX.
-
Baby pig plush made by JINX.
-
Rubber ducks of a pig, creeper, and Steve.
-
An officially licensed pig wheelchair cover.
-
The poisonous potato pig from 24w14potato.
-
The mottled pig from Minecraft:Minecraft Earth.
-
A pig as it appears in the City texture pack.
-
A pig as it appears in the Greek Mythology texture pack.
-
The Skeleton Pig, featured in the Halloween Edition mash-up pack and Minecraft:Minecraft Mini-Series.
-
A pig in the Minecraft:Plastic Texture Pack
-
Party Pig, a skin featured in the Minecraft:1st Birthday Skin Pack.
-
Pig Whisperer, a skin dressed as a pig featured in the Builders & Biomes skin pack.
-
Alternate design for the Pig Whisperer.
-
A pig dancing with a bad piggy.
-
A pig as it appears in Template:AMCM, also a reference to Minecraft:Technoblade.
-
Cold animal variants in real life snow.
-
A Template:MCE as seen in Template:MCE.
-
A Template:MCD as seen in Template:MCD.
-
A Template:MCL as seen in Template:MCL.
References
External links
- Pig article on Wikipedia
Minecraft:cs:Prase Minecraft:de:Schwein Minecraft:es:Cerdo Minecraft:fr:Cochon Minecraft:hu:Malac Minecraft:it:Maiale Minecraft:ja:ブタ Minecraft:ko:돼지 Minecraft:lzh:豕 Minecraft:nl:Varken Minecraft:pl:Świnia Minecraft:pt:Porco Minecraft:ru:Свинья Minecraft:th:หมู Minecraft:uk:Свиня Minecraft:zh:猪