/serverpack
< Commands
This feature is exclusive to Java Edition.
This feature is intended for debugging purposes only, and should not be used during normal play. It might cause crashes and corrupt world saves.
/serverpack| Permission level required |
2 |
|---|---|
| Restrictions |
|
{
"title": "<code>/serverpack</code>",
"rows": [
{
"field": "2",
"label": "(link to Permission level article, displayed as Permission level<br>required)"
},
{
"field": "<code>-DMC_DEBUG_DEV_COMMANDS</code> (link to debug property article, displayed as debug property)",
"label": "(link to Commands#Restrictions article, displayed as Restrictions)"
}
],
"invimages": [],
"images": []
}
/serverpack is a command that can be enabled with the debug property -DMC_DEBUG_DEV_COMMANDS. It can install and remove server resource packs.
Syntax
serverpack push <url> [<uuid>] [<hash>]
- Installs the resource pack found at the specified URL on the server. An optional UUID and the file's SHA1 hash can also be specified for the server to be able to verify the integrity of the pack, like the
resource-pack-idandresource-pack-sha1server properties.
serverpack pop <uuid>
- Removes the resource pack with the specified UUID from the server.
Arguments
<url>: string
- Specifies the URL to download a resource pack from.
- Must be a string.
<uuid>: uuid
- For
serverpack push, specifies an optional UUID for the resource pack to be installed. Forserverpack pop, specifies the UUID of the resource pack to remove. - Must be a UUID in the hyphenated hexadecimal format. Allowed characters include:
-,A-F,a-f, and0-9.
<hash>: string
- Specifies the SHA1 hash of the resource pack to be installed.
- Must be a string. And it must be in a single word (Allowed characters include:
-,+,.,_,A-Z,a-z, and0-9).
Result
| Command | Trigger | Java Edition |
|---|---|---|
| Any | The command is incomplete, or any argument is not specified correctly. | Unparseable |
| Otherwise | Successful |
Output
| Command | Edition | Situation | Success Count | /execute store success ... | /execute store result ... |
|---|---|---|---|---|---|
| Any | Java Edition | On success | 1 | 1 | 0 |
History
| Java Edition | |||||||
|---|---|---|---|---|---|---|---|
| 1.21.9 | Pre-Release 1 | Added debug property -DMC_DEBUG_DEV_COMMANDS, making the command accessible in the vanilla game. | |||||