mirror of
https://github.com/Mojang/bedrock-samples.git
synced 2025-09-29 16:32:54 +00:00
168 lines
4.9 KiB
JSON
168 lines
4.9 KiB
JSON
{
|
|
"$id": "1447642202",
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"definitions": {
|
|
"1088251937": {
|
|
"description": "Filters allow data objects to specify test criteria which allows their use. Filters can be defined by a single object of type (Filter Test), an array of tests, collection groups, or a combination of these objects.",
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/definitions/4150989894"
|
|
},
|
|
{
|
|
"items": {
|
|
"$ref": "#/definitions/1088251937",
|
|
"description": "Filters allow data objects to specify test criteria which allows their use. Filters can be defined by a single object of type (Filter Test), an array of tests, collection groups, or a combination of these objects."
|
|
},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"properties": {
|
|
"AND": {
|
|
"$ref": "#/definitions/1088251937",
|
|
"description": "Evaluates all tests in the group, all must pass in order for the group to pass."
|
|
},
|
|
"NOT": {
|
|
"$ref": "#/definitions/1088251937",
|
|
"description": "Evaluates all tests in the group, all must fail in order for the group to pass."
|
|
},
|
|
"OR": {
|
|
"$ref": "#/definitions/1088251937",
|
|
"description": "Evaluates tests in the group, one or more must pass in order for the group to pass."
|
|
},
|
|
"all": {
|
|
"$ref": "#/definitions/1088251937",
|
|
"description": "Evaluates all tests in the group, all must pass in order for the group to pass."
|
|
},
|
|
"all_of": {
|
|
"$ref": "#/definitions/1088251937",
|
|
"description": "Evaluates all tests in the group, all must pass in order for the group to pass."
|
|
},
|
|
"any": {
|
|
"$ref": "#/definitions/1088251937",
|
|
"description": "Evaluates tests in the group, one or more must pass in order for the group to pass."
|
|
},
|
|
"any_of": {
|
|
"$ref": "#/definitions/1088251937",
|
|
"description": "Evaluates tests in the group, one or more must pass in order for the group to pass."
|
|
},
|
|
"none_of": {
|
|
"$ref": "#/definitions/1088251937",
|
|
"description": "Evaluates all tests in the group, all must fail in order for the group to pass."
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
],
|
|
"title": "Filter Group"
|
|
},
|
|
"4150989894": {
|
|
"properties": {
|
|
"domain": {
|
|
"description": "The domain the test should be performed in.",
|
|
"oneOf": [
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "integer"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"operator": {
|
|
"description": "The comparison to apply with 'value'.",
|
|
"oneOf": [
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "integer"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"subject": {
|
|
"description": "The subject of this filter test.",
|
|
"oneOf": [
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "integer"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"test": {
|
|
"description": "The name of the test to apply.",
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"description": "The value being compared with the test.",
|
|
"oneOf": [
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "integer"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"test"
|
|
],
|
|
"title": "Filter Test",
|
|
"type": "object"
|
|
}
|
|
},
|
|
"properties": {
|
|
"event": {
|
|
"type": "string"
|
|
},
|
|
"filters": {
|
|
"$ref": "#/definitions/1088251937",
|
|
"description": "Filters allow data objects to specify test criteria which allows their use. Filters can be defined by a single object of type (Filter Test), an array of tests, collection groups, or a combination of these objects."
|
|
},
|
|
"target": {
|
|
"enum": [
|
|
"self",
|
|
"other",
|
|
"player",
|
|
"target",
|
|
"parent",
|
|
"baby",
|
|
"block",
|
|
"damager",
|
|
"holder",
|
|
"item"
|
|
],
|
|
"title": "FilterSubject",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"title": "ActorDefinitionTrigger",
|
|
"type": "object",
|
|
"x-format-version": "1.21.120"
|
|
} |