跳转至

Guardian Attack

文档版本:1.21.0.24

Allows this entity to use a laser beam attack. Can only be used by Guardians and Elder Guardians.

架构

guardian_attack:
{
  priority "priority"
  integer "elder_extra_magic_damage" : opt
  integer "hard_mode_extra_magic_damage" : opt
  integer "magic_damage" : opt
  number "min_distance" : opt
  number "sound_delay_time" : opt
  number "x_max_rotation" : opt
  number "y_max_head_rotation" : opt
}
prioritypriority
priority:
integer
elder_extra_magic_damageinteger
Amount of additional damage dealt from an elder guardian's magic attack.
hard_mode_extra_magic_damageinteger
In hard difficulty, amount of additional damage dealt from a guardian's magic attack.
magic_damageinteger
Amount of damage dealt from a guardian's magic attack. Magic attack damage is added to the guardian's base attack damage.
min_distancenumber
Guardian attack behavior stops if the target is closer than this distance (doesn't apply to elders).
sound_delay_timenumber
Time (in seconds) to wait after starting an attack before playing the guardian attack sound.
x_max_rotationnumber
Maximum rotation (in degrees), on the X-axis, this entity can rotate while trying to look at the target.
y_max_head_rotationnumber
Maximum rotation (in degrees), on the Y-axis, this entity can rotate its head while trying to look at the target.