-
Notifications
You must be signed in to change notification settings - Fork 5
Additional Keys
fileName
specifies a custom file name for Curse mods just like for raw downloads.
Example:
{
"addonId": 123456,
"fileId": 654321,
"fileName": "custom_name.jar"
}
folder
specifies the modpack subfolder the file gets downloaded to. Defaults to mods
if unspecified. Included in the original mod, but undocumented.
Example:
{
"url": "https://my-mod-script.com/download/script.zs",
"folder": "scripts"
}
extract
specifies if the downloaded file should be extracted after the download process. No additional subfolders get created, it works the same way as the ‚Extract Here‘ option in common archiving software. Defaults to false
if unspecified.
Example:
{
"url": "https://my-mod-archive.com/download/archive.zip",
"installationPolicy":
{
"extract": true
}
}
downloadAlways
specifies if the file should be re-downloaded even if it exists locally. Only takes effect if no hash values are supplied. Defaults to false
if unspecified.
Example:
{
"url": "https://my-mod.com/download/mod.jar",
"installationPolicy":
{
"downloadAlways": true
}
}
supersede
specifies an existing file which gets superseded by the new file. In terms of mod updates, this would be the file name of the old mod.
{
"addonId": 637540,
"fileId": 4398759,
"fileName": "DramaticTrees-1.12.2-0.13.2.jar",
"installationPolicy":
{
"supersede": "DramaticTrees-1.12.2-0.13.1.jar"
}
}
DramaticTrees-1.12.2-0.13.2.jar
supersedes DramaticTrees-1.12.2-0.13.1.jar
. The superseded file gets disabled by adding .disabled-by-mod-director
to the file name.