Action On Knockout (Power Type)

Runs an action when the entity is knocked out.

Fires when the holder is knocked out — the downed state Hardcore Revival uses instead of death.

Type ID: apoli:action_on_knockout

Fields

FieldTypeDefaultDescription
entity_actionEntity ActionoptionalRuns on the holder as they go down.

Examples

Drop a marker so allies can find you:

{
  "type": "apoli:action_on_knockout",
  "entity_action": {
    "type": "apoli:and",
    "actions": [
      { "type": "apoli:spawn_particles", "particle": "minecraft:soul", "count": 40 },
      { "type": "apoli:play_sound", "sound": "minecraft:entity.wither.spawn" }
    ]
  }
}

Spend a charge to soften the blow, so an origin gets one free knockout:

{
  "type": "apoli:action_on_knockout",
  "entity_action": {
    "type": "apoli:change_resource",
    "resource": "mypack:second_wind",
    "change": -1
  }
}

Needs Hardcore Revival. These types do not exist without it, so a pack using them must depend on the mod.