From d08e59713b805c96d695ed119a2df579760651c6 Mon Sep 17 00:00:00 2001 From: Blockception Bot Date: Sun, 4 Apr 2021 11:53:10 +0000 Subject: [PATCH] auto: Generated Json Schemas --- behavior/animation_controllers/animation_controller.json | 2 +- behavior/animations/animations.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/behavior/animation_controllers/animation_controller.json b/behavior/animation_controllers/animation_controller.json index 69d77700..f6f57009 100644 --- a/behavior/animation_controllers/animation_controller.json +++ b/behavior/animation_controllers/animation_controller.json @@ -1 +1 @@ -{"$schema":"http://json-schema.org/draft-07/schema","$id":"blockception.minecraft.behavior.animation_controller","examples":[{"format_version":"1.10.0","animation_controllers":{"controller.animation.example":{"initial_state":"default","states":{"default":{"transitions":[{"state_1":"query.is_baby"}]},"state_1":{}}}}}],"allOf":[{"if":{"properties":{"format_version":{"type":"string","const":"1.8.0"}}},"then":{"$ref":"#/definitions/A"}},{"if":{"properties":{"format_version":{"type":"string","const":"1.10.0"}}},"then":{"$ref":"#/definitions/C"}}],"definitions":{"A_animationspec":{"anyOf":[{"title":"Animation Specification","description":"A single string that specifies which animation there are","type":"string"},{"type":"object","title":"Animation Specification","description":"A object specification on how to transition","maxProperties":1,"minProperties":1,"additionalProperties":{"$ref":"#/definitions/B"}}]},"A_particle_effect_spec":{"additionalProperties":false,"type":"object","required":["effect"],"properties":{"bind_to_actor":{"type":"boolean","title":"Bind To Actor","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","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"},"pre_effect_script":{"type":"string","title":"Pre Effect Script","description":"A molang script that will be run when the particle emitter is initialized"}}},"A_commands":{"type":"string","description":"The event or commands to execute","oneOf":[{"pattern":"^@s .+$","title":"Event"},{"pattern":"^/.+$","title":"Command"},{"pattern":"^.+;$","title":"Molang"}]},"B":{"type":"string","title":"Molang / String ","description":"Molang definition","format":"molang"},"A":{"type":"object","title":"Animation Controller 1.8.0","description":"TODO description","required":["format_version","animation_controllers"],"additionalProperties":false,"properties":{"format_version":{"title":"1.8.0 Format Version","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","title":"Animation Controllers Schema","description":"The animation controllers schema for 1.8.0","propertyNames":{"pattern":"^controller\\.animation\\.[a-z\\.]+"},"additionalProperties":{"additionalProperties":false,"type":"object","title":"A Animation Controller","description":"A single animation controller 1.8.0","required":["states"],"minProperties":1,"properties":{"states":{"title":"States ","description":"The states of this animation controller","propertyNames":{"pattern":"[a-z\\.]+"},"minProperties":1,"additionalProperties":{"additionalProperties":false,"title":"Animation State","description":"Animation state","type":"object","properties":{"animations":{"title":"Animations ","description":"The animations definition for 1.8.0","type":"array","items":{"$ref":"#/definitions/A_animationspec","description":"TODO description: animations","title":"Animations"}},"on_entry":{"type":"array","description":"Events, commands or transitions to preform","items":{"$ref":"#/definitions/A_commands"}},"on_exit":{"type":"array","description":"Events, commands or transitions to preform","items":{"$ref":"#/definitions/A_commands"}},"transitions":{"title":"Transition ","description":"The transition definition for 1.8.0","minProperties":1,"type":"array","items":{"$ref":"#/definitions/A_animationspec","description":"TODO description: transitions","title":"Transitions"}}}}},"initial_state":{"type":"string","description":"TODO description: initial state","title":"Initial State"}}}}}},"C_animationspec":{"anyOf":[{"title":"Animation Specification","description":"A single string that specifies which animation there are","type":"string"},{"type":"object","title":"Animation Specification","description":"A object specification on how to transition","maxProperties":1,"minProperties":1,"additionalProperties":{"$ref":"#/definitions/B"}}]},"C_particle_effect_spec":{"additionalProperties":false,"type":"object","required":["effect"],"properties":{"bind_to_actor":{"type":"boolean","title":"Bind To Actor","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","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"},"pre_effect_script":{"type":"string","title":"Pre Effect Script","description":"A molang script that will be run when the particle emitter is initialized"}}},"C_commands":{"type":"string","description":"The event or commands to execute","examples":["@s example:event"],"oneOf":[{"pattern":"^@s .+$","title":"Event"},{"pattern":"^/.+$","title":"Command"},{"pattern":"^.+;$","title":"Molang"}]},"C":{"type":"object","title":"Animation Controller 1.10.0","description":"TODO description","required":["format_version","animation_controllers"],"additionalProperties":false,"properties":{"format_version":{"title":"1.10.0 Format Version","type":"string","pattern":"^1.10.0$","description":"A version that tells minecraft what type of data format can be expected when reading this file."},"animation_controllers":{"type":"object","title":"Animation Controllers","description":"The animation controllers schema for 1.10.0","propertyNames":{"pattern":"^controller\\.animation\\.[a-z\\.]+"},"additionalProperties":{"additionalProperties":false,"type":"object","title":"Animation Controller","description":"A single animation controller 1.10.0","required":["states"],"minProperties":1,"properties":{"states":{"title":"States ","description":"The states of this animation controller","propertyNames":{"pattern":"[a-z\\.]+"},"minProperties":1,"additionalProperties":{"additionalProperties":false,"title":"Animation State","description":"Animation state","type":"object","properties":{"animations":{"title":"Animations ","description":"The animations definition for 1.10.0","type":"array","items":{"$ref":"#/definitions/C_animationspec","description":"TODO description: animations","title":"Animations"}},"on_entry":{"type":"array","description":"Events, commands or transitions to preform on entry of this state","title":"On Entry","items":{"$ref":"#/definitions/C_commands"}},"on_exit":{"type":"array","description":"Events, commands or transitions to preform on exit of this state","title":"On Exit","items":{"$ref":"#/definitions/C_commands"}},"transitions":{"title":"Transition","description":"The transition definition for 1.10.0","minProperties":1,"type":"array","items":{"title":"Transitions","description":"A object specification on how to transition","type":"object","maxProperties":1,"minProperties":1,"additionalProperties":{"$ref":"#/definitions/B"}}}}}},"initial_state":{"type":"string","description":"TODO description: initial state","title":"Initial State"}}}}}}}} \ No newline at end of file +{"$schema":"http://json-schema.org/draft-07/schema","$id":"blockception.minecraft.behavior.animation_controller","examples":[{"format_version":"1.10.0","animation_controllers":{"controller.animation.example":{"initial_state":"default","states":{"default":{"transitions":[{"state_1":"query.is_baby"}]},"state_1":{}}}}}],"allOf":[{"if":{"properties":{"format_version":{"type":"string","const":"1.8.0"}}},"then":{"$ref":"#/definitions/A"}},{"if":{"properties":{"format_version":{"type":"string","const":"1.10.0"}}},"then":{"$ref":"#/definitions/C"}}],"definitions":{"A_animationspec":{"anyOf":[{"title":"Animation Specification","description":"A single string that specifies which animation there are","type":"string"},{"type":"object","title":"Animation Specification","description":"A object specification on how to transition","maxProperties":1,"minProperties":1,"additionalProperties":{"$ref":"#/definitions/B"}}]},"A_particle_effect_spec":{"additionalProperties":false,"type":"object","required":["effect"],"properties":{"bind_to_actor":{"type":"boolean","title":"Bind To Actor","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","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"},"pre_effect_script":{"type":"string","title":"Pre Effect Script","description":"A molang script that will be run when the particle emitter is initialized"}}},"A_commands":{"type":"string","description":"The event or commands to execute","oneOf":[{"pattern":"^@s .+$","title":"Event"},{"pattern":"^/.+$","title":"Command"},{"pattern":"^.+;$","title":"Molang"}]},"B":{"type":"string","title":"Molang / String ","description":"Molang definition","format":"molang"},"A":{"type":"object","title":"Animation Controller 1.8.0","description":"Animation controller for behaviors 1.8.0","required":["format_version","animation_controllers"],"additionalProperties":false,"properties":{"format_version":{"title":"1.8.0 Format Version","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","title":"Animation Controllers Schema","description":"The animation controllers schema for 1.8.0","propertyNames":{"pattern":"^controller\\.animation\\.[a-z\\.]+"},"additionalProperties":{"additionalProperties":false,"type":"object","title":"A Animation Controller","description":"A single animation controller 1.8.0","required":["states"],"minProperties":1,"properties":{"states":{"title":"States ","description":"The states of this animation controller","propertyNames":{"pattern":"[a-z\\.]+"},"minProperties":1,"additionalProperties":{"additionalProperties":false,"title":"Animation State","description":"Animation state","type":"object","properties":{"animations":{"title":"Animations ","description":"The animations definition for 1.8.0","type":"array","items":{"$ref":"#/definitions/A_animationspec","description":"TODO description: animations","title":"Animations"}},"on_entry":{"type":"array","description":"Events, commands or transitions to preform","items":{"$ref":"#/definitions/A_commands"}},"on_exit":{"type":"array","description":"Events, commands or transitions to preform","items":{"$ref":"#/definitions/A_commands"}},"transitions":{"title":"Transition ","description":"The transition definition for 1.8.0","minProperties":1,"type":"array","items":{"$ref":"#/definitions/A_animationspec","description":"TODO description: transitions","title":"Transitions"}}}}},"initial_state":{"type":"string","description":"The state to start with, if not specified state at position 0 in the array is used","title":"Initial State"}}}}}},"C_animationspec":{"anyOf":[{"title":"Animation Specification","description":"A single string that specifies which animation there are","type":"string"},{"type":"object","title":"Animation Specification","description":"A object specification on how to transition","maxProperties":1,"minProperties":1,"additionalProperties":{"$ref":"#/definitions/B"}}]},"C_particle_effect_spec":{"additionalProperties":false,"type":"object","required":["effect"],"properties":{"bind_to_actor":{"type":"boolean","title":"Bind To Actor","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","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"},"pre_effect_script":{"type":"string","title":"Pre Effect Script","description":"A molang script that will be run when the particle emitter is initialized"}}},"C_commands":{"type":"string","description":"The event or commands to execute","examples":["@s example:event"],"oneOf":[{"pattern":"^@s .+$","title":"Event"},{"pattern":"^/.+$","title":"Command"},{"pattern":"^.+;$","title":"Molang"}]},"C":{"type":"object","required":["format_version","animation_controllers"],"additionalProperties":false,"title":"Animation Controller 1.10.0","description":"TODO description","properties":{"format_version":{"title":"1.10.0 Format Version","type":"string","pattern":"^1.10.0$","description":"A version that tells minecraft what type of data format can be expected when reading this file."},"animation_controllers":{"type":"object","title":"Animation Controllers","description":"The animation controllers schema for 1.10.0","propertyNames":{"pattern":"^controller\\.animation\\.[a-z\\.]+"},"additionalProperties":{"additionalProperties":false,"type":"object","title":"Animation Controller","description":"A single animation controller 1.10.0","required":["states"],"minProperties":1,"properties":{"states":{"title":"States ","description":"The states of this animation controller","propertyNames":{"pattern":"[a-z\\.]+"},"minProperties":1,"additionalProperties":{"additionalProperties":false,"title":"Animation State","description":"Animation state","type":"object","properties":{"animations":{"title":"Animations ","description":"The animations definition for 1.10.0","type":"array","items":{"$ref":"#/definitions/C_animationspec","description":"TODO description: animations","title":"Animations"}},"on_entry":{"type":"array","description":"Events, commands or transitions to preform on entry of this state","title":"On Entry","items":{"$ref":"#/definitions/C_commands"}},"on_exit":{"type":"array","description":"Events, commands or transitions to preform on exit of this state","title":"On Exit","items":{"$ref":"#/definitions/C_commands"}},"transitions":{"title":"Transition","description":"The transition definition for 1.10.0","minProperties":1,"type":"array","items":{"title":"Transitions","description":"A object specification on how to transition","type":"object","maxProperties":1,"minProperties":1,"additionalProperties":{"$ref":"#/definitions/B"}}}}}},"initial_state":{"type":"string","description":"The state to start with, if not specified state at position 0 in the array is used","title":"Initial State"}}}}}}}} \ No newline at end of file diff --git a/behavior/animations/animations.json b/behavior/animations/animations.json index 58d45856..47becff1 100644 --- a/behavior/animations/animations.json +++ b/behavior/animations/animations.json @@ -1 +1 @@ -{"$schema":"http://json-schema.org/draft-07/schema","$id":"blockception.minecraft.behavior.animations","examples":[{"format_version":"1.10.0","animations":{"animation.example":{}}}],"allOf":[{"if":{"properties":{"format_version":{"type":"string","const":"1.8.0"}}},"then":{"$ref":"#/definitions/A"}},{"if":{"properties":{"format_version":{"type":"string","const":"1.10.0"}}},"then":{"$ref":"#/definitions/C"}}],"definitions":{"A_animationspec":{"anyOf":[{"title":"Animation Specification","description":"A single string that specifies which animation there are","type":"string"},{"type":"object","title":"Animation Specification","description":"A object specification on how to transition","maxProperties":1,"minProperties":1,"additionalProperties":{"$ref":"#/definitions/B"}}]},"A_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)."},"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"}}},"A_commands":{"type":"string","description":"The event or commands to execute"},"B":{"type":"string","title":"Molang / String ","description":"Molang definition","format":"molang"},"A":{"type":"object","title":"Animation 1.8.0","description":"TODO description","required":["format_version","animations"],"properties":{"format_version":{"title":"1.8.0 Format Version","type":"string","pattern":"^1.8.0$","description":"A version that tells minecraft what type of data format can be expected when reading this file."},"animations":{"title":"Animations Schema","description":"The animation 1.8.0 specification","type":"object","propertyNames":{"pattern":"^animation\\.[a-z\\.]+"},"additionalProperties":{"type":"object","additionalProperties":false,"description":"TODO description: additionalItems","title":"Animation ","properties":{"animation_length":{"type":"number","description":"TODO description: animation length","title":"Animation Length"},"loop":{"type":"boolean","description":"TODO description: loop","title":"Loop"},"timeline":{"title":"Timeline","description":"The time line","type":"object","propertyNames":{"pattern":"^(\\d+.\\d+|\\d+)$"},"additionalProperties":{"oneOf":[{"$ref":"#/definitions/A_commands"},{"type":"array","title":"Collection Timelime Items","items":{"$ref":"#/definitions/A_commands"}}]}}}}}},"additionalProperties":false},"C_animationspec":{"anyOf":[{"title":"Animation Specification","description":"A single string that specifies which animation there are","type":"string"},{"type":"object","title":"Animation Specification","description":"A object specification on how to transition","maxProperties":1,"minProperties":1,"additionalProperties":{"$ref":"#/definitions/B"}}]},"C_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)."},"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"}}},"C_commands":{"type":"string","description":"The event or commands to execute"},"C":{"type":"object","title":"Animation 1.10.0","description":"TODO description","required":["format_version","animations"],"properties":{"format_version":{"title":"1.10.0 Format Version","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":{"title":"Animations Schema","description":"The animation 1.10.0 specification","type":"object","propertyNames":{"pattern":"^animation\\.[a-z\\.]+"},"additionalProperties":{"type":"object","additionalProperties":false,"description":"TODO description: additionalItems","title":"Animation ","properties":{"animation_length":{"type":"number","description":"TODO description: animation length","title":"Animation Length"},"loop":{"type":"boolean","description":"TODO description: loop","title":"Loop"},"timeline":{"title":"Timeline","description":"The time line","type":"object","propertyNames":{"pattern":"^(\\d+.\\d+|\\d+)$"},"additionalProperties":{"oneOf":[{"type":"string","$ref":"#/definitions/C_commands"},{"type":"array","title":"Collection Timelime Items","items":{"$ref":"#/definitions/C_commands"}}]}}}}}},"additionalProperties":false}}} \ No newline at end of file +{"$schema":"http://json-schema.org/draft-07/schema","$id":"blockception.minecraft.behavior.animations","examples":[{"format_version":"1.10.0","animations":{"animation.example":{}}}],"allOf":[{"if":{"properties":{"format_version":{"type":"string","const":"1.8.0"}}},"then":{"$ref":"#/definitions/A"}},{"if":{"properties":{"format_version":{"type":"string","const":"1.10.0"}}},"then":{"$ref":"#/definitions/C"}}],"definitions":{"A_animationspec":{"anyOf":[{"title":"Animation Specification","description":"A single string that specifies which animation there are","type":"string"},{"type":"object","title":"Animation Specification","description":"A object specification on how to transition","maxProperties":1,"minProperties":1,"additionalProperties":{"$ref":"#/definitions/B"}}]},"A_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)."},"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"}}},"A_commands":{"type":"string","description":"The event or commands to execute"},"B":{"type":"string","title":"Molang / String ","description":"Molang definition","format":"molang"},"A":{"type":"object","title":"Animation 1.8.0","description":"Animation for behaviors 1.8.0","required":["format_version","animations"],"additionalProperties":false,"properties":{"format_version":{"title":"1.8.0 Format Version","type":"string","pattern":"^1.8.0$","description":"A version that tells minecraft what type of data format can be expected when reading this file."},"animations":{"title":"Animations Schema","description":"The animation 1.8.0 specification","type":"object","propertyNames":{"pattern":"^animation\\.[a-z\\.]+"},"additionalProperties":{"type":"object","additionalProperties":false,"description":"TODO description: additionalItems","title":"Animation ","properties":{"animation_length":{"type":"number","description":"TODO description: animation length","title":"Animation Length"},"loop":{"type":"boolean","description":"TODO description: loop","title":"Loop"},"timeline":{"title":"Timeline","description":"The time line","type":"object","propertyNames":{"pattern":"^(\\d+.\\d+|\\d+)$"},"additionalProperties":{"oneOf":[{"$ref":"#/definitions/A_commands"},{"type":"array","title":"Collection Timelime Items","items":{"$ref":"#/definitions/A_commands"}}]}}}}}}},"C_animationspec":{"anyOf":[{"title":"Animation Specification","description":"A single string that specifies which animation there are","type":"string"},{"type":"object","title":"Animation Specification","description":"A object specification on how to transition","maxProperties":1,"minProperties":1,"additionalProperties":{"$ref":"#/definitions/B"}}]},"C_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)."},"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"}}},"C_commands":{"type":"string","description":"The event or commands to execute"},"C":{"type":"object","title":"Animation 1.10.0","description":"TODO description","required":["format_version","animations"],"properties":{"format_version":{"title":"1.10.0 Format Version","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":{"title":"Animations Schema","description":"The animation 1.10.0 specification","type":"object","propertyNames":{"pattern":"^animation\\.[a-z\\.]+"},"additionalProperties":{"type":"object","additionalProperties":false,"description":"TODO description: additionalItems","title":"Animation ","properties":{"animation_length":{"type":"number","description":"TODO description: animation length","title":"Animation Length"},"loop":{"type":"boolean","description":"TODO description: loop","title":"Loop"},"timeline":{"title":"Timeline","description":"The time line","type":"object","propertyNames":{"pattern":"^(\\d+.\\d+|\\d+)$"},"additionalProperties":{"oneOf":[{"type":"string","$ref":"#/definitions/C_commands"},{"type":"array","title":"Collection Timelime Items","items":{"$ref":"#/definitions/C_commands"}}]}}}}}},"additionalProperties":false}}} \ No newline at end of file