| Name | attack_cooldown |
| Object | EntityTag |
| Input | DurationTag |
| Related Tags | <EntityTag.attack_cooldown_duration> Returns the amount of time that passed since the start of the attack cooldown.
<EntityTag.attack_cooldown_max_duration> Returns the maximum amount of time that can pass before the player's main hand has returned (...)
<EntityTag.attack_cooldown_percent> Returns the progress of the attack cooldown. 0 means that the attack cooldown has just (...)
|
| Description | Sets the player's time since their last attack. If the time is greater than the max duration of their
attack cooldown, then the cooldown is considered finished. NOTE: The clientside attack cooldown indicator will not reflect this change! |
| Generated Example | |
| Source | https://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/EntityTag.java#L4459 |