Zero attacks until the target is defeated.
Optionaloptions?: PathfindOptionsRestores the selected hotbar slot when the task stops.
OptionalselectBestWeapon?: booleanDefaults to true. Selects the strongest matching melee weapon.
Optionaltarget?: EntityReferenceHow long the target may remain unobservable before the task completes. Zero selects the server default.
Uses an equipped offhand shield while approaching and between attacks.
Optionalweapon?: ItemSelectorRestricts automatic weapon selection.
Core task input for chasing and attacking one connection-scoped entity.