{
  "$id": "blockception.minecraft.behavior.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": "Must See"
    },
    "inside_range": {
      "type": "number",
      "default": 1,
      "description": "Maximum distance in blocks that another entity will be considered in the `inside` range",
      "title": "Inside Range"
    },
    "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"
    }
  }
}
