Denizen Script Mechanisms


Mechanisms are found in object properties, the 'adjust' command, and similar. These are used to change the state of an object.
Learn about how mechanisms work in The Beginner's Guide.


Showing 1 out of 625 mechanisms...
Nameattack_cooldown_percent
ObjectEntityTag
InputElementTag(Decimal)
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 (...)
DescriptionSets the progress of the player's attack cooldown. Takes a decimal from 0 to 1.
0 means the cooldown has just begun, while 1 means the cooldown has been completed.
NOTE: The clientside attack cooldown indicator will not reflect this change!
Generated Example
- adjust <player> attack_cooldown_percent:1
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/EntityTag.java#L4179