From c11e21ae3e00d0a5f2dbf13bf6835c4bccf84ae9 Mon Sep 17 00:00:00 2001 From: DaanV2 Date: Fri, 23 Apr 2021 23:45:14 +0200 Subject: [PATCH] Updated animations with descriptions --- .../animations/1.10.0/animations.json | 15 ++++++------- .../behavior/animations/1.8.0/animations.json | 21 ++++++++++++------- 2 files changed, 21 insertions(+), 15 deletions(-) diff --git a/source/behavior/animations/1.10.0/animations.json b/source/behavior/animations/1.10.0/animations.json index 6b6b4ec9..92d93f69 100644 --- a/source/behavior/animations/1.10.0/animations.json +++ b/source/behavior/animations/1.10.0/animations.json @@ -1,10 +1,6 @@ { "$schema": "http://json-schema.org/draft-07/schema", "$id": "blockception.minecraft.behavior.1.10.0.animations", - "type": "object", - "title": "Animation 1.10.0", - "description": "Animation for behavior for 1.10.0", - "required": ["format_version", "animations"], "definitions": { "animationspec": { "anyOf": [ @@ -45,6 +41,11 @@ ] } }, + "type": "object", + "title": "Animation 1.10.0", + "description": "Animation for behavior for 1.10.0", + "required": ["format_version", "animations"], + "additionalProperties": false, "properties": { "format_version": { "title": "1.10.0 Format Version", @@ -62,6 +63,7 @@ "type": "object", "description": "A single animation definition for 1.10.0", "additionalProperties": false, + "propertyNames": { "examples": ["animation.example.foo"] }, "properties": { "animation_length": { "type": "number", "description": "The time in seconds this animation will last", "title": "Animation Length" }, "loop": { @@ -73,7 +75,7 @@ "title": "Timeline", "description": "A timeline specification, property names are timestamps", "type": "object", - "propertyNames": { "pattern": "^(\\d+.\\d+|\\d+)$" }, + "propertyNames": { "pattern": "^(\\d+.\\d+|\\d+)$", "examples": ["0.0", "1.0"] }, "additionalProperties": { "oneOf": [ { "type": "string", "$ref": "#/definitions/commands" }, @@ -84,6 +86,5 @@ } } } - }, - "additionalProperties": false + } } diff --git a/source/behavior/animations/1.8.0/animations.json b/source/behavior/animations/1.8.0/animations.json index e6cbc8f4..5e5ef9c3 100644 --- a/source/behavior/animations/1.8.0/animations.json +++ b/source/behavior/animations/1.8.0/animations.json @@ -54,23 +54,28 @@ "description": "A version that tells minecraft what type of data format can be expected when reading this file." }, "animations": { - "title": "Animations Schema", + "title": "Animations", "description": "The animation 1.8.0 specification", "type": "object", "propertyNames": { "pattern": "^animation\\.[a-z\\.]+" }, "additionalProperties": { - "type": "object", - "additionalProperties": false, - "description": "TODO description: additionalItems", "title": "Animation", + "type": "object", + "description": "A single animation definition for 1.8.0", + "additionalProperties": false, + "propertyNames": { "examples": ["animation.example.foo"] }, "properties": { - "animation_length": { "type": "number", "description": "TODO description: animation length", "title": "Animation Length" }, - "loop": { "type": "boolean", "description": "TODO description: loop", "title": "Loop" }, + "animation_length": { "type": "number", "description": "The time in seconds this animation will last", "title": "Animation Length" }, + "loop": { + "type": "boolean", + "description": "Wheter or not to loop this animation", + "title": "Loop" + }, "timeline": { "title": "Timeline", - "description": "The time line", + "description": "A timeline specification, property names are timestamps", "type": "object", - "propertyNames": { "pattern": "^(\\d+.\\d+|\\d+)$" }, + "propertyNames": { "pattern": "^(\\d+.\\d+|\\d+)$", "examples": ["0.0", "1.0"] }, "additionalProperties": { "oneOf": [{ "$ref": "#/definitions/commands" }, { "type": "array", "title": "Collection Timelime Items", "items": { "$ref": "#/definitions/commands" } }] }