Skip to main content

Change Shape Ability Cooldown (Entity Action Type)

Adds to or sets the ticks left on the shape ability's cooldown. Negative values with add shorten it, and the result never goes below zero.

Type ID: apoli:change_shape_ability_cooldown (alias shappoli:change_shape_ability_cooldown)

note

This type needs WoodWalkers and doesn't exist without it, so a pack that uses it must depend on the mod.

Fields

FieldTypeDefaultDescription
operationStringaddadd adjusts the current value, and set replaces it.
changeIntegerrequiredThe ticks to add, or the value to set.

Examples

{
  "type": "apoli:change_shape_ability_cooldown",
  "operation": "set",
  "change": 0
}

This clears the cooldown entirely.

{
  "type": "apoli:action_on_hit",
  "entity_action": {
    "type": "apoli:change_shape_ability_cooldown",
    "change": -40
  }
}

This takes two seconds off the cooldown every time the player lands a hit, for a shape that recharges by fighting.