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
| Field | Type | Default | Description |
|---|---|---|---|
comparison | Comparison | required | <, <=, >, >=, ==, !=. |
compare_to | Integer | required | Ticks 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.