Skip to content

How to set up a resource pack

AdamCalculator edited this page Mar 25, 2024 · 3 revisions

How does the DynamicPack mod is work

Hello! The Dynamicpack mod adds the technical ability to auto-update resource packs, but the pack must be configured accordingly so that the mod understands where the latest version is located on the Internet

In order for the mod to understand that the pack is supported, there must be a special json file inside it called dynamicmcpack.json

Pack located in Modrinth

If your package is in the Modrinth service, you need the resource pack to have a file dynamicmcpack.json with the following contents

⚠️ The json specification does not support //comments!

⚠️ Before save, validate json here

{
    "formatVersion": 1, // do not touch this number

    // the mod stores here information about the current state of the downloaded pack,
    // so to prevent the mod from updating the pack one more time,
    // you can immediately provide the mod with the value of its current version
    "current": {
      // use the one that is convenient for you (version_number or version)
      "version_number": "v1.5.2",
      "version": "C3g8SK9O"
    },

    // this is where information about the remote location is stored
    "remote": {
      // game version to find on Modrinth
      // use "current" for current launched MC version
      // use "no_specify" if it doesn't matter
      "game_version": "1.20.1",


      "modrinth_project_id": "bettertables", // enter modrinth project id
      "type": "modrinth" // mandatory
    }
}

A valid file looks something like this

{
    "formatVersion": 1,
    "current": {
      "version_number": "v1.5.2",
      "version": "C3g8SK9O"
    },
    "remote": {
      "game_version": "1.20.1",
      "modrinth_project_id": "bettertables",
      "type": "modrinth"
    }
}

version_number and version located here image

Addition

To do this, it is not at all necessary that the version with the dynamicmcpack.json file be uploaded to Modrinth, you can take absolutely any resource pack, and by adding and configuring this file locally, it will be updated inside it (though only for you)

Dynamic loading of content from GitHub pages

If you want the pack to be updated by downloading only the missing files, and not the entire .zip archive, see the wiki about dynamic repositories