Set a server resource pack on Minecraft Java

Point resource-pack at a ZIP URL, add its SHA-1, and optionally force it with require-resource-pack. The properties, the size limit, and what changed.

Omne Team4 min read

Quick answer On a Java Edition server, set resource-pack in server.properties to the URL of your pack’s ZIP file. Optionally add resource-pack-sha1 (the pack’s SHA-1 in lowercase hex, per the wiki) so the download can be verified, and set require-resource-pack=true if players who decline should be disconnected [1][2]. The pack may not be larger than 250 MiB [1].

The properties

All of these live in server.properties (the file itself is covered in server.properties, explained). Everything below is from the Minecraft Wiki’s server.properties page [1] unless marked otherwise.

resource-pack=https://example.com/packs/my-pack.zip
resource-pack-sha1=<40-character lowercase hex SHA-1 of that exact file>
require-resource-pack=true
resource-pack-prompt=
  • resource-pack (string, default blank): “The resource pack download URL. The player may choose to download the resource pack when joining.” The Resource pack page describes it as an HTTP(S) URL pointing to a ZIP archive [2].
  • resource-pack-sha1 (string, default blank): an optional SHA-1 digest of the pack, in lowercase hexadecimal. The wiki says: “It is recommended to specify this, because it is used to verify the integrity of the resource pack.”
  • require-resource-pack (boolean, default false): whether players are disconnected if they decline to use the pack.
  • resource-pack-prompt (string, default blank): a custom message shown on the pack prompt when require-resource-pack is used. It expects chat component syntax, can contain multiple lines, and can be left empty for a default message.
  • resource-pack-id (UUID, default blank): an optional UUID that identifies the pack with clients.

The <...> value above is a placeholder, not a real hash. Do not leave it in the file.

What players see

Per the wiki, players can choose whether to download the pack when they join [2]. With require-resource-pack=true, rejecting the pack disconnects the player from the server [2]. The wiki describes resource-pack-prompt as the custom message on that prompt [1]. I did not verify the exact prompt layout in a client, and it may differ between game versions.

Compute the SHA-1

The wiki describes the value as a SHA-1 digest of the resource pack, in lowercase hexadecimal [1]. Hash the same ZIP you host. Run one of these on the file:

sha1sum my-pack.zip
Get-FileHash my-pack.zip -Algorithm SHA1
certutil -hashfile my-pack.zip SHA1
  • GNU Coreutils documents sha1sum as computing a 160-bit checksum for each specified file [3].
  • Microsoft documents SHA1 as an accepted -Algorithm value for Get-FileHash, whose default is SHA256, so you must pass it explicitly [4]. Its own examples print hashes in uppercase, so lowercase the result before pasting it [4][1].
  • certutil -hashfile InFile [HashAlgorithm] is the documented syntax, and the page’s own list of hash algorithms includes SHA1 [5].

The wiki notes that if the pack differs from the hash, a yellow message “Invalid sha1 for resource-pack-sha1” appears in the server console at startup [1]. It also says download success or failure is logged by the client, not the server [1]. I have not confirmed on a live server what happens when the hash is missing.

Version differences

The wiki records these version points for the properties above [1]:

Property or limit Change
Size limit Raised from 50 to 100 MiB in 1.15 Pre-Release 5, then to 250 MiB in 1.18 Release Candidate 1
require-resource-pack Added in 1.17 snapshot 20w45a
resource-pack-prompt Added in 1.17 snapshot 21w15a
resource-pack-id Added in 1.20.3 Pre-Release 1

If your server predates the version that added a property, that property does not exist there, so check the wiki history for your version.

Changing the pack later

Edit the URL (and the SHA-1 if you set one), and keep the SHA-1 matching the file you host, since it is used to verify the pack’s integrity [1]. server.properties is normally read at startup, so restart after editing (my advice, not from the sources).

What this doesn’t cover

  • Hosting. The wiki says only that the value is an HTTP(S) URL to a ZIP [2]. It does not say where to host the file, whether players need to reach it directly, or whether the server serves it. Test the URL from a machine outside your network. The same hosting options available for the server (self-host, VPS, or managed) usually work for the pack file too.
  • Cache behavior. I found no documentation on whether clients re-download a changed pack based on its hash or resource-pack-id, so this post makes no claim either way.
  • Plugins and proxies. Paper, Velocity, and other software may add their own resource pack handling. This covers the vanilla properties only.
  • Bedrock Edition is a different system and is not covered.

Facts here were read from the sources above in September 2026. The Minecraft Wiki changes, so check the live page for your version.

Questions people ask

What happens if a player declines the pack?

By default they can still play. The wiki says players choose whether to download the pack when joining [2]. If you set require-resource-pack=true, declining disconnects them [1][2].

Do I have to set resource-pack-sha1?

No, it is optional, but the wiki recommends it because it is used to verify the integrity of the pack [1].

How big can the pack be?

The wiki says the pack may not be larger than 250 MiB. The wiki's history says the limit was raised to 250 MiB in Java Edition 1.18 Release Candidate 1 (it was 100 MiB after 1.15 Pre-Release 5) [1].

Sources

  1. Server.properties (Minecraft Wiki)
  2. Resource pack (Minecraft Wiki)
  3. sha1sum: Print or check SHA-1 digests (GNU Coreutils manual)
  4. Get-FileHash (Microsoft Learn)
  5. certutil (Microsoft Learn)