Shape Ability Cooldown (Entity Condition Type)
Compares how many ticks are left on the shape ability's cooldown, where 0 means ready.
Type ID: apoli: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
| Field | Type | Default | Description |
|---|---|---|---|
comparison | Comparison | required | How the cooldown is compared: <, <=, >, >=, == or !=. |
compare_to | Integer | required | The ticks to compare against, where 20 ticks is a second. |
Example
{
"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
}
}This slows the player down while more than three seconds are left on the cooldown, which covers the time just after they use the ability.