Files
minecraft-bedrock-json-schemas/source/behavior/animation_controllers/1.8.0/animation_controller.json

154 lines
5.3 KiB
JSON
Raw Normal View History

2020-11-01 17:22:42 +01:00
{
"$schema": "http://json-schema.org/draft-07/schema",
2021-04-04 13:52:35 +02:00
"$id": "blockception.minecraft.behavior.animation_controller.1.8.0",
2020-11-01 17:22:42 +01:00
"definitions": {
"animationspec": {
"anyOf": [
{
"title": "Animation Specification",
"description": "A single string that specifies which animation there are",
"type": "string"
},
{
"type": "object",
"title": "Animation Specification",
2021-04-04 14:00:43 +02:00
"description": "A object specification on when to animate",
2020-11-01 17:22:42 +01:00
"maxProperties": 1,
"minProperties": 1,
"additionalProperties": {
"$ref": "../../../molang/1.8.0/string.json"
}
}
]
},
"particle_effect_spec": {
"additionalProperties": false,
"type": "object",
"required": ["effect"],
"properties": {
"bind_to_actor": {
"type": "boolean",
2021-03-21 15:18:38 +01:00
"title": "Bind To Actor",
2020-11-01 17:22:42 +01:00
"description": "Set to false to have the effect spawned in the world without being bound to an actor (by default an effect is bound to the actor)."
},
"effect": {
"type": "string",
"title": "Effect",
2020-11-01 17:22:42 +01:00
"description": "The name of a particle effect that should be played"
},
"locator": {
"type": "string",
"title": "Locator",
2020-11-01 17:22:42 +01:00
"description": "The name of a locator on the actor where the effect should be located"
},
"pre_effect_script": {
"type": "string",
2021-03-21 15:18:38 +01:00
"title": "Pre Effect Script",
2020-11-01 17:22:42 +01:00
"description": "A molang script that will be run when the particle emitter is initialized"
}
}
},
"commands": {
"type": "string",
"description": "The event or commands to execute",
"oneOf": [
2021-04-04 13:52:35 +02:00
{ "pattern": "^@s .+$", "title": "Event" },
{ "pattern": "^/.+$", "title": "Command" },
{ "pattern": "^.+;$", "title": "Molang" }
]
2020-11-01 17:22:42 +01:00
}
},
2021-04-04 13:52:35 +02:00
"type": "object",
"title": "Animation Controller 1.8.0",
"description": "Animation controller for behaviors 1.8.0",
2020-11-01 17:22:42 +01:00
"required": ["format_version", "animation_controllers"],
"additionalProperties": false,
"properties": {
"format_version": {
2021-03-21 15:18:38 +01:00
"title": "1.8.0 Format Version",
2020-11-01 17:22:42 +01:00
"type": "string",
"pattern": "^1.8.0$",
"description": "A version that tells minecraft what type of data format can be expected when reading this file."
},
"animation_controllers": {
"type": "object",
2021-03-21 15:18:38 +01:00
"title": "Animation Controllers Schema",
2020-11-01 17:22:42 +01:00
"description": "The animation controllers schema for 1.8.0",
"propertyNames": {
"pattern": "^controller\\.animation\\.[a-z\\.]+"
},
"additionalProperties": {
"additionalProperties": false,
"type": "object",
2021-03-21 15:18:38 +01:00
"title": "A Animation Controller",
2020-11-01 17:22:42 +01:00
"description": "A single animation controller 1.8.0",
"required": ["states"],
"minProperties": 1,
"properties": {
"states": {
2021-04-04 14:00:43 +02:00
"title": "States",
2020-11-01 17:22:42 +01:00
"description": "The states of this animation controller",
2021-04-04 14:00:43 +02:00
"propertyNames": { "pattern": "[a-z\\.]+" },
2020-11-01 17:22:42 +01:00
"minProperties": 1,
"additionalProperties": {
"additionalProperties": false,
2021-03-21 15:18:38 +01:00
"title": "Animation State",
2020-11-01 17:22:42 +01:00
"description": "Animation state",
"type": "object",
"properties": {
"animations": {
2021-04-04 14:00:43 +02:00
"title": "Animations",
2020-11-01 17:22:42 +01:00
"description": "The animations definition for 1.8.0",
"type": "array",
"items": {
"$ref": "#/definitions/animationspec",
2021-04-04 14:00:43 +02:00
"description": "The animation key to play, defined in the entity",
"title": "Animation"
2020-11-01 17:22:42 +01:00
}
},
"on_entry": {
"type": "array",
"description": "Events, commands or transitions to preform",
"items": {
"$ref": "#/definitions/commands"
}
},
"on_exit": {
"type": "array",
"description": "Events, commands or transitions to preform",
"items": {
"$ref": "#/definitions/commands"
}
},
"transitions": {
2021-04-04 14:00:43 +02:00
"title": "Transition",
2020-11-01 17:22:42 +01:00
"description": "The transition definition for 1.8.0",
"minProperties": 1,
"type": "array",
"items": {
2021-04-04 14:00:43 +02:00
"title": "Transition",
"description": "A transition to another state",
"type": "object",
2021-04-11 13:08:43 +02:00
"examples": [{ "default": "query.is_chested" }],
2021-04-04 14:00:43 +02:00
"additionalProperties": {
"$ref": "../../../molang/1.8.0/string.json"
},
"minProperties": 1,
"maxProperties": 1
2020-11-01 17:22:42 +01:00
}
}
}
}
},
"initial_state": {
2021-04-04 14:00:43 +02:00
"title": "Initial State",
2021-04-04 13:52:35 +02:00
"description": "The state to start with, if not specified state at position 0 in the array is used",
2021-04-04 14:00:43 +02:00
"type": "string",
2021-04-11 13:08:43 +02:00
"examples": ["default"]
2020-11-01 17:22:42 +01:00
}
}
}
}
}
}