2020-11-01 17:22:42 +01:00
|
|
|
{
|
|
|
|
|
"$schema": "http://json-schema.org/draft-07/schema",
|
|
|
|
|
"$id": "blockception.minecraft.manifest",
|
|
|
|
|
"type": "object",
|
|
|
|
|
"title": "The minecraft manifest schema",
|
|
|
|
|
"description": "The minecraft manifest schema",
|
|
|
|
|
"required": ["format_version", "header"],
|
2020-11-17 09:56:41 +01:00
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"format_version": 2,
|
|
|
|
|
"header": {
|
|
|
|
|
"description": "pack.description",
|
|
|
|
|
"name": "pack.name",
|
|
|
|
|
"uuid": "UUID2",
|
|
|
|
|
"min_engine_version": [1, 16, 0],
|
|
|
|
|
"version": [1, 0, 0]
|
|
|
|
|
},
|
|
|
|
|
"modules": [
|
|
|
|
|
{
|
|
|
|
|
"type": "data",
|
|
|
|
|
"uuid": "UUID2",
|
|
|
|
|
"version": [1, 0, 0]
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
],
|
2020-11-01 17:22:42 +01:00
|
|
|
"allOf": [
|
|
|
|
|
{
|
|
|
|
|
"if": {
|
|
|
|
|
"properties": {
|
|
|
|
|
"format_version": {
|
|
|
|
|
"const": 1,
|
|
|
|
|
"type": "number",
|
|
|
|
|
"title": "Format Version"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"then": {
|
2020-12-12 00:09:25 +01:00
|
|
|
"$ref": "./manifest/manifest.1.json"
|
2020-11-01 17:22:42 +01:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"if": {
|
|
|
|
|
"properties": {
|
|
|
|
|
"format_version": {
|
|
|
|
|
"const": 2,
|
|
|
|
|
"type": "number",
|
|
|
|
|
"title": "Format Version"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"then": {
|
2020-12-12 00:09:25 +01:00
|
|
|
"$ref": "./manifest/manifest.2.json"
|
2020-11-01 17:22:42 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|