跳转至

Charge Attack

文档版本:1.21.0.24

Allows this entity to damage a target by using a running attack.

架构

charge_attack:
{
  priority "priority"
  speed_multiplier "speed_multiplier"
  number "max_distance" : opt
  number "min_distance" : opt
  number "success_rate" : opt
}
prioritypriority
priority:
integer
speed_multiplierspeed_multiplier
speed_multiplier:
number
max_distancenumber
A charge attack cannot start if the entity is farther than this distance to the target.
min_distancenumber
A charge attack cannot start if the entity is closer than this distance to the target.
success_ratenumber
Percent chance this entity will start a charge attack, if not already attacking (1.0 = 100%)