2021-06-06 10:07:19 +00:00
|
|
|
{
|
2021-11-20 11:26:35 +01:00
|
|
|
"$schema": "http://json-schema.org/draft-07/schema",
|
2021-06-06 10:07:19 +00:00
|
|
|
"$id": "blockception.minecraft.manifest",
|
|
|
|
|
"type": "object",
|
|
|
|
|
"title": "Manifest Schema",
|
2022-07-22 19:41:04 +02:00
|
|
|
"description": "The minecraft manifest schema.",
|
2021-06-06 10:07:19 +00:00
|
|
|
"required": ["format_version", "header"],
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"format_version": 2,
|
2023-07-15 16:39:46 +02:00
|
|
|
"header": { "description": "pack.description", "name": "pack.name", "uuid": "UUID2", "min_engine_version": [1, 20, 10], "version": [1, 0, 0] },
|
2021-06-06 10:07:19 +00:00
|
|
|
"modules": [{ "type": "data", "uuid": "UUID2", "version": [1, 0, 0] }]
|
|
|
|
|
}
|
|
|
|
|
],
|
2021-11-05 11:18:28 +01:00
|
|
|
"defaultSnippets": [
|
|
|
|
|
{
|
|
|
|
|
"label": "New Manifest",
|
|
|
|
|
"body": {
|
|
|
|
|
"format_version": 2,
|
2023-07-15 16:39:46 +02:00
|
|
|
"header": { "description": "pack.description", "name": "pack.name", "uuid": "$UUID", "min_engine_version": [1, 20, 10], "version": [1, 0, 0] },
|
2021-11-05 11:18:28 +01:00
|
|
|
"modules": [{ "type": "data", "uuid": "$UUID", "version": [1, 0, 0] }]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
2021-06-06 10:07:19 +00:00
|
|
|
"allOf": [
|
|
|
|
|
{
|
|
|
|
|
"if": { "properties": { "format_version": { "const": 1, "type": "number", "title": "Format Version" } } },
|
|
|
|
|
"then": { "$ref": "./manifest/manifest.1.json" }
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"if": { "properties": { "format_version": { "const": 2, "type": "number", "title": "Format Version" } } },
|
|
|
|
|
"then": { "$ref": "./manifest/manifest.2.json" }
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|