Too Many Attributes
» Entity actions » Prevent powers

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.

FieldTypeDefaultDescription
powersArray of power idsrequiredThe powers to stop, like "mypack:wings".
intervalInteger5Ticks between checks of this power's condition.
  • A prevented power reads as inactive, like a power whose condition is false. Its keys, ticking and effects stop with it.
  • Powers that apply something once when they're granted keep it. origins:attribute is one. Use origins:conditioned_attribute for attributes that should stop.
  • It only reaches the holder's own powers.
  • A prevent_powers can't prevent another prevent_powers.
  • For a power inside an origins:multiple, use the sub-power's id, like mypack:flight_glide.
  • From Overgrown's Apoli: Overgrown's update_rate is interval.

Example: "Grounded". While in water, your wings and glide stop working.

json
{
  "type": "too-many-attributes:prevent_powers",
  "powers": [
    "mypack:wings",
    "mypack:glide"
  ],
  "condition": {
    "type": "origins:submerged_in",
    "fluid": "minecraft:water"
  }
}