Fixed format_version

This commit is contained in:
DaanV2
2023-02-18 20:20:16 +01:00
parent e6608c5ed2
commit e0b9bbd0ee

View File

@@ -26,7 +26,30 @@
},
"propertyNames": { "pattern": "^[\\w_\\-:\\.]+$" },
"properties": {
"format_version": { "$ref": "../general/format_version.json" }
"format_version": {
"oneOf": [
{ "$ref": "../general/format_version.json" },
{
"title": "Format Version",
"description": "A version that tells Minecraft what type of data format can be expected when reading this file.",
"type": "array",
"default": [1, 1, 0],
"examples": [[1, 1, 0]],
"items": {
"type": "integer"
},
"minItems": 3,
"maxItems": 3,
"uniqueItems": false,
"defaultSnippets": [
{
"label": "New Format version",
"body": [1, 1, 0]
}
]
}
]
}
},
"additionalProperties": {
"additionalProperties": false,