This commit is contained in:
DaanV2
2021-04-04 14:00:43 +02:00
parent d08e59713b
commit 7cafb5cfc6
26 changed files with 65 additions and 60 deletions

View File

@@ -64,7 +64,7 @@
"required": ["format_version", "animation_controllers"], "required": ["format_version", "animation_controllers"],
"additionalProperties": false, "additionalProperties": false,
"title": "Animation Controller 1.10.0", "title": "Animation Controller 1.10.0",
"description": "TODO description", "description": "Animation controller for minecraft behavior 1.10.0",
"properties": { "properties": {
"format_version": { "format_version": {
"title": "1.10.0 Format Version", "title": "1.10.0 Format Version",
@@ -106,7 +106,7 @@
"type": "array", "type": "array",
"items": { "items": {
"$ref": "#/definitions/animationspec", "$ref": "#/definitions/animationspec",
"description": "TODO description: animations", "description": "The key definition of an animation to play, defined in the entity",
"title": "Animations" "title": "Animations"
} }
}, },

View File

@@ -12,7 +12,7 @@
{ {
"type": "object", "type": "object",
"title": "Animation Specification", "title": "Animation Specification",
"description": "A object specification on how to transition", "description": "A object specification on when to animate",
"maxProperties": 1, "maxProperties": 1,
"minProperties": 1, "minProperties": 1,
"additionalProperties": { "additionalProperties": {
@@ -88,9 +88,7 @@
"states": { "states": {
"title": "States", "title": "States",
"description": "The states of this animation controller", "description": "The states of this animation controller",
"propertyNames": { "propertyNames": { "pattern": "[a-z\\.]+" },
"pattern": "[a-z\\.]+"
},
"minProperties": 1, "minProperties": 1,
"additionalProperties": { "additionalProperties": {
"additionalProperties": false, "additionalProperties": false,
@@ -104,8 +102,8 @@
"type": "array", "type": "array",
"items": { "items": {
"$ref": "#/definitions/animationspec", "$ref": "#/definitions/animationspec",
"description": "TODO description: animations", "description": "The animation key to play, defined in the entity",
"title": "Animations" "title": "Animation"
} }
}, },
"on_entry": { "on_entry": {
@@ -128,18 +126,25 @@
"minProperties": 1, "minProperties": 1,
"type": "array", "type": "array",
"items": { "items": {
"$ref": "#/definitions/animationspec", "title": "Transition",
"description": "TODO description: transitions", "description": "A transition to another state",
"title": "Transitions" "type": "object",
"examples": [ { "default": "query.is_chested" }],
"additionalProperties": {
"$ref": "../../../molang/1.8.0/string.json"
},
"minProperties": 1,
"maxProperties": 1
} }
} }
} }
} }
}, },
"initial_state": { "initial_state": {
"type": "string", "title": "Initial State",
"description": "The state to start with, if not specified state at position 0 in the array is used", "description": "The state to start with, if not specified state at position 0 in the array is used",
"title": "Initial State" "type": "string",
"examples": ["default"]
} }
} }
} }

View File

@@ -3,7 +3,7 @@
"$id": "blockception.minecraft.behavior.1.10.0.animations", "$id": "blockception.minecraft.behavior.1.10.0.animations",
"type": "object", "type": "object",
"title": "Animation 1.10.0", "title": "Animation 1.10.0",
"description": "TODO description", "description": "Animation for behavior for 1.10.0",
"required": ["format_version", "animations"], "required": ["format_version", "animations"],
"definitions": { "definitions": {
"animationspec": { "animationspec": {
@@ -48,16 +48,16 @@
"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.10.0",
"additionalProperties": false,
"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": "Whenever this animation should loop once it reaches the end, will only happen if the animation is still active", "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+)$" },
"additionalProperties": { "additionalProperties": {