Apply Effect
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
Field | Type | Default | Description |
---|---|---|---|
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.