Skip to content

Apply Effect

apace100 edited this page Nov 2, 2020 · 1 revision

Entity Action. Adds one or more status effects to the living entity. Does not have an effect on non-living entities.

Type ID: origins:apply_effect

Fields:

effect, Status Effect Instance, optional: If set, this status effect will be applied by this action.

effects, array of Status Effect Instances, optional: If set, these status effects will be applied by this action.

Example:

"entity_action": {
  "type": "origins:apply_effect",
  "effect": {
    "effect": "minecraft:speed",
    "duration": 400,
    "amplifier": 0
  }
}

This action applies a Speed I effect for 20 seconds to the entity.

Clone this wiki locally