Minecraft Wiki

The Minecraft Wiki has moved from Fandom; see the linked discussion page for details.

READ MORE

Minecraft Wiki
Advertisement

For zombified variant, see Zombie Pigman. For uniplemented Pigman mob, see Java Edition removed features § Pigman. For passive overworld pig mob, see Pig. For hostile nether pig-like mob, see Hoglin.
Crafting Table
This article describes content that may be included in a future update. 
This content has appeared in development versions, but the full update containing it has not been released yet.

Piglins are hostile mobs that spawn in the Nether. They are equipped with crossbows or golden swords. While they are normally hostile toward the player, they become neutral if the player wears golden armor. The player is capable of bartering with them.

Spawning

In Java Edition, piglins spawn commonly in groups of 1–3 in crimson forests and uncommonly in the nether wastes biomes. Each piglin has a 25% chance of spawning as a baby.

In Bedrock Edition, piglins spawn in groups of 1–5 in crimson forests and nether wastes. Piglins have a 5% chance to spawn as babies.

Adult piglins spawn with either golden swords or crossbows and sometimes wearing golden armor. Baby piglins spawn without any equipment.

Piglins do not despawn in peaceful mode.‌[Java Edition only]

Unlike zombie pigmen, piglins can not spawn on magma blocks.

Drops

Piglins have a 8.5% chance of dropping their naturally-spawned equipment and drop it with random durability. Each level of Looting increases the chance by 1 percentage point (11.5% chance with Looting III).

Any picked-up equipment or other picked items have a 100% chance of dropping and drop without changing the damage that has accumulated on it. In Java Edition, a piglin who is hit while inspecting a gold ingot during bartering puts the ingot in its inventory. This gold ingot is dropped upon death. If killed in one hit while inspecting, the gold has the same chance to drop as any other held item.

In Bedrock Edition:

  • 0–2 Arrows, dropping more with the presence of Looting, up to 5.

Naturally-spawned equipment

Experience

Adult piglins drop 5 experience and an extra 1–3 experience per equipment if killed by player or tamed wolf.

Baby piglins drop 1 and an extra 1–2 per equipment if killed by player or tamed wolf.

Behavior

Realms Plus Icon
This section would benefit from the addition of isometric renders. 
Please remove this notice once you've added suitable isometric renders to the article.
The specific instructions are: Dancing piglin animated render from Bedrock Edition.

Piglins are hostile to players, unless they wear at least one piece of gold armor. With it, they become neutral, but still attack if provoked. Piglins are also provoked by breaking or opening a chest, trapped chest, ender chest, barrel, or a shulker box in their sight. They become hostile if a player mines a gold block, but not if they mine other golden-type blocks like nether gold ore.

Piglins attack wither skeletons and withers. Additionally, adult piglins also attack adult hoglins, but keep a distance of 6 blocks if outnumbered by hoglins. Adult piglins may group together within radius 32 blocks and attack in hordes like zombified piglins.

Hoglin Rider BE

Baby piglin riding baby Hoglin in Bedrock Edition.

Baby piglins are passive and never attack anything, they play with baby hoglins, running with them and mounting them. In Bedrock Edition, only 10% of baby piglins mount baby hoglins, but in Java Edition, any piglin can, and up to 3 piglins stacked on top of each other may ride a baby hoglin. Iron golems attack both adult and baby piglins; adults do not attack an iron golem until it attacks first.

When attacking with a crossbow, it shoots arrows every 2 seconds and in Java Edition, walks backward (stopping if at the edge of a drop) as soon as the enemy is close. Unlike bow-armed mobs, they do not strafe from left to right while shooting. Piglins with swords and other equipable items rush towards the player.

Piglins willingly downgrade to golden armor if they are wearing higher tier armor, or armor that has higher durability than gold, such as iron, chainmail, diamond, or netherite armor.

