Skip to content

Instantly share code, notes, and snippets.

@falseresync
Last active December 4, 2020 15:15
Show Gist options
  • Save falseresync/bf4ee691ccde7dbafbb11bec568050f6 to your computer and use it in GitHub Desktop.
Save falseresync/bf4ee691ccde7dbafbb11bec568050f6 to your computer and use it in GitHub Desktop.
Universal modpack format by false :)
{
"formatVersion": "1.0.0-alpha.1",
"id": "lambdabettergrass",
"meta": {
"name": "LambdaBetterGrass",
"latest": "1.0.1",
"authors": [
{
"name": "LambdAurora",
// any URL, ideally points to the author profile on the dependency source platform
"link": "https://example-gui.com/user/LambdAurora"
}
]
},
// Same as modpacks
"versions": [
{
"version": "1.0.1",
// Unix timestamp for non-semver versions
"timestamp": "1607020005",
// dependency.packbrew.json
"source": "https://example-api.com/mod/lambdabettergrass/1.0.1?format=packbrew"
}
]
}
{
"formatVersion": "1.0.0-alpha.1",
"id": "lambdabettergrass",
"meta": {
"name": "LambdaBetterGrass",
"version": "1.0.1",
"authors": [
{
"name": "LambdAurora",
// any URL, ideally points to the author profile on the dependency source platform
"link": "https://example-gui.com/user/LambdAurora"
}
],
// dependency.manifesto.packbrew.json
"source": "https://example-api.com/mod/lambdabettergrass?format=packbrew"
},
"files": [
{
"primary": true,
"filename": "mods/lambdabettergrass-1.0.1.jar",
"download": "https://example-cdn.com/mod/lambdabettergrass/1.0.1/lambdabettergrass-1.0.1.jar",
"hash": {
"sha1": "<hash>"
}
}
],
// Different from modpack
"components": {
"fabric": {
"loaderVersion": ">=0.7.0"
},
"minecraft": "1.16.x"
},
// Similar to modpack
"dependencies": [
{
"id": "fabric-api",
"meta": {
"name": "Fabric API",
"version": "*",
"authors": [
{
"name": "Fabric Team",
"link": "https://example-gui.com/team/FabricTeam"
}
],
"source": "https://example-api.com/mod/fabric-api?format=packbrew"
}
}
]
}
{
"formatVersion": "1.0.0-alpha.1",
"meta": {
"name": "Example Modpack",
"latest": "1.0.0",
"authors": [
{
"name": "falseresync"
}
]
},
"versions": [
{
"version": "1.0.0",
// Unix timestamp for non-semver versions
"timestamp": "1607020005",
// modpack.packbrew.json
"source": "https://example-api.com/modpack/example-modpack/1.0.0?format=packbrew"
},
{
"version": "1.0.0-beta.1",
"timestamp": "1606520071",
"source": "https://example-api.com/modpack/example-modpack/1.0.0-beta.1?format=packbrew"
}
]
}
{
"formatVersion": "1.0.0-alpha.1",
"id": "example-modpack",
"meta": {
"name": "Example Modpack",
"version": "1.0.0",
"authors": [
{
"name": "falseresync"
}
],
// modpack.manifesto.packbrew.json
"source": "https://example-api.com/modpack/example-modpack?format=packbrew"
},
// Format-defined requirements
"components": [
{
"id": "forge",
"version": "35.1.0",
// Conditions in Minecraft model "when" block format
"conditions": [
{
"platform": "curseforge"
}
]
},
{
"id": "fabric",
// Meta fields are component-specific
"loaderVersion": "0.10.8",
"intermediaryVersion": "1.16.4",
"conditions": [
{
"NOT": {
"platform": "curseforge"
}
}
]
},
{
"id": "minecraft",
"version": "1.16.4"
}
],
// User-defined requirements
"dependencies": [
{
"id": "lambdabettergrass",
// Same as in fabric.mod.json
"environment": "client",
"meta": {
"name": "LambdaBetterGrass",
"version": "1.0.1",
"authors": [
{
"name": "LambdAurora",
// any URL, ideally points to the author profile on the dependency source platform
"link": "https://example-gui.com/user/LambdAurora"
}
],
"source": "https://example-api.com/mod/lambdabettergrass?format=packbrew"
},
"files": [
{
"filename": "mods/lambdabettergrass-1.0.1.jar",
"download": "https://example-cdn.com/mod/lambdabettergrass/1.0.1/lambdabettergrass-1.0.1.jar",
"hash": {
"sha1": "<hash>"
}
}
],
"requirements": {
"components": {
"fabric": {
"loaderVersion": ">=0.7.0"
},
"minecraft": "1.16.x"
},
"dependencies": {
"fabric-api": ">=0.18.0"
}
}
},
{
"id": "fabric-api",
"meta": {
"name": "Fabric API",
"version": "0.27.1+1.16",
"authors": [
{
"name": "FabricMC",
"link": "https://github.com/FabricMC"
}
],
// Format for non-compliant sources
"nonCompliantSource": true,
"source": {
"type": "github",
// Source-specific fields
"repo": "FabricMC/fabric",
"release": "0.27.1+1.16"
}
},
"files": [
{
"filename": "mods/fabric-api-0.27.1+1.16.jar",
"download": "https://github.com/FabricMC/fabric/releases/download/0.27.1+1.16/fabric-api-0.27.1+1.16.jar",
"hash": {
"sha1": "<hash>"
}
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment