跳转至

Ocelotattack

文档版本:1.21.0.24

Can only be used by the Ocelot. Allows it to perform the sneak and pounce attack.

架构

ocelotattack:
{
  priority "priority"
  number "cooldown_time" : opt
  number "max_distance" : opt
  number "max_sneak_range" : opt
  number "max_sprint_range" : opt
  number "reach_multiplier" : opt
  number "sneak_speed_multiplier" : opt
  number "sprint_speed_multiplier" : opt
  number "walk_speed_multiplier" : opt
  number "x_max_rotation" : opt
  number "y_max_head_rotation" : opt
}
prioritypriority
priority:
integer
cooldown_timenumber
Time (in seconds) between attacks.
max_distancenumber
Max distance from the target, this entity will use this attack behavior.
max_sneak_rangenumber
Max distance from the target, this entity starts sneaking.
max_sprint_rangenumber
Max distance from the target, this entity starts sprinting (sprinting takes priority over sneaking).
reach_multipliernumber
Used with the base size of the entity to determine minimum target-distance before trying to deal attack damage.
sneak_speed_multipliernumber
Modifies the attacking entity's movement speed while sneaking.
sprint_speed_multipliernumber
Modifies the attacking entity's movement speed while sprinting.
walk_speed_multipliernumber
Modifies the attacking entity's movement speed when not sneaking or sprinting, but still within attack range.
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.