Transfer effects
too-many-attributes:transfer_effectsbi-entity action
Moves or copies status effects between the actor and the target.
| Field | Type | Default | Description |
|---|---|---|---|
mode | String | "steal" | steal: from the target to the actor. give: from the actor to the target. |
copy | Boolean | false | true leaves the effects on the giver too. |
effect, effects | Effect id, or a list | optional | Only these effects. Left out: every effect. |
category | String | optional | Only beneficial, harmful or neutral effects. |
duration_modifier(s) | Modifier, or a list | optional | Changes the duration the receiver gets, in ticks. Infinite effects stay infinite. A result of 0 or less isn't given. |
amplifier_modifier(s) | Modifier, or a list | optional | Changes the level the receiver gets. 0 is level I. Kept between 0 and 255. |
donor_duration_modifier(s) | Modifier, or a list | optional | With copy: true: changes the duration the giver keeps. A result of 0 or less removes the effect from the giver. |
- Modifiers use Origins' modifier format.
{"operation": "multiply_total_multiplicative", "amount": -0.5}halves a duration. - Effects the receiver can't have, such as Poison on undead mobs, stay with the giver.
- From Overgrown's Apoli:
effectstakes effect ids only, so tags like#c:buffsdon't work.categorytakes one category.
Example: "Leech". Hitting an entity steals its beneficial effects. You get them at half duration.
{
"type": "origins:action_on_hit",
"bientity_action": {
"type": "too-many-attributes:transfer_effects",
"mode": "steal",
"category": "beneficial",
"duration_modifier": {
"operation": "multiply_total_multiplicative",
"amount": -0.5
}
},
"cooldown": 20
}