# How to Add a Resource Pack to Your Minecraft Server (/docs/minecraft/resource-packs)



A server resource pack lets you apply custom textures, sounds, and models to every player who joins. When configured, players are prompted to download the pack automatically.

Adding a Resource Pack [#adding-a-resource-pack]

<div className="fd-steps">
  <div className="fd-step">
    Host your resource pack [#1-host-your-resource-pack]

    Upload your resource pack `.zip` file to a direct-download file host. The URL **must** be a direct download link — the server needs to fetch the raw file.

    > 💡 **Tip:** For Dropbox, change `?dl=0` at the end of the URL to `?dl=1` to get a direct download link. For Google Drive, use a direct link generator.
  </div>

  <div className="fd-step">
    Open the server properties [#2-open-the-server-properties]

    Access the [XGamingServer panel](https://panel.xgamingserver.com), go to `Files`, and open `server.properties`.
  </div>

  <div className="fd-step">
    Set the resource pack URL [#3-set-the-resource-pack-url]

    Find the `resource-pack` field and paste your direct download URL:

    ```
    resource-pack=https://example.com/your-pack.zip
    ```
  </div>

  <div className="fd-step">
    Set the SHA-1 hash (recommended) [#4-set-the-sha-1-hash-recommended]

    Generate the SHA-1 hash of your `.zip` file and add it to `resource-pack-sha1`. This ensures players download the correct file and enables caching.

    ```
    resource-pack-sha1=your_sha1_hash_here
    ```

    > 📝 **Note:** You can generate a SHA-1 hash at sha1-online.com or by running `sha1sum yourpack.zip` on Linux/Mac.
  </div>

  <div className="fd-step">
    Require the resource pack (optional) [#5-require-the-resource-pack-optional]

    To force players to use the pack (they'll be disconnected if they decline), set:

    ```
    require-resource-pack=true
    ```
  </div>

  <div className="fd-step">
    Restart your server [#6-restart-your-server]

    Restart the server for changes to take effect. Players will be prompted to download the pack when they join.

    > ⚠️ **Warning:** If the download URL is incorrect or not a direct link, players will see an error and the pack won't load. Always test the URL in a browser first.
  </div>
</div>

Resource Pack Settings Reference [#resource-pack-settings-reference]

| Setting                 | Description                             |
| ----------------------- | --------------------------------------- |
| `resource-pack`         | Direct download URL to the .zip file    |
| `resource-pack-sha1`    | SHA-1 hash for verification and caching |
| `require-resource-pack` | Force players to accept (true/false)    |
| `resource-pack-prompt`  | Custom message shown to players (1.17+) |

If you need help, join our [Discord](https://discord.xgamingserver.com/).
