Skip to content

Bow Attack

Task Types

A goal that allows its mob to attack using its bow, if one if found.

Type ID: ra_additions:bow_attack

Fields

Field Type Default Description
priority Int optional The priority of the goal, the lower, the more important.
speed Double optional The speed it should move to its target
attack_interval Int optional The amount of ticks between attacks
range Float optional The range the entity must be in to be attacked.
bientity_condition Bientity Condition optional A condition to see if it can attack its target.

Example

{
  "type": "ra_additions:bow_attack",
  "priority": 0,
  "speed": 1,
  "attack_interval": 20,
  "range": 15,
  "bientity_condition": {
    "type": "apoli:target_condition",
    "condition": {
      "type": "apoli:entity_type",
      "entity_type": "minecraft:creeper"
    }
  }
}