跳转至

Stalk And Pounce On Target

文档版本:1.21.0.24

Allows an entity to stalk a specific target. Once within range of the target, the entity will then leap at the target and deal damage based upon its attack attribute.

架构

stalk_and_pounce_on_target:
{
  priority "priority"
  number "interest_time" : opt
  number "leap_distance" : opt
  number "leap_height" : opt
  number "max_stalk_dist" : opt
  number "pounce_max_dist" : opt
  boolean "set_persistent" : opt
  number "stalk_speed" : opt
  number "strike_dist" : opt
  number "stuck_time" : opt
  number "leap_dist" : opt
  filters "stuck_blocks"
}
prioritypriority
priority:
integer
interest_timenumber
The amount of time the mob will be interested before pouncing. This happens when the mob is within range of pouncing
leap_distancenumber
The distance in blocks the mob jumps in the direction of its target.
leap_heightnumber
The height in blocks the mob jumps when leaping at its target.
max_stalk_distnumber
The maximum distance away a target can be before the mob gives up on stalking.
pounce_max_distnumber
The maximum distance away from the target in blocks to begin pouncing at the target.
set_persistentboolean
Allows the actor to be set to persist upon targeting a player.
stalk_speednumber
The movement speed in which you stalk your target.
strike_distnumber
The Maximum distance away from the target when landing from the pounce that will still result in damaging the target.
stuck_timenumber
The amount of time the mob will be stuck if they fail and land on a block they can be stuck on.
leap_distnumber
The distance in blocks the mob jumps in the direction of their target.
stuck_blocksfilters
一个过滤器组。Filters to apply on the block the mob lands on to determine if it is valid for getting stuck.