Attack Cooldown¶
文档版本:1.21.50.25
Adds a cooldown to a mob. The intention of this cooldown is to be used to prevent the mob from attempting to aquire new attack targets.
架构¶
attack_cooldown:
{
trigger "attack_cooldown_complete_event"
array "attack_cooldown_time" : opt
{
number "0..0" : opt
number "1..1" : opt
}
number "attack_cooldown_time" : opt
}
attack_cooldown_complete_event:trigger- Event to be run when the cooldown is complete.
event:string- The event to run when the conditions for this trigger are met.
filters:filters- 一个过滤器组。The list of conditions for this trigger to execute.
target:subject- The target of the event.
trigger:
array
{
object "<any array element>" : opt
{
string "event" : opt
filters "filters"
subject "target"
}
}
<any array element>:object
<any array element>attack_cooldown_time:array- Amount of time in seconds for the cooldown. Can be specified as a number or a pair of numbers (Minimum and max).
attack_cooldown_time0..0:number
1..1:number
attack_cooldown_time:number- Amount of time in seconds for the cooldown. Can be specified as a number or a pair of numbers (Minimum and max).