{
  "$id": "blockception.minecraft.behavior.entities.minecraft.behavior.look_at_target",
  "type": "object",
  "title": "Look At Target",
  "description": "Allows the mob to look at the entity they are targetting.",
  "additionalProperties": false,
  "required": [],
  "properties": {
    "priority": {
      "$ref": "./types/priority.json"
    },
    "look_distance": {
      "type": "number",
      "default": 8.0,
      "description": "The distance in blocks from which the entity will look at.",
      "title": "Look Distance"
    },
    "probability": {
      "type": "number",
      "default": 0.02,
      "description": "The probability of looking at the target. A value of 1.00 is 100%",
      "title": "Probability"
    },
    "look_time": {
      "$ref": "../types/range_number_type.json",
      "default": [2, 4],
      "description": "Time range to look at the entity.",
      "title": "Look Time"
    },
    "angle_of_view_vertical": {
      "type": "integer",
      "default": 360,
      "description": "The angle in degrees that the mob can see in the X-axis (left-right).",
      "title": "Angle Of View Vertical"
    },
    "angle_of_view_horizontal": {
      "type": "integer",
      "default": 360,
      "description": "The angle in degrees that the mob can see in the Y-axis (up-down).",
      "title": "Angle Of View Horizontal"
    }
  },
  "examples": [
    {
      "look_distance": 8.0,
      "probability": 0.02,
      "angle_of_view_vertical": 360,
      "angle_of_view_horizontal": 360
    }
  ]
}