When in the Overworld, piglins transform into zombified piglins after 15 seconds and will start burning under direct sunlight.‌[Bedrock Edition only] When they transform, they retain their armor (but lose held items) and gain a golden sword. Upon transformation, the spawned zombified piglin has the Nausea effect for 10 seconds. This does not occur in the End.‌[Java Edition only] In Bedrock Edition, piglins in the End also transform into zombified piglins.

Piglins that are not currently attacking retreat from zombified piglins, soul fire, soul fire torches, and soul fire lanterns.

Piglins drown in water, they do not swim. They are capable of opening doors.

Despite being a nether mob, piglins are not naturally immune to fire damage.

Bartering

Main article: Bartering
Not to be confused with Trading.
Minecraft Bartering Guide for Java Edition 1.16.2 to 1.18

A reference table of Piglin Bartering as of 1.16.2 and above. Bartered items may differ in Bedrock Edition.

Bartering is an action the player can perform with piglins to obtain various items.

Mechanics

<onlyinclude>To barter with a piglin, either throw by dropping a gold ingot near an adult piglin or use a gold ingot on it. After the piglin takes the gold ingot and examines it for six seconds in Java Edition or eight seconds in Bedrock Edition[1], it tosses a random item to the player. Piglin brutes ignore gold ingots. Baby piglins take the ingot without giving anything in return, instead holding the ingot, which is dropped when killed.

Piglins pick up many other items that are made of gold; however, ingots are the only items that piglins accept for bartering. Baby piglins are incapable of bartering and treat gold ingots like any other gold items.

Hitting a piglin causes it to "confiscate" the ingot; the piglin does not complete the barter. It cannot be bartered with again unless it puts another item in its inventory. Piglins who are killed in one hit before they finish examining always drop the ingot.

When a piglin is admiring a gold ingot, it can still be angered by the player breaking a container or a gold-related block nearby, although its behavior differs depending on the game edition. In Java Edition, the piglin finishes the barter on the original schedule, and only starts attacking the player once the barter finishes. In Bedrock Edition, the piglin immediately finishes the barter and starts attacking the player,[2] leading to a bartering transaction much shorter than the default 8 seconds.[3] This allows piglins in Bedrock Edition to barter rapidly when gold-related blocks are repeatedly broken nearby, or when a gold-related block is repeatedly pushed and pulled by pistons.

Piglin Admiring Item

A piglin looking at a gold ingot.

Bartering is controlled by the loot table minecraft:gameplay/piglin_bartering. If the game rule mobGriefing is false, piglins only barter when the player uses a gold ingot on them.

If a piglin is zombified into a zombified piglin before the bartering is complete, the newly-zombified piglin drops the gold ingot.

The player can only barter with piglins, not piglin brutes or zombified piglins, even if the zombified piglin was a piglin that was zombified in the Overworld or the End.

When a piglin is admiring a gold ingot while bartering, it does not run away from nearby zoglins or nearby zombified piglins.

Items bartered

The item the piglin throws may be one of the following:

Bartering items
Item given Quantity Chance Ingots needed
per item (average)
Enchanted Book
with Soul Speed (random level)
1 5459
(~1.09%)
91.8
Iron Boots
with Soul Speed (random level)
8459
(~1.74%)
57.375
Splash Potion of Fire Resistance
Potion of Fire Resistance
Water Bottle 10459
(~2.18%)
45.9
Iron Nugget 10–36 1.996
Ender Pearl 2–4 15.3
String 3–9 20459
(~4.36%)
3.825
Nether Quartz 5–12 2.7
Obsidian 1 40459
(~8.71%)
11.475
Crying Obsidian 1–3 5.7375
Fire Charge 1 11.475
Leather 2–4 3.825
Soul Sand 2–8 2.295
Nether Brick
Spectral Arrow[JE only]
Arrow[BE only]
6–12 1.275
Gravel 8–16 0.96
Blackstone

Bartering is the only renewable source of nether quartz, crying obsidian, soul sand, nether brick‌[JE only], gravel, blackstone, as well as the Soul Speed enchantment.

