Updated animations with descriptions

This commit is contained in:
DaanV2
2021-04-23 23:45:14 +02:00
parent f68a2ded32
commit c11e21ae3e
2 changed files with 21 additions and 15 deletions

View File

@@ -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
}
}

View File

@@ -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" } }]
}