Files
minecraft-bedrock-json-schemas/source/behaviour/entities/1.16.0/components/minecraft.entity_sensor.json
2021-02-19 13:43:12 +01:00

47 lines
1.6 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "blockception.minecraft.behaviour.entities.1.16.0.minecraft.entity_sensor",
"type": "object",
"title": "Entity sensor 1.16.0",
"description": "A component that fires an event when a set of conditions are met by other entities within the defined range.",
"additionalProperties": false,
"properties": {
"maximum_count": {
"type": "integer",
"default": -1,
"description": "The maximum number of entities that must pass the filter conditions for the event to send.",
"title": "Maximum count"
},
"minimum_count": {
"type": "integer",
"default": 1,
"description": "The minimum number of entities that must pass the filter conditions for the event to send.",
"title": "Minimum count"
},
"relative_range": {
"type": "boolean",
"default": true,
"description": "If true the sensor range is additive on top of the entity's size.",
"title": "Relative range"
},
"require_all": {
"type": "boolean",
"default": false,
"description": "If true requires all nearby entities to pass the filter conditions for the event to send.",
"title": "Require all"
},
"sensor_range": {
"type": "number",
"default": 10,
"description": "The maximum distance another entity can be from this and have the filters checked against it.",
"title": "Sensor range"
},
"event_filters": { "$ref": "../filters.json" },
"event": {
"title": "Event",
"description": "event",
"type": "string"
}
}
}