minecraft:attack_cooldown¶
文档版本:1.21.0.24
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.
架构¶
minecraft:attack_cooldown:
{
definition_trigger_no_condition "attack_cooldown_complete_event"
array "attack_cooldown_time" : opt
{
number "<any array element>" : opt
}
}
attack_cooldown_complete_event:definition_trigger_no_condition- Event to be runned when the cooldown is complete.
event:string
target:string
attack_cooldown_time:array
attack_cooldown_time<any array element>:number