You can summon a pig whenever you want using a cheat (game command) in Minecraft. This is done using the /summon command.
Let's explore how to do this.
* The version that it was added or removed, if applicable.
NOTE: Pocket Edition (PE), Xbox One, PS4, Nintendo Switch, and Windows 10 Edition are now called Bedrock Edition. We will continue to show them individually for version history.
- Java
- PE
- Xbox
- PS
- Nintendo
- Win10
- Edu
Summon Command in Minecraft Java Edition (PC/Mac)
In Minecraft Java Edition (PC/Mac) 1.11, 1.12, 1.13, 1.14, 1.15, 1.16, 1.17, 1.18, 1.19 and 1.20, the syntax to summon a pig using the /summon command is:
/summon pig [pos] [nbt]
In Minecraft Java Edition (PC/Mac) 1.8, 1.9 and 1.10, the syntax to summon a pig is:
/summon Pig [x] [y] [z] [dataTag]
Definitions
- pos or x y z is optional. It is the x y z coordinate where the pig should spawn. If no coordinate is specified, the pig will spawn in the current location.
- nbt or dataTag is optional. It is a compound NBT tag (formerly called data tag) that sets a property for the pig such as {NoAI:1} or {Age:-25000}. See NBT tags for pig.
Summon Command in Minecraft Pocket Edition (PE)
In Minecraft Pocket Edition (PE) 1.20, the syntax to summon a pig using the /summon command is:
/summon pig <nameTag> [spawnPos]
/summon pig [spawnPos] [yRot] [xRot] [spawnEvent] [nameTag]
/summon pig [spawnPos] facing <lookAtEntity> [spawnEvent] [nameTag]
/summon pig [spawnPos] facing <lookAtPosition> [spawnEvent] [nameTag]
In Minecraft Pocket Edition (PE) 1.16, 1.17, 1.18 and 1.19, the syntax to summon a pig is:
/summon pig [spawnPos] [spawnEvent] [nameTag]
/summon pig <nameTag> [spawnPos]
In Minecraft Pocket Edition (PE) 1.12, 1.13 and 1.14, the syntax to summon a pig is:
/summon pig [spawnPos] [spawnEvent]
Definitions
- spawnPos is optional. It is the x y z coordinate where the pig should spawn. If no coordinate is specified, the pig will spawn in the current location.
- spawnEvent is optional. It is the name of a game event for the pig. See spawn events for pig.
- nameTag is the custom name to assign to the pig. It will appear as a nametag above the pig.
- xRot is the x-rotation that the pig is facing in degrees. Positive values look downward and negative values look upward. 0=facing forward, 90=facing straight down, -90=facing straight up.
- yRot is the y-rotation that the pig is facing in degrees. 0=South, 90=West, 180=North, 270=East.
- lookAtEntity is the name of a player (or a target selector) that the pig will face when spawned.
- lookAtPositon is a set of x y z coordinates that the pig will face when spawned.
Summon Command in Minecraft Xbox One Edition
In Minecraft Xbox One Edition 1.20, the syntax to summon a pig using the /summon command is:
/summon pig <nameTag> [spawnPos]
/summon pig [spawnPos] [yRot] [xRot] [spawnEvent] [nameTag]
/summon pig [spawnPos] facing <lookAtEntity> [spawnEvent] [nameTag]
/summon pig [spawnPos] facing <lookAtPosition> [spawnEvent] [nameTag]
In Minecraft Xbox One Edition 1.16, 1.17, 1.18 and 1.19, the syntax to summon a pig is:
/summon pig [spawnPos] [spawnEvent] [nameTag]
/summon pig <nameTag> [spawnPos]
In Minecraft Xbox One Edition 1.12, 1.13 and 1.14, the syntax to summon a pig is:
/summon pig [spawnPos] [spawnEvent]
Definitions
- spawnPos is optional. It is the x y z coordinate where the pig should spawn. If no coordinate is specified, the pig will spawn in the current location.
- spawnEvent is optional. It is the name of a game event for the pig. See spawn events for pig.
- nameTag is the custom name to assign to the pig. It will appear as a nametag above the pig.
- xRot is the x-rotation that the pig is facing in degrees. Positive values look downward and negative values look upward. 0=facing forward, 90=facing straight down, -90=facing straight up.
- yRot is the y-rotation that the pig is facing in degrees. 0=South, 90=West, 180=North, 270=East.
- lookAtEntity is the name of a player (or a target selector) that the pig will face when spawned.
- lookAtPositon is a set of x y z coordinates that the pig will face when spawned.
Summon Command in Minecraft PS4 Edition
In Minecraft PS4 Edition 1.20, the syntax to summon a pig using the /summon command is:
/summon pig <nameTag> [spawnPos]
/summon pig [spawnPos] [yRot] [xRot] [spawnEvent] [nameTag]
/summon pig [spawnPos] facing <lookAtEntity> [spawnEvent] [nameTag]
/summon pig [spawnPos] facing <lookAtPosition> [spawnEvent] [nameTag]
In Minecraft PS4 Edition 1.16, 1.17, 1.18 and 1.19, the syntax to summon a pig is:
/summon pig [spawnPos] [spawnEvent] [nameTag]
/summon pig <nameTag> [spawnPos]
In Minecraft PS4 Edition 1.14, the syntax to summon a pig is:
/summon pig [spawnPos] [spawnEvent]
Definitions
- spawnPos is optional. It is the x y z coordinate where the pig should spawn. If no coordinate is specified, the pig will spawn in the current location.
- spawnEvent is optional. It is the name of a game event for the pig. See spawn events for pig.
- nameTag is the custom name to assign to the pig. It will appear as a nametag above the pig.
- xRot is the x-rotation that the pig is facing in degrees. Positive values look downward and negative values look upward. 0=facing forward, 90=facing straight down, -90=facing straight up.
- yRot is the y-rotation that the pig is facing in degrees. 0=South, 90=West, 180=North, 270=East.
- lookAtEntity is the name of a player (or a target selector) that the pig will face when spawned.
- lookAtPositon is a set of x y z coordinates that the pig will face when spawned.
Summon Command in Minecraft Nintendo Switch Edition
In Minecraft Nintendo Switch Edition 1.20, the syntax to summon a pig using the /summon command is:
/summon pig <nameTag> [spawnPos]
/summon pig [spawnPos] [yRot] [xRot] [spawnEvent] [nameTag]
/summon pig [spawnPos] facing <lookAtEntity> [spawnEvent] [nameTag]
/summon pig [spawnPos] facing <lookAtPosition> [spawnEvent] [nameTag]
In Minecraft Nintendo Switch Edition 1.16, 1.17, 1.18 and 1.19, the syntax to summon a pig is:
/summon pig [spawnPos] [spawnEvent] [nameTag]
/summon pig <nameTag> [spawnPos]
In Minecraft Nintendo Switch Edition 1.12, 1.13 and 1.14, the syntax to summon a pig is:
/summon pig [spawnPos] [spawnEvent]
Definitions
- spawnPos is optional. It is the x y z coordinate where the pig should spawn. If no coordinate is specified, the pig will spawn in the current location.
- spawnEvent is optional. It is the name of a game event for the pig. See spawn events for pig.
- nameTag is the custom name to assign to the pig. It will appear as a nametag above the pig.
- xRot is the x-rotation that the pig is facing in degrees. Positive values look downward and negative values look upward. 0=facing forward, 90=facing straight down, -90=facing straight up.
- yRot is the y-rotation that the pig is facing in degrees. 0=South, 90=West, 180=North, 270=East.
- lookAtEntity is the name of a player (or a target selector) that the pig will face when spawned.
- lookAtPositon is a set of x y z coordinates that the pig will face when spawned.
Summon Command in Minecraft Windows 10 Edition
In Minecraft Windows 10 Edition 1.20, the syntax to summon a pig using the /summon command is:
/summon pig <nameTag> [spawnPos]
/summon pig [spawnPos] [yRot] [xRot] [spawnEvent] [nameTag]
/summon pig [spawnPos] facing <lookAtEntity> [spawnEvent] [nameTag]
/summon pig [spawnPos] facing <lookAtPosition> [spawnEvent] [nameTag]
In Minecraft Windows 10 Edition 1.16, 1.17, 1.18 and 1.19, the syntax to summon a pig is:
/summon pig [spawnPos] [spawnEvent] [nameTag]
/summon pig <nameTag> [spawnPos]
In Minecraft Windows 10 Edition 1.12, 1.13 and 1.14, the syntax to summon a pig is:
/summon pig [spawnPos] [spawnEvent]
Definitions
- spawnPos is optional. It is the x y z coordinate where the pig should spawn. If no coordinate is specified, the pig will spawn in the current location.
- spawnEvent is optional. It is the name of a game event for the pig. See spawn events for pig.
- nameTag is the custom name to assign to the pig. It will appear as a nametag above the pig.
- xRot is the x-rotation that the pig is facing in degrees. Positive values look downward and negative values look upward. 0=facing forward, 90=facing straight down, -90=facing straight up.
- yRot is the y-rotation that the pig is facing in degrees. 0=South, 90=West, 180=North, 270=East.
- lookAtEntity is the name of a player (or a target selector) that the pig will face when spawned.
- lookAtPositon is a set of x y z coordinates that the pig will face when spawned.
Summon Command in Minecraft Education Edition
In Minecraft Education Edition 1.14.31, 1.17.30 and 1.18.32, the syntax to summon a pig using the /summon command is:
/summon pig [spawnPos] [spawnEvent] [nameTag]
/summon pig <nameTag> [spawnPos]
In Minecraft Education Edition 1.12, the syntax to summon a pig is:
/summon pig [spawnPos] [spawnEvent]
In Minecraft Education Edition 1.9 and older, the syntax to summon a pig is:
/summon pig [spawnPos]
Definitions
- spawnPos is optional. It is the x y z coordinate where the pig should spawn. If no coordinate is specified, the pig will spawn in the current location.
- spawnEvent is optional. It is the name of a game event for the pig. See spawn events for pig.
- nameTag is the custom name to assign to the pig. It will appear as a nametag above the pig.
- Java
- PE
- Xbox
- PS
- Nintendo
- Win10
- Edu
Example in Java Edition (PC/Mac) 1.13, 1.14, 1.15, 1.16, 1.17, 1.18, 1.19 and 1.20
To summon a pig in Minecraft 1.13, 1.14, 1.15, 1.16, 1.17, 1.18, 1.19 and 1.20:
/summon pig
To summon a baby pig that is named Pinky:
/summon pig ~ ~ ~ {CustomName:"\"Pinky\"",Age:-25000}
Example in Java Edition (PC/Mac) 1.11 and 1.12
To summon a pig in Minecraft 1.11 and 1.12:
/summon pig
To summon a baby pig that is named Pinky:
/summon pig ~ ~ ~ {CustomName:Pinky,Age:-25000}
Example in Java Edition (PC/Mac) 1.8, 1.9 and 1.10
To summon a pig in Minecraft 1.8, 1.9 and 1.10:
/summon Pig
To summon a pig that is named Sloppy:
/summon Pig ~ ~ ~ {CustomName:Sloppy}
To summon a baby pig (piglet):
/summon Pig ~ ~ ~ {Age:-25000}
Example in Pocket Edition (PE)
To summon a pig in Minecraft PE:
/summon pig
To summon a pig at the coordinates (12, 65, -8):
/summon pig 12 65 -8
Example in Xbox One Edition
To summon a pig in Minecraft Xbox One Edition:
/summon pig
To summon a pig that is 4 blocks West of your current position:
/summon pig ~-4 ~ ~
Example in PS4 Edition
To summon a pig in Minecraft PS4 Edition:
/summon pig
To summon a pig at the coordinates (8, 67, 100):
/summon pig 8 67 100
Example in Nintendo Switch Edition
To summon a pig in Minecraft Nintendo Switch Edition:
/summon pig
To summon a pig at the coordinates (8, 72, 100):
/summon pig 8 72 100
Example in Windows 10 Edition
To summon a pig in Minecraft Windows 10 Edition:
/summon pig
To summon a pig that is 1 block above your current position:
/summon pig ~ ~1 ~
Example in Education Edition
To summon a pig in Minecraft Education Edition:
/summon pig
To summon a pig at the coordinates (-70, 63, 12):
/summon pig -70 63 12
In this example, we are going to summon a pig in Minecraft Java Edition (PC/Mac) 1.20 with the following command:
Type the command in the chat window. As you are typing, you will see the command appear in the lower left corner of the game window. Press the Enter key to run the command.
Congratulations, you have summoned a pig in Minecraft.
If you need help with /summon commands, you can use these tools to automatically generate commands for you: