45 lines
1.8 KiB
JSON
45 lines
1.8 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema",
|
|
"$id": "blockception.minecraft.behaviour.entities.1.8.0.minecraft.target_nearby_sensor",
|
|
"description": "Defines the entity's range within which it can see or sense other entities to target them.",
|
|
"type": "object",
|
|
"title": "Target nearby sensor 1.8.0",
|
|
"additionalProperties": false,
|
|
"required": [],
|
|
"properties": {
|
|
"must_see": {
|
|
"type": "boolean",
|
|
"default": false,
|
|
"description": "Whether the other entity needs to be visible to trigger 'inside' events",
|
|
"title": "TODO title"
|
|
},
|
|
"inside_range": {
|
|
"type": "number",
|
|
"default": 1,
|
|
"description": "Maximum distance in blocks that another entity will be considered in the 'inside' range",
|
|
"title": "TODO title"
|
|
},
|
|
"on_inside_range": {
|
|
"$ref": "../types/event.json",
|
|
"description": "Event to call when an entity gets in the inside range. Can specify 'event' for the name of the event and 'target' for the target of the event",
|
|
"title": "On inside range"
|
|
},
|
|
"on_outside_range": {
|
|
"$ref": "../types/event.json",
|
|
"description": "Event to call when an entity gets in the outside range. Can specify 'event' for the name of the event and 'target' for the target of the event",
|
|
"title": "On outside range"
|
|
},
|
|
"on_vision_lost_inside_range": {
|
|
"$ref": "../types/event.json",
|
|
"description": "Event to call when an entity exits visual range. Can specify 'event' for the name of the event and 'target' for the target of the event",
|
|
"title": "On vision lost inside range"
|
|
},
|
|
"outside_range": {
|
|
"type": "number",
|
|
"default": 5,
|
|
"description": "Maximum distance in blocks that another entity will be considered in the 'outside' range",
|
|
"title": "Outside range"
|
|
}
|
|
}
|
|
}
|