Skip to content

Latest commit

 

History

History
46 lines (35 loc) · 1.43 KB

minecraftBehavior_charge_attack.md

File metadata and controls

46 lines (35 loc) · 1.43 KB
author ms.author title description ms.service
iconicNurdle
mikeam
Entity Documentation - minecraft:behavior.charge_attack
A reference document detailing the 'behavior.charge_attack' entity goal
minecraft-bedrock-edition

Entity Documentation - minecraft:behavior.charge_attack

minecraft:behavior.charge_attack compels an entity to damage a target by using a running attack.

Parameters

Name Default Value Type Description
max_distance 3 Decimal A charge attack cannot start if the entity is farther than this distance to the target.
min_distance 2 Decimal A charge attack cannot start if the entity is closer than this distance to the target.
priority not set Integer The higher the priority, the sooner this behavior will be executed as a goal.
speed_multiplier 1 Decimal Modifies the entity's speed when charging toward the target.
success_rate 0.1428 Decimal Percent chance this entity will start a charge attack, if not already attacking (1.0 = 100%)

Example

"minecraft:behavior.charge_attack": {
    "max_distance": 3,
    "min_distance": 2,
    "speed_multiplier": 1,
    "success_rate": 0.25
}

Vanilla entities examples

vex

"minecraft:behavior.charge_attack": {
    "priority": 4
}

Vanilla entities using charge_attack