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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