History

Java Edition
1.1620w07aAdded bartering.
20w09aSoul sand, mushrooms, crimson fungi, flint, rotten flesh, and raw porkchops have been removed from the possible barters.
Crying obsidian, string, Fire Resistance potions and splash potions, and netherite hoes have been added to the possible barters.
Barter chances have been tweaked.
Due to a bug, all barters give stacks of 1–5 items.[4]
20w10aBarters now give the correct amounts of items.
Warped nylium, warped fungus, and shroomlights have been removed from the possible barters.
Iron nuggets have been added to the list of barters and soul sand has been re-added.
Barter chances have been tweaked.
20w11aEnchanted books and iron boots with Soul Speed have been added to the possible barters.
20w13aItems enchanted with Soul Speed are now slightly more common.
20w20aNetherite hoes can no longer be obtained through bartering.
1.16.220w28aWater bottles, spectral arrows, and blackstone have been added to the possible barters.
Magma cream and glowstone dust have been removed from the possible barters.
Barter chances have been tweaked.
Many barters give fewer items.
Bedrock Edition
1.16.0beta 1.16.0.51Added bartering.
beta 1.16.0.57Updated the loot table to match Java Edition 20w13a. Previously, right-clicking the piglin would give the player obsidian or flint and steel, while dropping gold onto the ground would result in a Nether wart block
Piglins now "inspect" the gold ingot before giving the player an item, as opposed to giving the item instantly.
1.16.100beta 1.16.100.54Updated the loot table to match Java Edition 1.16.2. Arrows are used in place of spectral arrows.

Issues

Issues relating to "Piglin" are maintained on the bug tracker. Report issues there.

Trivia

  • Piglins sometimes pick up and equip the iron boots enchanted with Soul Speed that they have just offered while bartering. A player wanting to obtain the iron boots without killing the piglin can induce the piglin to discard the iron boots by offering a pair of golden boots.

See also

References

  1. MCPE-99448 — Piglins need 8 seconds to barter, while they only need 6 in java
  2. MCPE-94099 — Piglins get angry when a player destroys a chest or a gold-related item while admiring a gold item
  3. MCPE-91275 — Piglin can skip bartering animation when being distracted by other activities
  4. MC-173165

Picking up items

Any piglin can pick up and equip any gold related item, regardless of their ability to pick up other items. A piglin inspects any gold-related item for a moment after picking it up.

Piglins have eight‌[JE only]/three‌[BE only] hidden inventory slots in which they can stack items. When a piglin with a full inventory encounters another item, it picks up the item and then throws it on the floor after contemplating it, leading to a cycle of continuously picking up and discarding the item. Baby piglins attempt to pick up any item and can steal from players. Adult piglins can pick up any golden item and porkchops, but they don't actively seek out and contemplate porkchops and gold nuggets; instead, if either of those items is nearby, they instantly place it in their inventory. Piglins drop any of these items upon death aside from gold ingots, raw porkchops and cooked porkchops.

Like other mobs capable of picking up items, piglins pick up armor and weapons. However, unlike other mobs, they prefer items in the gold tier of armor material, and throw away stronger items to equip these.


Sounds

Java Edition:

SoundSubtitlesSourceDescriptionResource locationTranslation keyVolumePitchAttenuation
distance
Piglin snorts??entity.piglin.ambientsubtitles.entity.piglin.ambient0.7??
Piglin snorts angrily??entity.piglin.angrysubtitles.entity.piglin.angry0.7??
Piglin celebrates??entity.piglin.celebratesubtitles.entity.piglin.celebrate0.8??
Piglin converts to Zombified Piglin??entity.piglin.converted_to_zombifiedsubtitles.entity.piglin.converted_to_zombified1.0??
Piglin hurts??entity.piglin.hurtsubtitles.entity.piglin.hurt0.7??
Piglin dies??entity.piglin.deathsubtitles.entity.piglin.death0.7-0.8??
Piglin retreats??entity.piglin.retreatsubtitles.entity.piglin.retreat0.7??
Piglin steps??entity.piglin.stepsubtitles.entity.piglin.step0.75??
Piglin snorts enviously??entity.piglin.jealoussubtitles.entity.piglin.jealous0.8??
Piglin admires item??entity.piglin.admiring_itemsubtitles.entity.piglin.admiring_item0.8-0.85??

