From e0b9bbd0ee1a084c09435d48e425c4968aeeabfc Mon Sep 17 00:00:00 2001 From: DaanV2 Date: Sat, 18 Feb 2023 20:20:16 +0100 Subject: [PATCH] Fixed format_version --- source/resource/blocks.json | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/source/resource/blocks.json b/source/resource/blocks.json index 77178f99..3aabb8f3 100644 --- a/source/resource/blocks.json +++ b/source/resource/blocks.json @@ -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,