Origins: Powerful Powers
» Entity conditions » Last damage was crit

Last damage was crit

origins-powerful-powers:last_damage_was_critentity conditiontracked

True when the last damage this entity took was a critical hit, melee or a critical arrow. Any other damage, including a normal hit, fall damage or fire, sets it back to false.

No fields.

  • It's set just after that damage is applied, so like the condition above it isn't ready during the hit itself. Check it from a later tick.
  • It's false until the entity is first damaged, and isn't saved.

Example: being critted makes you flee-footed for a moment.

json
{
  "type": "origins:action_over_time",
  "interval": 1,
  "condition": {
    "type": "origins-powerful-powers:last_damage_was_crit"
  },
  "rising_action": {
    "type": "origins:apply_effect",
    "effect": {
      "effect": "minecraft:speed",
      "duration": 60,
      "amplifier": 1
    }
  }
}

No attribute.