Action on mob conversion
origins-powerful-powers:action_on_mob_conversionpower type
Runs actions when the holder turns into another mob. Mobs only.
| Field | Type | Default | Description |
|---|---|---|---|
bientity_action | Bi-entity action | optional | Actor: the holder. Target: the new mob. |
bientity_condition | Bi-entity condition | optional | If set, the action only runs when it's true. |
- It covers vanilla conversions such as a zombie villager being cured, a zombie drowning into a drowned, a pig or villager struck by lightning, and a tadpole growing up.
- The powers belong to the old mob. The new mob doesn't inherit them, so set it up in the bi-entity action.
Example: the new mob gets the tag converted.
{
"type": "origins-powerful-powers:action_on_mob_conversion",
"bientity_action": {
"type": "origins:target_action",
"action": {
"type": "origins:execute_command",
"command": "tag @s add converted"
}
}
}