This commit is contained in:
DaanV2
2021-03-21 15:18:38 +01:00
parent d3298267bc
commit 698ee42623
960 changed files with 5960 additions and 22946 deletions

View File

@@ -2,25 +2,19 @@
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "blockception.minecraft.resource.animation_controller1.10.0",
"type": "object",
"title": "The minecraft resourcepack animation controller 1.10.0",
"title": "Resourcepack Animation Controller 1.10.0",
"description": "TODO description",
"definitions": {
"animationspec": {
"anyOf": [
{
"title": "Animation Specification",
"description": "A single string that specifies which animation there are",
"type": "string"
},
{ "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": "../../../molang/1.8.0/string.json"
}
"additionalProperties": { "$ref": "../../../molang/1.8.0/string.json" }
}
]
},
@@ -31,53 +25,39 @@
"properties": {
"bind_to_actor": {
"type": "boolean",
"title": "Bind to actor",
"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"
},
"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",
"title": "Pre Effect Script",
"description": "A molang script that will be run when the particle emitter is initialized",
"pattern": "^.+;$"
}
}
},
"commands": {
"type": "string",
"description": "The event or commands to execute",
"pattern": "^(@s .+|/.+)$"
}
"commands": { "type": "string", "description": "The event or commands to execute", "pattern": "^(@s .+|/.+)$" }
},
"required": ["format_version", "animation_controllers"],
"additionalProperties": false,
"properties": {
"format_version": {
"title": "The 1.10.0 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": "The animation controllers schema",
"title": "Animation Controllers Schema",
"description": "The animation controllers schema for 1.10.0",
"propertyNames": {
"pattern": "^controller\\.animation\\.[a-z\\.]+"
},
"propertyNames": { "pattern": "^controller\\.animation\\.[a-z\\.]+" },
"additionalProperties": {
"additionalProperties": false,
"type": "object",
"title": "A animation controller",
"title": "A Animation Controller",
"description": "A single animation controller 1.10.0",
"required": ["states"],
"minProperties": 1,
@@ -86,47 +66,35 @@
"controller.animation.some_name": {
"initial_state": "default",
"states": {
"default": {
"transitions": [{ "state_1": "query.is_baby" }]
},
"state_1": {
"animations": ["state_1"],
"transitions": [{ "default": "query.all_animations_finished" }]
}
"default": { "transitions": [{ "state_1": "query.is_baby" }] },
"state_1": { "animations": ["state_1"], "transitions": [{ "default": "query.all_animations_finished" }] }
}
}
}
],
"properties": {
"states": {
"title": "The states definition",
"title": "States ",
"description": "The states of this animation controller",
"propertyNames": { "pattern": "[a-z\\.]+", "examples": ["default"] },
"minProperties": 1,
"additionalProperties": {
"additionalProperties": false,
"title": "Animation state",
"title": "Animation State",
"description": "Animation state",
"type": "object",
"properties": {
"animations": {
"title": "Animations definition",
"title": "Animations ",
"description": "The animations definition for 1.10.0",
"type": "array",
"items": {
"$ref": "#/definitions/animationspec",
"description": "TODO description: animations",
"title": "Animations"
}
"items": { "$ref": "#/definitions/animationspec", "description": "TODO description: animations", "title": "Animations" }
},
"blend_transition": {
"title": "Blend Transition",
"description": "when transitioning away from this state, cross-fade over",
"oneOf": [
{
"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"
},
{ "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" },
{
"type": "object",
"description": "Specifies the cross-fade time in seconds when transitioning to another state",
@@ -145,11 +113,7 @@
"particle_effects": {
"description": "The effects to be emitted",
"type": "array",
"items": {
"$ref": "#/definitions/particle_effect_spec",
"description": "TODO description: particle effects",
"title": "Particle Effects"
},
"items": { "$ref": "#/definitions/particle_effect_spec", "description": "TODO description: particle effects", "title": "Particle Effects" },
"title": "Particle Effects"
},
"sound_effects": {
@@ -159,16 +123,11 @@
"type": "object",
"additionalProperties": false,
"required": ["effect"],
"properties": {
"effect": {
"description": "Valid sound effect names should be listed in the entity's resource_definition json file.",
"type": "string"
}
}
"properties": { "effect": { "description": "Valid sound effect names should be listed in the entity's resource_definition json file.", "type": "string" } }
}
},
"transitions": {
"title": "Transition definition",
"title": "Transition ",
"description": "The transition definition for 1.10.0",
"minProperties": 1,
"type": "array",
@@ -187,17 +146,10 @@
"type": "object",
"required": ["input"],
"properties": {
"input": {
"title": "Input",
"description": "",
"$ref": "../../../molang/1.8.0/number.json"
},
"input": { "title": "Input", "description": "", "$ref": "../../../molang/1.8.0/number.json" },
"remap_curve": {
"title": "Remap curve",
"additionalProperties": {
"propertyNames": { "pattern": "^([\\-\\+0-9]+|[\\-\\+0-9]+.[0-9]+)$" },
"type": "number"
}
"title": "Remap Curve",
"additionalProperties": { "propertyNames": { "pattern": "^([\\-\\+0-9]+|[\\-\\+0-9]+.[0-9]+)$" }, "type": "number" }
}
}
}
@@ -217,11 +169,7 @@
}
}
},
"initial_state": {
"type": "string",
"description": "TODO description: initial state",
"title": "Initial State"
}
"initial_state": { "type": "string", "description": "TODO description: initial state", "title": "Initial State" }
}
}
}

View File

@@ -2,25 +2,19 @@
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "blockception.minecraft.resource.animation_controller1.8.0",
"type": "object",
"title": "The minecraft resourcepack animation controller 1.8.0",
"title": "Resourcepack Animation Controller 1.8.0",
"description": "TODO description",
"definitions": {
"animationspec": {
"anyOf": [
{
"title": "Animation Specification",
"description": "A single string that specifies which animation there are",
"type": "string"
},
{ "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": "../../../molang/1.8.0/string.json"
}
"additionalProperties": { "$ref": "../../../molang/1.8.0/string.json" }
}
]
},
@@ -31,87 +25,64 @@
"properties": {
"bind_to_actor": {
"type": "boolean",
"title": "Bind to actor",
"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"
},
"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",
"title": "Pre Effect Script",
"description": "A molang script that will be run when the particle emitter is initialized",
"pattern": "^.+;$"
}
}
},
"commands": {
"type": "string",
"description": "The event or commands to execute",
"pattern": "^(@s .+|/.+)$"
}
"commands": { "type": "string", "description": "The event or commands to execute", "pattern": "^(@s .+|/.+)$" }
},
"required": ["format_version", "animation_controllers"],
"additionalProperties": false,
"properties": {
"format_version": {
"title": "The 1.8.0 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": "The animation controllers schema",
"title": "Animation Controllers Schema",
"description": "The animation controllers schema for 1.8.0",
"propertyNames": {
"pattern": "^controller\\.animation\\.[a-z\\.]+"
},
"propertyNames": { "pattern": "^controller\\.animation\\.[a-z\\.]+" },
"additionalProperties": {
"additionalProperties": false,
"type": "object",
"title": "A animation controller",
"title": "A Animation Controller",
"description": "A single animation controller 1.8.0",
"required": ["states"],
"minProperties": 1,
"properties": {
"states": {
"title": "The states definition",
"title": "States ",
"description": "The states of this animation controller",
"propertyNames": {
"pattern": "[a-z\\.]+"
},
"propertyNames": { "pattern": "[a-z\\.]+" },
"minProperties": 1,
"additionalProperties": {
"additionalProperties": false,
"title": "Animation state",
"title": "Animation State",
"description": "Animation state",
"type": "object",
"properties": {
"animations": {
"title": "Animations definition",
"title": "Animations ",
"description": "The animations definition for 1.10.0",
"type": "array",
"items": {
"$ref": "#/definitions/animationspec",
"description": "TODO description: animations",
"title": "Animations"
}
"items": { "$ref": "#/definitions/animationspec", "description": "TODO description: animations", "title": "Animations" }
},
"blend_transition": {
"title": "Blend Transition",
"oneOf": [
{
"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"
},
{ "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" },
{
"type": "object",
"description": "Specifies the cross-fade time in seconds when transitioning to another state",
@@ -130,11 +101,7 @@
"particle_effects": {
"description": "The effects to be emitted",
"type": "array",
"items": {
"$ref": "#/definitions/particle_effect_spec",
"description": "TODO description: particle effects",
"title": "Particle Effects"
},
"items": { "$ref": "#/definitions/particle_effect_spec", "description": "TODO description: particle effects", "title": "Particle Effects" },
"title": "Particle Effects"
},
"sound_effects": {
@@ -144,24 +111,15 @@
"type": "object",
"additionalProperties": false,
"required": ["effect"],
"properties": {
"effect": {
"description": "Valid sound effect names should be listed in the entity's resource_definition json file.",
"type": "string"
}
}
"properties": { "effect": { "description": "Valid sound effect names should be listed in the entity's resource_definition json file.", "type": "string" } }
}
},
"transitions": {
"title": "Transition definition",
"title": "Transition ",
"description": "The transition definition for 1.8.0",
"minProperties": 1,
"type": "array",
"items": {
"$ref": "#/definitions/animationspec",
"description": "TODO description: transitions",
"title": "Transitions"
}
"items": { "$ref": "#/definitions/animationspec", "description": "TODO description: transitions", "title": "Transitions" }
},
"variables": {
"type": "object",
@@ -169,16 +127,7 @@
"additionalProperties": false,
"type": "object",
"required": ["input"],
"properties": {
"input": {
"$ref": "../../../molang/1.8.0/number.json"
},
"remap_curve": {
"additionalProperties": {
"type": "number"
}
}
}
"properties": { "input": { "$ref": "../../../molang/1.8.0/number.json" }, "remap_curve": { "additionalProperties": { "type": "number" } } }
}
},
"on_entry": {
@@ -196,11 +145,7 @@
}
}
},
"initial_state": {
"type": "string",
"description": "TODO description: initial state",
"title": "Initial State"
}
"initial_state": { "type": "string", "description": "TODO description: initial state", "title": "Initial State" }
}
}
}

View File

@@ -7,26 +7,15 @@
"animation_controllers": {
"controller.animation.example": {
"states": {
"default": {
"transitions": [{ "state_1": "query.is_baby" }]
},
"state_1": {
"animations": ["state_1"],
"transitions": [{ "default": "query.all_animations_finished" }]
}
"default": { "transitions": [{ "state_1": "query.is_baby" }] },
"state_1": { "animations": ["state_1"], "transitions": [{ "default": "query.all_animations_finished" }] }
}
}
}
}
],
"allOf": [
{
"if": { "properties": { "format_version": { "type": "string", "const": "1.8.0" } } },
"then": { "$ref": "./1.8.0/animation_controller.json" }
},
{
"if": { "properties": { "format_version": { "type": "string", "const": "1.10.0" } } },
"then": { "$ref": "./1.10.0/animation_controller.json" }
}
{ "if": { "properties": { "format_version": { "type": "string", "const": "1.8.0" } } }, "then": { "$ref": "./1.8.0/animation_controller.json" } },
{ "if": { "properties": { "format_version": { "type": "string", "const": "1.10.0" } } }, "then": { "$ref": "./1.10.0/animation_controller.json" } }
]
}