Prevent powers
too-many-attributes:prevent_powerspower type
While active, the listed powers on the holder stop working. The holder keeps them, along with their state, such as resources and cooldowns.
| Field | Type | Default | Description |
|---|---|---|---|
powers | Array of power ids | required | The powers to stop, like "mypack:wings". |
interval | Integer | 5 | Ticks between checks of this power's condition. |
- A prevented power reads as inactive, like a power whose
conditionis false. Its keys, ticking and effects stop with it. - Powers that apply something once when they're granted keep it.
origins:attributeis one. Useorigins:conditioned_attributefor attributes that should stop. - It only reaches the holder's own powers.
- A
prevent_powerscan't prevent anotherprevent_powers. - For a power inside an
origins:multiple, use the sub-power's id, likemypack:flight_glide. - From Overgrown's Apoli: Overgrown's
update_rateisinterval.
Example: "Grounded". While in water, your wings and glide stop working.
{
"type": "too-many-attributes:prevent_powers",
"powers": [
"mypack:wings",
"mypack:glide"
],
"condition": {
"type": "origins:submerged_in",
"fluid": "minecraft:water"
}
}