Send Action (Bi-Entity Action Type)

Hands this bi-entity action off to an apoli:receive_action power on the actor.

Hands off to an apoli:receive_action power on the actor, passing both entities through. The receiver reads them with its bientity_action and bientity_condition fields.

Type ID: apoli:send_action (also shappoli:send_action)

Fields

FieldTypeDefaultDescription
receiverIdentifierrequiredThe id of a power on the same entity. Nothing happens if the entity does not have it, if it is suppressed, if its own condition fails, or if it is not the right receiving type.

Example

The receiver decides what “punish the attacker” means for this origin:

{
  "type": "apoli:receive_action",
  "bientity_condition": {
    "type": "apoli:target_condition",
    "condition": { "type": "apoli:in_tag", "tag": "minecraft:undead" }
  },
  "bientity_action": {
    "type": "apoli:damage",
    "amount": 4,
    "damage_type": "minecraft:magic"
  }
}

Anything that hits you can send to it, and the receiver’s own condition decides whether it applies:

{
  "type": "apoli:action_when_hit",
  "bientity_action": {
    "type": "apoli:send_action",
    "receiver": "mypack:retaliate"
  }
}