跳转至

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_eventdefinition_trigger_no_condition
Event to be runned when the cooldown is complete.
definition_trigger_no_condition:
string
definition_trigger_no_condition:
{
  string "event" : opt
  string "target" : opt
}
eventstring
targetstring
attack_cooldown_timearray
attack_cooldown_time
<any array element>number