Knockback Roar¶
文档版本:1.21.50.25
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"
}
priority
:priority
attack_time
:number- The delay after which the knockback occurs (in seconds).
cooldown_time
:number- Time in seconds the mob has to wait before using the goal again.
damage_filters
:filters- 一个过滤器组。The list of conditions another entity must meet to be a valid target to apply damage to.
duration
:number- The duration of the roar (in seconds).
knockback_damage
:integer- The damage dealt by the knockback roar.
knockback_strength
:integer- The strength of the knockback.
knockback_filters
:filters- 一个过滤器组。The list of conditions another entity must meet to be a valid target to apply knockback to.
knockback_horizontal_strength
:integer- The strength of the horizontal knockback.
knockback_range
:integer- The radius (in blocks) of the knockback effect.
knockback_vertical_strength
:integer- The strength of the vertical knockback.
knockback_height_cap
:number- The maximum height for vertical knockback.
track_target
:boolean- If true, this mob will chase after the target as long as it's a valid target.
on_roar_end
:event- Event that is triggered when the roar ends.
event
:string- The event to fire.
target
:string- The target of the event.