minecraft:behavior.guardian_attack

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

Properties

PropertyTypeDefaultWhat it does
magic_damageInteger1Amount of damage dealt from a guardian's magic attack. Magic attack damage is added to the guardian's base attack damage.
hard_mode_extra_magic_damageInteger2In hard difficulty, amount of additional damage dealt from a guardian's magic attack.
elder_extra_magic_damageInteger2Amount of additional damage dealt from an elder guardian's magic attack.
sound_delay_timeDecimal0.5Time (in seconds) to wait after starting an attack before playing the guardian attack sound.
x_max_rotationDecimal90Maximum rotation (in degrees), on the X-axis, this entity can rotate while trying to look at the target.
y_max_head_rotationDecimal90Maximum rotation (in degrees), on the Y-axis, this entity can rotate its head while trying to look at the target.
min_distanceDecimalmin 03Guardian attack behavior stops if the target is closer than this distance (doesn't apply to elders).
priorityIntegermin 00
control_flagsList of text[]

Example from the game files

This is how vanilla Elder Guardian uses it in Minecraft Bedrock 1.26.60.5:

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

Used by 2

Vanilla entities with minecraft:behavior.guardian_attack in their definition:

Related components