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/DigGoalDefinition.json
2025-09-09 10:02:11 -07:00

219 lines
6.7 KiB
JSON

{
"$id": "911233651",
"$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"
},
"1447642202": {
"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"
},
"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 this entity to dig into the ground before despawning.",
"properties": {
"allow_dig_when_named": {
"description": "If true, this behavior can run when this entity is named. Otherwise not. Default value: false.",
"type": "boolean"
},
"control_flags": {
"items": {
"enum": [
"move",
"look",
"jump"
],
"title": "Goal's control flags",
"type": "string"
},
"type": "array"
},
"digs_in_daylight": {
"description": "Indicates that the actor should start digging when it sees daylight Default value: false.",
"type": "boolean"
},
"duration": {
"description": "Goal duration in seconds Default value: 0.",
"type": "number"
},
"idle_time": {
"description": "The minimum idle time in seconds between the last detected disturbance to the start of digging. Default value: 0.",
"type": "number"
},
"on_start": {
"$ref": "#/definitions/1447642202",
"description": "Event(s) to run when the goal starts."
},
"priority": {
"minimum": 0,
"type": "integer"
},
"suspicion_is_disturbance": {
"description": "If true, finding new suspicious locations count as disturbances that may delay the start of this goal. Default value: false.",
"type": "boolean"
},
"vibration_is_disturbance": {
"description": "If true, vibrations count as disturbances that may delay the start of this goal. Default value: false.",
"type": "boolean"
}
},
"title": "minecraft:behavior.dig",
"type": "object",
"x-format-version": "1.21.120"
}