{
  "$id": "blockception.minecraft.behavior.entities.1.16.0.minecraft.behavior.defend_trusted_target",
  "type": "object",
  "title": "Defend Trusted Target 1.16.0",
  "description": "Allows the mob to target another mob that hurts an entity it trusts.",
  "additionalProperties": false,
  "properties": {
    "priority": { "$ref": "types/priority.json" },
    "aggro_sound": { "type": "string", "default": "", "description": "Sound to occasionally play while defending.", "title": "Aggro Sound" },
    "attack_interval": { "type": "integer", "default": 0, "description": "Time in seconds between attacks", "title": "Attack Interval" },
    "must_see": {
      "type": "boolean",
      "default": false,
      "description": "If true, only entities in this mob's viewing range can be selected as targets",
      "title": "Must See"
    },
    "must_see_forget_duration": {
      "type": "number",
      "default": 3,
      "description": "Determines the amount of time in seconds that this mob will look for a target before forgetting about it and looking for a new one when the target isn't visible any more",
      "title": "Must See Forget Duration"
    },
    "on_defend_start": {
      "$ref": "../types/event.json",
      "title": "On Defend Start",
      "description": "UNDOCUMENTED",
      "$comment": "UNDOCUMENTED"
    },
    "within_radius": {
      "type": "number",
      "default": 0,
      "description": "Distance in blocks that the target can be within to launch an attack",
      "title": "Within Radius"
    },
    "entity_types": {
      "type": "object",
      "description": "List of entity types that this mob considers valid targets",
      "title": "Entity Types",
      "additionalProperties": false
    },
    "sound_chance": { "title": "Sound Chance", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "type": "number" }
  }
}
