{
  "$id": "blockception.minecraft.behavior.entities.1.8.0.minecraft.behavior.drink_potion",
  "type": "object",
  "title": "Beg 1.8.0",
  "description": "Allows the mob to drink potions based on specified environment conditions.",
  "additionalProperties": false,
  "required": [],
  "properties": {
    "priority": { "$ref": "./types/priority.json" },
    "speed_multiplier": { "$ref": "./types/speed_multiplier.json" },
    "speed_modifier": { "default": 0.0, "description": "Movement speed modifier of the mob when using this AI Goal", "title": "Speed Modifier" },
    "potions": {
      "type": "array",
      "title": "Potions",
      "description": "A list of potions that this entity can drink.",
      "items": {
        "required": ["id", "chance", "filters"],
        "additionalProperties": false,
        "title": "Potions",
        "type": "object",
        "description": "A potion that this entity can drink.",
        "properties": {
          "id": { "type": "integer", "default": -1, "description": "The registry ID of the potion to use", "title": "Id" },
          "chance": {
            "type": "number",
            "default": 1.0,
            "minimum": 0,
            "maximum": 1,
            "description": "The percent chance (from 0.0 to 1.0) of this potion being selected when searching for a potion to use.",
            "title": "Chance"
          },
          "filters": {
            "description": "The filters to use when determining if this potion can be selected.",
            "$ref": "../../filters/filters.json"
          }
        }
      }
    }
  }
}
