Origins: Powerful Powers
» Entity actions » Action on mob conversion

Action on mob conversion

origins-powerful-powers:action_on_mob_conversionpower type

Runs actions when the holder turns into another mob. Mobs only.

FieldTypeDefaultDescription
bientity_actionBi-entity actionoptionalActor: the holder. Target: the new mob.
bientity_conditionBi-entity conditionoptionalIf 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.

json
{
  "type": "origins-powerful-powers:action_on_mob_conversion",
  "bientity_action": {
    "type": "origins:target_action",
    "action": {
      "type": "origins:execute_command",
      "command": "tag @s add converted"
    }
  }
}