Shape Ability Cooldown (Entity Condition Type)

Compares the shape ability cooldown, in ticks.

Compares how many ticks are left on the shape ability’s cooldown. 0 means ready.

Type ID: apoli:shape_ability_cooldown

Fields

FieldTypeDefaultDescription
comparisonComparisonrequired<, <=, >, >=, ==, !=.
compare_toIntegerrequiredTicks to compare against — 20 ticks is a second.

Example

Slow the player down for the three seconds after they use their ability:

{
  "type": "apoli:attribute",
  "modifiers": [
    {
      "attribute": "minecraft:generic.movement_speed",
      "operation": "multiply_base_multiplicative",
      "value": -0.3
    }
  ],
  "condition": {
    "type": "apoli:shape_ability_cooldown",
    "comparison": ">",
    "compare_to": 60
  }
}

Needs WoodWalkers. This type does not exist without it, so a pack using it must depend on the mod.