2020-11-01 17:22:42 +01:00
{
"$id" : "blockception.minecraft.resource.animation_controller1.8.0" ,
"type" : "object" ,
2021-03-21 15:18:38 +01:00
"title" : "Resourcepack Animation Controller 1.8.0" ,
2020-11-01 17:22:42 +01:00
"description" : "TODO description" ,
"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-05-10 20:26:09 +02:00
"additionalProperties" : {
"oneOf" : [
2021-06-05 21:54:49 +02:00
{ "type" : "string" , "$ref" : "../../../molang/string.json" } ,
2021-05-10 20:26:09 +02:00
{ "type" : "number" , "description" : "A blend weight" }
]
}
2020-11-01 17:22:42 +01:00
}
]
} ,
"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" ,
2021-04-23 16:31:34 +02: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)." ,
"const" : false
2020-11-01 17:22:42 +01:00
} ,
2021-03-21 15:18:38 +01:00
"effect" : { "type" : "string" , "title" : "Effect" , "description" : "The name of a particle effect that should be played" } ,
"locator" : { "type" : "string" , "title" : "Locator" , "description" : "The name of a locator on the actor where the effect should be located" } ,
2020-11-01 17:22:42 +01:00
"pre_effect_script" : {
"type" : "string" ,
2021-03-21 15:18:38 +01:00
"title" : "Pre Effect Script" ,
2021-02-10 02:02:46 +01:00
"description" : "A molang script that will be run when the particle emitter is initialized" ,
"pattern" : "^.+;$"
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" , "pattern" : "^(@s .+|/.+)$" }
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" ,
2021-05-18 23:32:44 +02:00
"propertyNames" : {
"pattern" : "^controller\\.animation\\.[a-z\\.]+" ,
"examples" : [ "controller.animation.example" , "controller.animation.example.foo" ]
} ,
2020-11-01 17:22:42 +01:00
"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-03-21 15:18:38 +01: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.10.0" ,
"type" : "array" ,
2021-05-10 20:26:09 +02:00
"items" : { "$ref" : "#/definitions/animationspec" , "title" : "Animations" }
2020-11-01 17:22:42 +01:00
} ,
"blend_transition" : {
"title" : "Blend Transition" ,
"oneOf" : [
2021-05-18 23:32:44 +02:00
{
"type" : "number" ,
"description" : "A short-hand version of blend_out that simply sets the amount of time to fade out if the animation is interrupted"
} ,
2020-11-01 17:22:42 +01:00
{
"type" : "object" ,
"description" : "Specifies the cross-fade time in seconds when transitioning to another state" ,
"additionalProperties" : {
"type" : "number" ,
"description" : "Mapping of time since the animation was canceled, to the blend value at that time. A default key of time=0 to a blend value of 1.0 is provided if any other key is set and a blend value at time=0 hasn't already been set."
}
}
]
} ,
"blend_via_shortest_path" : {
"description" : "When blending a transition to another state, animate each euler axis through the shortest rotation, instead of by value" ,
"type" : "boolean" ,
"title" : "Blend Via Shortest Path"
} ,
"particle_effects" : {
"description" : "The effects to be emitted" ,
"type" : "array" ,
2021-05-18 23:32:44 +02:00
"items" : {
"$ref" : "#/definitions/particle_effect_spec" ,
"description" : "TODO description: particle effects" ,
"title" : "Particle Effects"
} ,
2020-11-01 17:22:42 +01:00
"title" : "Particle Effects"
} ,
"sound_effects" : {
"type" : "array" ,
"description" : "Collection of sounds to trigger on entry to this animation state." ,
"items" : {
"type" : "object" ,
"additionalProperties" : false ,
"required" : [ "effect" ] ,
2021-05-18 23:32:44 +02:00
"properties" : {
"effect" : {
"description" : "Valid sound effect names should be listed in the entity's resource_definition json file." ,
"type" : "string"
}
}
2020-11-01 17:22:42 +01:00
}
} ,
"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" ,
2021-05-18 23:32:44 +02:00
"items" : {
"$ref" : "#/definitions/animationspec" ,
"description" : "The specification on when to transition to a new state" ,
"title" : "Transitions"
}
2020-11-01 17:22:42 +01:00
} ,
"variables" : {
"type" : "object" ,
"additionalProperties" : {
"additionalProperties" : false ,
"type" : "object" ,
"required" : [ "input" ] ,
2021-05-18 23:32:44 +02:00
"properties" : {
2021-06-05 21:54:49 +02:00
"input" : { "$ref" : "../../../molang/number.json" } ,
2021-05-18 23:32:44 +02:00
"remap_curve" : { "additionalProperties" : { "type" : "number" } }
}
2020-11-01 17:22:42 +01:00
}
2021-02-10 02:02:46 +01:00
} ,
"on_entry" : {
"title" : "On Entry" ,
"description" : "UNDOCUMENTATED" ,
"type" : "array" ,
"items" : { "pattern" : "^.+;$" , "title" : "Molang" , "description" : "UNDOCUMENTATED" , "type" : "string" }
} ,
"on_exit" : {
"title" : "On Exit" ,
"description" : "UNDOCUMENTATED" ,
"type" : "array" ,
"items" : { "pattern" : "^.+;$" , "title" : "Molang" , "description" : "UNDOCUMENTATED" , "type" : "string" }
2020-11-01 17:22:42 +01:00
}
}
}
} ,
2021-03-21 15:18:38 +01:00
"initial_state" : { "type" : "string" , "description" : "TODO description: initial state" , "title" : "Initial State" }
2020-11-01 17:22:42 +01:00
}
}
}
}
}