Pig Spawn Egg — Minecraft block

Pig Spawn Egg

Pig Spawn Egg instantly spawns a pig in Minecraft and is available only from the Creative inventory or the /give command.

Block ID minecraft:pig_spawn_egg
Mod Vanilla
Game versions
1.21

Description

Pig Spawn Egg is a pink-and-salmon spotted utility item that immediately spawns a pig when used on a block in Minecraft. Pig Spawn Egg is not craftable and never appears in Survival mode — players obtain it only from the Creative inventory or with the command /give @p pig_spawn_egg. Spawn eggs were added in Java Edition 1.1, and each egg carries a two-tone color scheme matching the mob it produces, so the pink base of Pig Spawn Egg mirrors a pig's skin.

Using Pig Spawn Egg on a mob spawner reprograms that spawner to produce pigs in Java Edition, which makes Pig Spawn Egg handy for custom farms and adventure maps. The spawned pig is a passive mob that drops 1–3 raw porkchops, breeds with carrots, potatoes, or beetroot, and can be saddled and steered with a carrot on a stick. A pig struck by lightning transforms into a Zombified Piglin, so map-makers use Pig Spawn Egg to stage weather-based events.

Creative & Commands

How to use a Pig Spawn Egg in Minecraft

  1. 1

    Get the spawn egg

    Switch to Creative mode and find Pig Spawn Egg in the Spawn Eggs tab, or run /give @p pig_spawn_egg in any world that allows commands.

  2. 2

    Aim at a surface

    Point the crosshair at the floor or block face where you want the pig to appear; the mob spawns on the side you target.

  3. 3

    Use the egg

    Right-click on Java Edition or tap and hold on Bedrock Edition to spawn one pig instantly each time you use Pig Spawn Egg.

  4. 4

    Reprogram a spawner

    In Java Edition, use Pig Spawn Egg on a mob spawner block to convert it into a pig spawner for an automatic porkchop farm.

Java vs Bedrock

In Bedrock Edition, spawn eggs cannot change an existing mob spawner — they only spawn the mob directly where you use them.

Frequently asked questions

Can you craft a Pig Spawn Egg?

No. Pig Spawn Egg cannot be crafted in any edition. It is only available in the Creative inventory or through the /give command.

What does a Pig Spawn Egg do?

Pig Spawn Egg spawns one pig where you use it. On a mob spawner in Java Edition it also reprograms the spawner to produce pigs.

What command gives a Pig Spawn Egg?

Run /give @p pig_spawn_egg in Java Edition or Bedrock Edition to add Pig Spawn Egg to your inventory in a world with cheats enabled.

Why does a spawned pig turn into a Zombified Piglin?

Any pig struck by lightning transforms into a Zombified Piglin. This intended behavior also applies to pigs created with Pig Spawn Egg.

Minecraft and all related materials are trademarks and copyrights of Mojang Studios © 2009–2026. This site is not an official Minecraft product and is not affiliated with or endorsed by Mojang Studios or Microsoft Corporation.