跳转至

Knockback Roar

文档版本:1.21.0.24

Allows the mob to perform a damaging knockback that affects all nearby entities.

架构

knockback_roar:
{
  priority "priority"
  number "attack_time" : opt
  number "cooldown_time" : opt
  filters "damage_filters"
  number "duration" : opt
  integer "knockback_damage" : opt
  integer "knockback_strength" : opt
  filters "knockback_filters"
  integer "knockback_horizontal_strength" : opt
  integer "knockback_range" : opt
  integer "knockback_vertical_strength" : opt
  number "knockback_height_cap" : opt
  boolean "track_target" : opt
  event "on_roar_end"
}
prioritypriority
priority:
integer
attack_timenumber
The delay after which the knockback occurs (in seconds).
cooldown_timenumber
Time in seconds the mob has to wait before using the goal again.
damage_filtersfilters
一个过滤器组。The list of conditions another entity must meet to be a valid target to apply damage to.
durationnumber
The duration of the roar (in seconds).
knockback_damageinteger
The damage dealt by the knockback roar.
knockback_strengthinteger
The strength of the knockback.
knockback_filtersfilters
一个过滤器组。The list of conditions another entity must meet to be a valid target to apply knockback to.
knockback_horizontal_strengthinteger
The strength of the horizontal knockback.
knockback_rangeinteger
The radius (in blocks) of the knockback effect.
knockback_vertical_strengthinteger
The strength of the vertical knockback.
knockback_height_capnumber
The maximum height for vertical knockback.
track_targetboolean
If true, this mob will chase after the target as long as it's a valid target.
on_roar_endevent
Event that is triggered when the roar ends.
event:
string
event:
{
  string "event" : opt
  string "target" : opt
}
eventstring
The event to fire.
targetstring
The target of the event.