From 8258cb11ab4ecf69149c079402e1d7bd859abea7 Mon Sep 17 00:00:00 2001 From: DaanV2 Date: Tue, 7 Jun 2022 21:34:23 +0200 Subject: [PATCH] Updated format_version in examples --- .../animation_controller.json | 2 +- source/behavior/animations/animations.json | 2 +- source/behavior/biomes/biomes.json | 2 +- source/behavior/blocks/blocks.json | 28 ++++++++----------- 4 files changed, 14 insertions(+), 20 deletions(-) diff --git a/source/behavior/animation_controllers/animation_controller.json b/source/behavior/animation_controllers/animation_controller.json index ec4b2607..e7e800e5 100644 --- a/source/behavior/animation_controllers/animation_controller.json +++ b/source/behavior/animation_controllers/animation_controller.json @@ -3,7 +3,7 @@ "$id": "blockception.minecraft.behavior.animation_controller", "examples": [ { - "format_version": "1.17.0", + "format_version": "1.19.0", "animation_controllers": { "controller.animation.example": { "initial_state": "default", diff --git a/source/behavior/animations/animations.json b/source/behavior/animations/animations.json index 65635a0d..d20d6755 100644 --- a/source/behavior/animations/animations.json +++ b/source/behavior/animations/animations.json @@ -1,7 +1,7 @@ { "$schema": "http://json-schema.org/draft-07/schema", "$id": "blockception.minecraft.behavior.animations", - "examples": [{ "format_version": "1.18.0", "animations": { "animation.example": {} } }], + "examples": [{ "format_version": "1.19.0", "animations": { "animation.example": {} } }], "definitions": { "animationspec": { "anyOf": [ diff --git a/source/behavior/biomes/biomes.json b/source/behavior/biomes/biomes.json index cce8f07a..147e2649 100644 --- a/source/behavior/biomes/biomes.json +++ b/source/behavior/biomes/biomes.json @@ -2,7 +2,7 @@ "$schema": "http://json-schema.org/draft-07/schema", "$id": "minecraft.behavior.biomes", "type": "object", - "examples": [{ "plains": { "format_version": "1.17.0" } }], + "examples": [{ "plains": { "format_version": "1.19.0" } }], "additionalProperties": { "type": "object", "title": "Biomes", diff --git a/source/behavior/blocks/blocks.json b/source/behavior/blocks/blocks.json index ba4b2590..ea447a1b 100644 --- a/source/behavior/blocks/blocks.json +++ b/source/behavior/blocks/blocks.json @@ -1,20 +1,14 @@ { "$schema": "http://json-schema.org/draft-07/schema", - "$id": "blockception.minecraft.behavior.blocks", - "examples": [ - { - "format_version": "1.16.200", - "minecraft:block": { "description": { "identifier": "namespace:block", "properties": {} }, "components": {}, "events": {} } - } - ], - "allOf": [ - { "if": { "properties": { "format_version": { "type": "string", "const": "1.10" } } }, "then": { "$ref": "./1.10.0/blocks.json" } }, - { "if": { "properties": { "format_version": { "type": "string", "const": "1.10.0" } } }, "then": { "$ref": "./1.10.0/blocks.json" } }, - { "if": { "properties": { "format_version": { "type": "string", "const": "1.12.0" } } }, "then": { "$ref": "./1.12.0/blocks.json" } }, - { "if": { "properties": { "format_version": { "type": "string", "const": "1.16.0" } } }, "then": { "$ref": "./1.16.0/blocks.json" } }, - { "if": { "properties": { "format_version": { "type": "string", "const": "1.16.100" } } }, "then": { "$ref": "./1.16.100/blocks.json" } }, - { "if": { "properties": { "format_version": { "type": "string", "const": "1.16.200" } } }, "then": { "$ref": "./1.16.200/blocks.json" } }, - { "if": { "properties": { "format_version": { "type": "string", "const": "1.17.0" } } }, "then": { "$ref": "./1.17.0/blocks.json" } }, - { "properties": { "format_version": { "$ref": "../../general/format_version.json" } } } - ] + "$id": "blockception.minecraft.behavior.block", + "$comment": "UNDOCUMENTED", + "required": ["format_version", "minecraft:block"], + "type": "object", + "title": "Block Behavior", + "description": "The minecraft block behavior specification", + "additionalProperties": false, + "properties": { + "format_version": { "$ref": "../../general/format_version.json" }, + "minecraft:block": { "$ref": "./format/minecraft.block.json" } + } }