Repository navigation
Commands
GitHub Action edited this page Oct 13, 2026
·
2 revisions
Petting registers an administrative command designed for server operators and map makers to spawn pre-tamed pets directly to a designated player.
Spawns any valid mob into the world and immediately bonds it as a tamed pet to the specified player.
/summon pet <owner> <entity> [<pos>] [<nbt>]
- Requires Operator Level 2 (cheats enabled).
| Argument | Type | Required? | Description |
|---|---|---|---|
<owner> |
Player selector | Yes | The player who will become the permanent owner of the newly summoned pet (e.g. @p, @s, or a player name). |
<entity> |
Entity Type ID | Yes | The registry identifier of the entity to spawn (e.g. minecraft:creeper, minecraft:warden, minecraft:iron_golem). |
[<pos>] |
Coordinate vector (x y z) |
No | The world coordinates where the pet should spawn. Defaults to the executor's current position if omitted. |
[<nbt>] |
NBT Compound {...}
|
No | Optional NBT data tags applied to the entity upon creation (e.g. custom names, equipment, or potion effects). |
-
Mob Validation:
- The entity type must resolve to a living mob.
- If an invalid entity type is specified (such as a boat, minecart, arrow, or experience orb), the command fails with the error message:
"Target entity is not a mob and cannot be tamed as a pet."
-
Immediate Taming:
- Bypasses health weakening requirements and failure chances.
- Bypasses the server
maxPetCountlimit, allowing operators to gift pets beyond standard survival limits.
-
Success Feedback:
- Sends a confirmation message to the command executor:
"Summoned
<Entity>as a pet for<Player>"
- Sends a confirmation message to the command executor:
- Spawn a tamed Wolf at your current position:
/summon pet @s minecraft:wolf - Spawn a tamed Iron Golem for a player named
Alexat specific coordinates:/summon pet Alex minecraft:iron_golem ~ ~ ~ - Spawn a tamed Creeper wearing a custom name tag:
/summon pet @s minecraft:creeper ~ ~ ~ {CustomName:'{"text":"Sparky"}'} - Spawn a tamed Warden with extra speed:
/summon pet @s minecraft:warden ~ ~ ~ {Attributes:[{Name:"minecraft:movement_speed",Base:0.4}]}
Related Pages: Taming · Configuration
Home · Configuration · FAQ · Report an issue · Source code