Too Many Attributes
» Entity actions » Transfer effects

Transfer effects

too-many-attributes:transfer_effectsbi-entity action

Moves or copies status effects between the actor and the target.

FieldTypeDefaultDescription
modeString"steal"steal: from the target to the actor. give: from the actor to the target.
copyBooleanfalsetrue leaves the effects on the giver too.
effect, effectsEffect id, or a listoptionalOnly these effects. Left out: every effect.
categoryStringoptionalOnly beneficial, harmful or neutral effects.
duration_modifier(s)Modifier, or a listoptionalChanges 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 listoptionalChanges the level the receiver gets. 0 is level I. Kept between 0 and 255.
donor_duration_modifier(s)Modifier, or a listoptionalWith 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: effects takes effect ids only, so tags like #c:buffs don't work. category takes one category.

Example: "Leech". Hitting an entity steals its beneficial effects. You get them at half duration.

json
{
  "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
}