homing

Makes fired arrows lock on to the target they are aimed at and curve towards it.

Categories: combat

Required arguments

Key(s)DescriptionType
distanceThe maximum range at which the arrow will lock on to and follow a target. Supports expressions.EXPRESSION

Optional arguments

Key(s)DescriptionTypeDefault
targetsA list of entities the arrow will home in on. Leave empty to target all entities. In entity target mode this list is also the priority order, first entry highest.ENTITY_LIST[]
target_changeWhether the arrow may lock on to a new target after losing its current one.BOOLEANfalse
turn_rateThe maximum number of degrees the arrow can turn each tick. Supports expressions.EXPRESSION15
target_modeHow the arrow picks between valid targets.
Choices: any HomingTargetMode value
STRINGclosest_to_crosshair
live_modeIn closest_to_crosshair mode, whether the arrow keeps switching to whichever target the shooter is currently looking closest to.BOOLEANfalse
acquire_angleHow many degrees off the arrow's heading a target can be and still be locked on to. Supports expressions.EXPRESSION30

Trigger parameters required

  • PROJECTILE

Example

effects:
  - id: homing
    args:
      distance: 10 + %level%
      targets: <value> # ← Optional
      target_change: true # ← Optional
      turn_rate: <expression> # ← Optional
      target_mode: <HomingTargetMode> # ← Optional
      live_mode: true # ← Optional
      acquire_angle: <expression> # ← Optional

Behaviour

SettingValue
Run orderNORMAL
Supports delaytrue
Reloads on plugin reloadtrue