Action on signal
origins-powerful-powers:action_on_signalpower type
Runs actions when the holder hears a signal it listens for. Any living entity can hold it.
| Field | Type | Default | Description |
|---|---|---|---|
signals | Array of Strings | required | The names to listen for. * matches any run of characters: mypack:*, *:alarm, or * for everything. |
entity_action | Entity action | optional | Runs on the listener. |
bientity_action | Bi-entity action | optional | Actor: the listener. Target: the entity that sent the signal. |
bientity_condition | Bi-entity condition | optional | Both actions only run when it's true, with the same actor and target. |
It also takes Origins' usual condition. A listener ignores signals while it's false.
Example: "Rally". Any origin with this power gets Strength when it hears a war cry from a friend.
{
"type": "origins-powerful-powers:action_on_signal",
"signals": [
"mypack:war_cry"
],
"bientity_condition": {
"type": "origins:in_same_team"
},
"entity_action": {
"type": "origins:apply_effect",
"effect": {
"effect": "minecraft:strength",
"duration": 200
}
}
}