Origins: Powerful Powers
» Entity conditions » Attack cooldown progress

Attack cooldown progress

origins-powerful-powers:attack_cooldown_progressentity conditionplayers only

How charged the player's attack is, from 0.0 (just swung) to 1.0 (fully charged). This is the value behind vanilla's attack indicator.

FieldTypeDefaultDescription
comparisonComparisonrequired
compare_toFloatrequired0.0 to 1.0

Example:

json
{
  "type": "origins:modify_damage_dealt",
  "condition": {
    "type": "origins-powerful-powers:attack_cooldown_progress",
    "comparison": "<",
    "compare_to": 0.5
  },
  "modifier": {
    "operation": "multiply_total_multiplicative",
    "value": -0.5
  }
}

Hits made before the attack is half charged deal half damage, on top of vanilla's own reduction.

Attribute: attack_cooldown_progress