Apply Effects
Apply status effects to an entity.
Type ID: kaya:apply_effects
Format
| Field | Type | Default | Description |
|---|---|---|---|
effects |
Array of Effect Providers | The status effects to apply to the entity. | |
entity |
Entity Provider | The entity to apply the status effects to. |
Example
{
"type": "kaya:apply_effects",
"effects": [
{
"id": "minecraft:regeneration",
"amplifier": 1,
"duration": 100
}
],
"entity": "this"
}
This example will apply the Regeneration II (00:05) status effect to the entity from the kaya:this_entity context parameter.
History
| Minecraft | Mod | Changelog |
| 1.21.5 | 0.1.0 | Added the type. |