Skip to content
[/craft]

Summon Pig Command

Copy the /summon command for Pig in Minecraft Java 26.2 and Bedrock 26.32. Grab the default command below, or use the builder to set position and options.

Default command

Java/summon minecraft:pig ~ ~ ~
Bedrock/summon pig ~ ~ ~

With custom name

Java/summon minecraft:pig ~ ~ ~ {CustomName:'"Pig"'}

Custom names via NBT are Java-only. On Bedrock, use a name tag after summoning.

Baby variant

Java/summon minecraft:pig ~ ~ ~ {IsBaby:1b}
Bedrock/summon pig ~ ~ ~ minecraft:as_baby

Customize in the builder

JavaSwitch edition using the selector in the header.
pig
/summon minecraft:pig ~ ~ ~

Frequently asked questions

How do I summon a Pig in Minecraft?
Enable cheats or use OP, open chat with T or /, paste /summon minecraft:pig ~ ~ ~ (Java) or /summon pig ~ ~ ~ (Bedrock), and press Enter. The Pig spawns at your feet.
Does the summon Pig command work on Bedrock Edition?
Yes — use /summon pig ~ ~ ~. Bedrock uses the same entity IDs without the "minecraft:" prefix and does not support NBT arguments like custom names in the summon command.
Why does my summoned Pig despawn?
Mobs despawn when no players are nearby. On Java Edition, add {PersistenceRequired:1b} to the summon command to prevent it. On Bedrock, use a name tag on the mob after summoning.
Browse all Summon commands →/summon builder →Java vs Bedrock guide →