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.1.10.0.animations" ,
2020-11-01 17:22:42 +01:00
"type" : "object" ,
2021-03-21 15:18:38 +01:00
"title" : "Animation 1.10.0" ,
2021-04-04 14:00:43 +02:00
"description" : "Animation for behavior for 1.10.0" ,
2020-11-01 17:22:42 +01:00
"required" : [ "format_version" , "animations" ] ,
"definitions" : {
"animationspec" : {
"anyOf" : [
2021-03-21 15:18:38 +01:00
{ "title" : "Animation Specification" , "description" : "A single string that specifies which animation there are" , "type" : "string" } ,
2020-11-01 17:22:42 +01:00
{
"type" : "object" ,
"title" : "Animation Specification" ,
"description" : "A object specification on how to transition" ,
"maxProperties" : 1 ,
"minProperties" : 1 ,
2021-03-21 15:18:38 +01:00
"additionalProperties" : { "$ref" : "../../../molang/1.8.0/string.json" }
2020-11-01 17:22:42 +01:00
}
]
} ,
"particle_effect_spec" : {
"additionalProperties" : false ,
"type" : "object" ,
"required" : [ "effect" ] ,
"properties" : {
"bind_to_actor" : {
"type" : "boolean" ,
"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)."
} ,
2021-03-21 15:18:38 +01:00
"effect" : { "type" : "string" , "description" : "The name of a particle effect that should be played" } ,
"locator" : { "type" : "string" , "description" : "The name of a locator on the actor where the effect should be located" } ,
"pre_effect_script" : { "type" : "string" , "description" : "A molang script that will be run when the particle emitter is initialized" }
2020-11-01 17:22:42 +01:00
}
} ,
2021-03-21 15:18:38 +01:00
"commands" : { "type" : "string" , "description" : "The event or commands to execute" }
2020-11-01 17:22:42 +01:00
} ,
"properties" : {
"format_version" : {
2021-03-21 15:18:38 +01:00
"title" : "1.10.0 Format Version" ,
2020-11-01 17:22:42 +01:00
"type" : "string" ,
"pattern" : "^1.10.0$" ,
"description" : "A version that tells minecraft what type of data format can be expected when reading this file."
} ,
"animations" : {
2021-03-21 15:18:38 +01:00
"title" : "Animations Schema" ,
2020-11-01 17:22:42 +01:00
"description" : "The animation 1.10.0 specification" ,
"type" : "object" ,
2021-03-21 15:18:38 +01:00
"propertyNames" : { "pattern" : "^animation\\.[a-z\\.]+" } ,
2020-11-01 17:22:42 +01:00
"additionalProperties" : {
2021-04-04 14:00:43 +02:00
"title" : "Animation" ,
2020-11-01 17:22:42 +01:00
"type" : "object" ,
2021-04-04 14:00:43 +02:00
"description" : "A single animation definition for 1.10.0" ,
"additionalProperties" : false ,
2020-11-01 17:22:42 +01:00
"properties" : {
2021-04-04 14:00:43 +02:00
"animation_length" : { "type" : "number" , "description" : "The time in seconds this animation will last" , "title" : "Animation Length" } ,
"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" } ,
2020-11-01 17:22:42 +01:00
"timeline" : {
"title" : "Timeline" ,
2021-04-04 14:00:43 +02:00
"description" : "A timeline specification, property names are timestamps" ,
2020-11-01 17:22:42 +01:00
"type" : "object" ,
2021-03-21 15:18:38 +01:00
"propertyNames" : { "pattern" : "^(\\d+.\\d+|\\d+)$" } ,
2020-11-01 17:22:42 +01:00
"additionalProperties" : {
"oneOf" : [
2021-02-10 02:02:46 +01:00
{ "type" : "string" , "$ref" : "#/definitions/commands" } ,
2021-03-21 15:18:38 +01:00
{ "type" : "array" , "title" : "Collection Timelime Items" , "items" : { "$ref" : "#/definitions/commands" } }
2020-11-01 17:22:42 +01:00
]
}
}
}
}
}
} ,
"additionalProperties" : false
}