Data values

See also: Chunk format
  • Entity data
    • Tags common to all entities
    • Tags common to all mobs
    •  CannotHunt: 1 or 0 (true/false) – if true, the piglin does not attack hoglins. Set to true for piglins spawned as a part of bastion remnants.
    •  Inventory: Each compound tag in this list is an item in the piglin's inventory. It can hold a maximum of 8 items.
      • An item in the inventory, excluding the Slot tag.
        • Tags common to all items
    •  IsBaby: 1 or 0 (true/false) – true if the piglin is a baby. May not exist.
    •  IsImmuneToZombification: 1 or 0 (true/false) – if true, the piglin does not transform to a zombified piglin when in the Overworld.
    •  TimeInOverworld: The number of ticks that the piglin has existed in the Overworld; the piglin converts to a zombified piglin when this is greater than 300.

Advancements

Icon Advancement In-game description Parent Actual requirements (if different) Resource location
Advancement-plain-rawNot Today, Thank You
Deflect a projectile with a Shield Suit UpBlock any projectile with a shield.story/deflect_arrow
Advancement-plain-rawAdventure
Adventure, exploration and combat Kill any entity, or be killed by any entity.adventure/root
Advancement-plain-rawMonster Hunter
Kill any hostile monster AdventureKill one of these 34 mobs: Only the riders of the chicken jockeys and skeleton horsemen are counted in this advancement. Other mobs may be killed, but are ignored for this advancement.adventure/kill_a_mob
Advancement-fancy-rawMonsters Hunted
Kill one of every hostile monster Monster HunterKill each of these 34 mobs: Other mobs may be killed, but are ignored for this advancement. Only the riders of the chicken jockeys and skeleton horsemen are counted in this advancement.adventure/kill_all_mobs

History

Upcoming Java Edition
1.1620w07aPiglin Baby Piglin Added piglins and baby piglins.
Piglin with Crossbow Piglins can hold crossbows.
Piglins can be converted into zombie pigmen in the Overworld.
20w09aPiglins now have an IsImmuneToZombification data value that, when set, prevents them from zombifying in the Overworld.
The loot table of items that can be bartered from piglins has been modified (see Bartering/Before 20w09a).
Baby Piglin Riding a Baby Hoglin Baby piglins can now ride on the back of baby hoglins.
20w10aThe loot table of items that can be bartered from piglins has been modified again (see Bartering/Before 20w10a).
20w11aEnchanted books and iron boots with Soul Speed have been added to the items that can be bartered from piglins.
20w12aFile:Hoglin Rider Tryglin.png Baby piglins can now ride on top of each other on a baby hoglin, up to three baby piglins can climb on at once.
Upcoming Bedrock Edition
1.16.0beta 1.16.0.51Piglin BE Baby Piglin Added piglins and baby piglins.
Piglin with Crossbow BE Piglins can hold crossbows.
Currently, piglins can drop only flint and steel and obsidian while bartering as a placeholder.
Piglins currently drop 0-2 arrows, even if the piglin is not armed with a crossbow.
Piglins currently use the player's hurt sound.

Issues

Issues relating to "Piglin" are maintained on the bug tracker. Report issues there.

Trivia

Gallery

Piglin with Crossbow standby JEPiglin with Crossbow targeting JEPiglin with Crossbow standby BEPiglin with Crossbow targeting BE
The differences of piglins targeting with crossbows between Java Edition and Bedrock Edition.

References

See also

Advertisement