Skip to content

schema_client_fullinfo

AdamCalculator edited this page Mar 20, 2024 · 5 revisions

Full keys in dynamicmcpack.json (client-side file)

{
  "formatVersion": 1, // Currently is one.

  // (required) Current block. Contains metadata about current state of downloaded pack. Mod overwrite this after update
  "current": {
    // (long) Only for remote.type=="dynamic_repo"
    // see dynamic-repo documentation
    // (required if remote type is dynamic_repo)
    "build": 0,


    // (jsonobject) Only for remote.type=="dynamic_repo"
    // see dynamic-repo documentation
    // (mod manage automatically, currently using only in logs... if remote type is dynamic_repo)
    // this overwrite on every update
    "known_contents": {
        "id_of_content": {
          "hash": "sha1hash here",
          "required": true // if key missing, required=false
        }
    },

    // (str) Only for remote.type=="modrinth".
    // for understands modrinth api: see this: https://api.modrinth.com/v2/project/default-dark-mode/version
    // contains modrinth version id. This field automatically overwrite after pack updated.
    "version": "p2fuqvAG",

    // (str) Only for remote.type=="modrinth".
    // This field is initial, since modrinth does not provide an ID to the project before
    // loading the resource pack file, and it cannot be replaced.
    // You need to fill out this field, and when uploading to modrinth
    // you need to enter the SAME version number there
    // Mod remove this field after auto-update (updated version will uses current.version key.) 
    "version_number": "1.8-fix1"  // (str)

    // for remote.type is "modrinth" required one of key: "version_number" or "version"
  },
  

  // (required) Linked with remote...
  "remote": {
    // (required) (str) Available:
    // * modrinth - uses Modrinth api (v2) for updates
    // * dynamic_repo - uses dynamic repos (download only missing files instead of redownload all pack.zip)
    //     for this check wiki...
    "type": "modrinth",



    // --- SPECIFY FOR remote.type == "modrinth" SPECIFY FOR ---

    // (str) mod will downloads latest pack version with this game version
    // "current" value for mod uses launched minecraft version automatically
    // if key missing, game_version = "current"
    "game_version": "1.20.1",

    
    // (str) (required) project id in modrinth
    "modrinth_project_id": "better-leaves",
    



     // --- SPECIFY FOR remote.type == "dynamic_repo" SPECIFY FOR ---
     // see separate wiki about this...

     // (required for dynamic_repo)
     // (str) url of dynamic pack repo
     // (SECURITY WARNING): Trusted hosts is limited.
     // List: modrinth.com, githubusercontent.com, github.io, github.com
     // in code contains here: https://github.com/AdamCalculator/DynamicPack/blob/7d62c20ef4c6a4056a288de782f3ecfebddb556c/src/main/java/com/adamcalculator/dynamicpack/Mod.java#L18
     "url": "https://raw.githubusercontent.com/AdamCalculator/dynamicpackexample/main"

     // (optional) Public key for verifying dynamic-repo update-uploader
     "public_key": "BASE64_RSA_4094_PUBLIC_KEY_FOR_SIGNING_HERE",
  
     // (optional) No verify update-uploader
     // ATTENTION: If the developer of a resource pack is hacked, then without verification he will be able to download his resource pack to you, with any content! (uncensored for example)
     "sign_no_required": true,

     // required one of: sign_no_required is true OR valid public_key (see verifying dynamic-repo in wiki!)

     "content_override": {
        "content_id_here": false // all packs true by default (if key missing here)
     }
  },
  
}
Clone this wiki locally