Ocelotattack¶
文档版本:1.21.50.25
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
}
priority
:priority
cooldown_time
:number- Time (in seconds) between attacks.
max_distance
:number- Max distance from the target, this entity will use this attack behavior.
max_sneak_range
:number- Max distance from the target, this entity starts sneaking.
max_sprint_range
:number- Max distance from the target, this entity starts sprinting (sprinting takes priority over sneaking).
reach_multiplier
:number- Used with the base size of the entity to determine minimum target-distance before trying to deal attack damage.
sneak_speed_multiplier
:number- Modifies the attacking entity's movement speed while sneaking.
sprint_speed_multiplier
:number- Modifies the attacking entity's movement speed while sprinting.
walk_speed_multiplier
:number- Modifies the attacking entity's movement speed when not sneaking or sprinting, but still within attack range.
x_max_rotation
:number- Maximum rotation (in degrees), on the X-axis, this entity can rotate while trying to look at the target.
y_max_head_rotation
:number- Maximum rotation (in degrees), on the Y-axis, this entity can rotate its head while trying to look at the target.