Updated animations with descriptions
This commit is contained in:
@@ -1,10 +1,6 @@
|
|||||||
{
|
{
|
||||||
"$schema": "http://json-schema.org/draft-07/schema",
|
"$schema": "http://json-schema.org/draft-07/schema",
|
||||||
"$id": "blockception.minecraft.behavior.1.10.0.animations",
|
"$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": {
|
"definitions": {
|
||||||
"animationspec": {
|
"animationspec": {
|
||||||
"anyOf": [
|
"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": {
|
"properties": {
|
||||||
"format_version": {
|
"format_version": {
|
||||||
"title": "1.10.0 Format Version",
|
"title": "1.10.0 Format Version",
|
||||||
@@ -62,6 +63,7 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"description": "A single animation definition for 1.10.0",
|
"description": "A single animation definition for 1.10.0",
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
|
"propertyNames": { "examples": ["animation.example.foo"] },
|
||||||
"properties": {
|
"properties": {
|
||||||
"animation_length": { "type": "number", "description": "The time in seconds this animation will last", "title": "Animation Length" },
|
"animation_length": { "type": "number", "description": "The time in seconds this animation will last", "title": "Animation Length" },
|
||||||
"loop": {
|
"loop": {
|
||||||
@@ -73,7 +75,7 @@
|
|||||||
"title": "Timeline",
|
"title": "Timeline",
|
||||||
"description": "A timeline specification, property names are timestamps",
|
"description": "A timeline specification, property names are timestamps",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"propertyNames": { "pattern": "^(\\d+.\\d+|\\d+)$" },
|
"propertyNames": { "pattern": "^(\\d+.\\d+|\\d+)$", "examples": ["0.0", "1.0"] },
|
||||||
"additionalProperties": {
|
"additionalProperties": {
|
||||||
"oneOf": [
|
"oneOf": [
|
||||||
{ "type": "string", "$ref": "#/definitions/commands" },
|
{ "type": "string", "$ref": "#/definitions/commands" },
|
||||||
@@ -84,6 +86,5 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
"additionalProperties": false
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -54,23 +54,28 @@
|
|||||||
"description": "A version that tells minecraft what type of data format can be expected when reading this file."
|
"description": "A version that tells minecraft what type of data format can be expected when reading this file."
|
||||||
},
|
},
|
||||||
"animations": {
|
"animations": {
|
||||||
"title": "Animations Schema",
|
"title": "Animations",
|
||||||
"description": "The animation 1.8.0 specification",
|
"description": "The animation 1.8.0 specification",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"propertyNames": { "pattern": "^animation\\.[a-z\\.]+" },
|
"propertyNames": { "pattern": "^animation\\.[a-z\\.]+" },
|
||||||
"additionalProperties": {
|
"additionalProperties": {
|
||||||
"type": "object",
|
|
||||||
"additionalProperties": false,
|
|
||||||
"description": "TODO description: additionalItems",
|
|
||||||
"title": "Animation",
|
"title": "Animation",
|
||||||
|
"type": "object",
|
||||||
|
"description": "A single animation definition for 1.8.0",
|
||||||
|
"additionalProperties": false,
|
||||||
|
"propertyNames": { "examples": ["animation.example.foo"] },
|
||||||
"properties": {
|
"properties": {
|
||||||
"animation_length": { "type": "number", "description": "TODO description: animation length", "title": "Animation Length" },
|
"animation_length": { "type": "number", "description": "The time in seconds this animation will last", "title": "Animation Length" },
|
||||||
"loop": { "type": "boolean", "description": "TODO description: loop", "title": "Loop" },
|
"loop": {
|
||||||
|
"type": "boolean",
|
||||||
|
"description": "Wheter or not to loop this animation",
|
||||||
|
"title": "Loop"
|
||||||
|
},
|
||||||
"timeline": {
|
"timeline": {
|
||||||
"title": "Timeline",
|
"title": "Timeline",
|
||||||
"description": "The time line",
|
"description": "A timeline specification, property names are timestamps",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"propertyNames": { "pattern": "^(\\d+.\\d+|\\d+)$" },
|
"propertyNames": { "pattern": "^(\\d+.\\d+|\\d+)$", "examples": ["0.0", "1.0"] },
|
||||||
"additionalProperties": {
|
"additionalProperties": {
|
||||||
"oneOf": [{ "$ref": "#/definitions/commands" }, { "type": "array", "title": "Collection Timelime Items", "items": { "$ref": "#/definitions/commands" } }]
|
"oneOf": [{ "$ref": "#/definitions/commands" }, { "type": "array", "title": "Collection Timelime Items", "items": { "$ref": "#/definitions/commands" } }]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user