How to Summon a Piglin – Wiki Guide
This Minecraft tutorial explains how to summon a piglin with screenshots and step-by-step instructions.
You can summon a piglin whenever you want using a cheat (game command) in Minecraft. This is done using the /summon command.
Let’s explore how to do this.
Requirements
To run game commands in Minecraft, you have to turn cheats on in your world.
Summon Command
Summon Command in Minecraft Java Edition (PC/Mac)
In Minecraft Java Edition (PC/Mac), the syntax to summon a piglin using the /summon command is:
/summon piglin [pos] [nbt]
Definitions
- pos is optional. It is the x y z coordinate where the piglin should spawn. If no coordinate is specified, the piglin will spawn in the current location.
- nbt is optional. It is a compound NBT tag (formerly called data tag) that sets a property for the piglin such as {CustomName:”\”Gold Bug\””} or {Health:50.0f}. See NBT tags for piglin.
Examples
Example in Java Edition (PC/Mac) 1.16, 1.17, 1.18, 1.19 and 1.20
To summon a piglin in Minecraft 1.16, 1.17, 1.18, 1.19 and 1.20:
/summon piglin
To summon a piglin that is named Gold Bug:
/summon piglin ~ ~ ~ {CustomName:"\"Gold Bug\""}
How to Enter the Command
1. Open the Chat Window
The easiest way to run a command in Minecraft is within the chat window. The game control to open the chat window depends on the version of Minecraft:
- For Java Edition (PC/Mac), press the T key to open the chat window.
- For Pocket Edition (PE), tap on the chat button at the top of the screen.
- For Xbox One, press the D-Pad (right) on the controller.
- For PS4, press the D-Pad (right) on the controller.
- For Nintendo Switch, press the right arrow button on the controller.
- For Windows 10 Edition, press the T key to open the chat window.
- For Education Edition, press the T key to open the chat window.
2. Type the Command
In this example, we are going to summon a piglin in Minecraft Java Edition (PC/Mac) 1.20 with the following command:
/summon piglin
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.
Once the cheat has been entered, the piglin will spawn and appear in your world:
You will see the message “Summoned new Piglin” appear in the lower left corner of the game window to indicate that the piglin has been summoned. You may need to look behind you to see it.
Congratulations, you have summoned a piglin in Minecraft.