1
0
mirror of https://github.com/Mojang/bedrock-samples.git synced 2025-09-29 16:32:54 +00:00
Files
bedrock-samples/metadata/json_schemas/server/entity/1.21.120/DrinkMilkGoalDefinition.json
2025-09-09 10:02:11 -07:00

170 lines
5.0 KiB
JSON

{
"$id": "2379072710",
"$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"
}
},
"description": "Allows the mob to drink milk based on specified environment conditions.",
"properties": {
"control_flags": {
"items": {
"enum": [
"move",
"look",
"jump"
],
"title": "Goal's control flags",
"type": "string"
},
"type": "array"
},
"cooldown_seconds": {
"description": "Time (in seconds) that the goal is on cooldown before it can be used again. Default value: 5.",
"type": "number"
},
"filters": {
"$ref": "#/definitions/1088251937",
"description": "Conditions that need to be met for the behavior to start."
},
"priority": {
"minimum": 0,
"type": "integer"
}
},
"title": "minecraft:behavior.drink_milk",
"type": "object",
"x-format-version": "1.21.120"
}